-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
OS-8264 Pool-bootable SmartOS (and Triton) cannot handle sdc-factoryreset #1110
base: master
Are you sure you want to change the base?
Conversation
NOTE: Needs testing, but conceptually this is good. Will update ticket(s) with test results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can do like this:
shutdown=""
in case statement
s) shutdown=yes;;
and then
if [[ $shutdown ]]; then
poweroff
else
reboot
fi
Might be just a bit easier to read (less chars to process;)
Even better might be to just set a variable to the desired last-command! |
This may need to account for a shutdown rather than a reboot
also.. usage nit
|
Moving this back to draft to cleave out 8578 as its own, lower-impact, PR, namely #1112 |
OS-8578 Add "-s" option to sdc-factoryreset to poweroff CN instead of reboot