forked from pinecrypt/butterknife-provisioning-image
Updates and fixes
Some checks reported errors
continuous-integration/drone Build encountered an error
Some checks reported errors
continuous-integration/drone Build encountered an error
This commit is contained in:
@@ -6,7 +6,6 @@ action=$(dialog --menu "Advanced options, consider your warranty VOID!" 0 0 0 \
|
||||
shell "Drop to shell" \
|
||||
instance "Instance maintenance and recovery" \
|
||||
subvol "Delete instances/templates" \
|
||||
restore "Restore Windows master boot record" \
|
||||
2>&1 >$(tty))
|
||||
clear
|
||||
|
||||
@@ -72,19 +71,5 @@ case $action in
|
||||
umount $mountpoint
|
||||
rmdir $mountpoint
|
||||
;;
|
||||
restore)
|
||||
disk=$(butterknife-select-disk 2>&1 >$(tty))
|
||||
|
||||
# Select MBR type
|
||||
action=$(dialog --menu "What kind of master boot record would you like to restore? You might have to mark partition bootable using fdisk." 0 0 0 \
|
||||
mbr7 "Windows 7/8/10" \
|
||||
mbrvista "Windows Vista" \
|
||||
mbr "Windows 2000/XP/2003" \
|
||||
2>&1 >$(tty))
|
||||
|
||||
cmd="ms-sys --$action /dev/$disk"
|
||||
$cmd | dialog --programbox "$cmd" 10 76
|
||||
|
||||
;;
|
||||
esac
|
||||
|
||||
|
Reference in New Issue
Block a user