Updates and fixes
Some checks reported errors
continuous-integration/drone Build encountered an error

This commit is contained in:
2022-04-06 22:59:58 +03:00
committed by Lauri Võsandi
parent f3d01845be
commit ee987dc516
7 changed files with 178 additions and 94 deletions

View File

@@ -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