summaryrefslogtreecommitdiff
path: root/src/core/libs/lib-ui-interactive.sh
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2009-08-01 18:23:51 +0200
committerDieter Plaetinck <dieter@plaetinck.be>2009-08-01 18:27:04 +0200
commit5312add5abeb5ead92ed7397c53092295f86a143 (patch)
tree0ee274c83a89a07ea44220b1be1e4ebda78d6301 /src/core/libs/lib-ui-interactive.sh
parente558f9170096e2e397f18d13b75d8facf02e10eb (diff)
optionally reuse definitions from autoprepare in interactive one
Diffstat (limited to 'src/core/libs/lib-ui-interactive.sh')
-rw-r--r--src/core/libs/lib-ui-interactive.sh12
1 files changed, 9 insertions, 3 deletions
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 ]