Skip to content

Commit

Permalink
blah2
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan McDonald committed Dec 2, 2020
1 parent da408ea commit 349727a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/piadm.sh
Expand Up @@ -1029,15 +1029,15 @@ refresh_or_disable_pool() {
err "Pool $pool is not bootable, and cannot be disabled or refreshed"

if [[ "$flag" == "-d" ]]; then
if [[ "$TRITON_HN" == "yes" ]];
if [[ "$TRITON_HN" == "yes" ]]; then
# XXX KEBE ASKS --> what do I do here?
err "Head Node support disable-pool needs enabling"
fi
vecho "Disabling bootfs on pool $pool"
zpool set bootfs="" "$pool"
else
vecho "Refreshing boot sectors and/or ESP on pool $pool"
if [[ "$TRITON_HN" == "yes" ]];
if [[ "$TRITON_HN" == "yes" ]]; then
# XXX KEBE ASKS --> what do I do here?
err "Head Node refresh-pool support needs enabling"
fi
Expand Down Expand Up @@ -1121,7 +1121,7 @@ fi

# Determine if we're running on a Triton Compute Node (CN) or not:
bootparams | grep -E -q 'smartos=|headnode=' || initialize_as_CN
bootparams | grep -q 'smartos=' || intialize_as_HN
bootparams | grep -q 'smartos=' || initialize_as_HN

cmd=$1
shift 1
Expand All @@ -1147,7 +1147,7 @@ case $cmd in
;;

list )
not_triton_HN "$@"
not_triton_HN list
list "$@"
;;

Expand Down

0 comments on commit 349727a

Please sign in to comment.