From 54ec07be55b8bc151983e9648c4bdf3e0f7baa34 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Fri, 20 Sep 2013 16:36:09 -0400 Subject: add additional sys backup options to provide the ability to backup the MBR for every device found, and to backup the BIOS (if the flashrom program is installed, and the mainboard is supported) --- handlers/sys.helper.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'handlers/sys.helper.in') diff --git a/handlers/sys.helper.in b/handlers/sys.helper.in index 8a2fb07..7272f48 100644 --- a/handlers/sys.helper.in +++ b/handlers/sys.helper.in @@ -20,6 +20,8 @@ sys_wizard() { hardware="hardware = no" luksheaders="luksheaders = no" lvm="lvm = no" + mbr="mbr = no" + bios="bios = no" for opt in $result; do case $opt in '"packages"') packages="packages = yes";; @@ -28,6 +30,8 @@ sys_wizard() { '"hardware"') hardware="hardware = yes";; '"luksheaders"') luksheaders="luksheaders = yes";; '"lvm"') lvm="lvm = yes";; + '"mbr"') mbr="mbr = yes";; + '"bios"') bios="bios = yes";; esac done get_next_filename $configdirectory/10.sys @@ -38,6 +42,8 @@ $sfdisk $hardware $luksheaders $lvm +$mbr +$bios # packagesfile = /var/backups/dpkg-selections.txt # selectionsfile = /var/backups/debconfsel.txt -- cgit v1.2.3