summaryrefslogtreecommitdiff
path: root/src/lib/lib-ui.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/lib-ui.sh')
-rw-r--r--src/lib/lib-ui.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/lib-ui.sh b/src/lib/lib-ui.sh
index 10ad1a1..5cd7ecc 100644
--- a/src/lib/lib-ui.sh
+++ b/src/lib/lib-ui.sh
@@ -37,6 +37,7 @@ gui_geteditor() {
esac
}
+
# Get a list of available disks for use in the "Available disks" dialogs. This
# will print the disks as follows, getting size info from hdparm:
# /dev/sda: 640133 MBytes (640 GB)
@@ -46,4 +47,15 @@ gui_getavaildisks()
# NOTE: to test as non-root, stick in a 'sudo' before the hdparm call
for i in $(finddisks); do echo -n "$i: "; hdparm -I $i | grep -F '1000*1000' | sed "s/.*1000:[ \t]*\(.*\)/\1/"; echo "\n"; done
}
+
+
+# taken from setup code. edited to echo the choice, not perform it
+gui_ask_bootloader()
+{
+ DIALOG --colors --menu "Which bootloader would you like to use? Grub is the Arch default.\n\n" \
+ 10 65 2 \
+ "GRUB" "Use the GRUB bootloader (default)" \
+ "None" "\Zb\Z1Warning\Z0\ZB: you must install your own bootloader!" 2>$ANSWER
+ cat $ANSWER
+}
\ No newline at end of file