From 5312add5abeb5ead92ed7397c53092295f86a143 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sat, 1 Aug 2009 18:23:51 +0200 Subject: optionally reuse definitions from autoprepare in interactive one --- src/core/libs/lib-ui-interactive.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh index 9283a19..8c0316f 100644 --- a/src/core/libs/lib-ui-interactive.sh +++ b/src/core/libs/lib-ui-interactive.sh @@ -573,9 +573,15 @@ remove_blockdevice () interactive_filesystems() { - #notify "Available Disks:\n\n$(_getavaildisks)\n" quite useless here I think - - findpartitions 0 'no_fs' ' raw no_label' > $TMP_BLOCKDEVICES + renew_blockdevices=1 + if [ -f $TMP_BLOCKDEVICES ] + then + if ask_yesno "I've detected you already have blockdevice definitions in place:\n`cat $TMP_BLOCKDEVICES`\nDo you want to use these as a starting point?\nMake sure your disk(s) are partitioned correctly so your definitions can be applied on the disk. Pick 'no' when in doubt to start from scratch" no + then + new_blockdevices=0 + fi + fi + [ "$renew_blockdevices" = 1 ] && findpartitions 0 'no_fs' ' raw no_label' > $TMP_BLOCKDEVICES ALLOK=0 while [ "$ALLOK" = 0 ] -- cgit v1.2.3-54-g00ecf