summaryrefslogtreecommitdiff
path: root/src/core/libs/lib-ui-interactive.sh
diff options
context:
space:
mode:
authorpyther@pyther.net <pyther@pyther.net>2011-02-27 17:41:20 -0500
committerDieter Plaetinck <dieter@plaetinck.be>2011-02-28 21:06:33 +0100
commit048532662999a5f0909646f26f5368ddbf0558fa (patch)
tree50aa94594c9f216c70f6f8d0f451bce2a3245a13 /src/core/libs/lib-ui-interactive.sh
parentf8cd79fffaf5f1f0f7c9a2c5c0850b2677288119 (diff)
Rewrite finddisks and findblockdevices (now find_usable_blockdevices)
find_usable_blockdevices returns a list of block devices such as those exposed by SCSI/Sata, CCISS, IDA, LVM and Linux SOFT RAID; as well as any partitions on top of those. Devices in use by LVM and SOFT RAID are excluded. Signed-off-by: Dieter Plaetinck <dieter@plaetinck.be>
Diffstat (limited to 'src/core/libs/lib-ui-interactive.sh')
-rw-r--r--src/core/libs/lib-ui-interactive.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh
index b244a6e..64be570 100644
--- a/src/core/libs/lib-ui-interactive.sh
+++ b/src/core/libs/lib-ui-interactive.sh
@@ -557,7 +557,7 @@ interactive_filesystems() {
if [ ! -f $TMP_BLOCKDEVICES ] || ! ask_yesno "Previous blockdevice definitions found:\n`cat $TMP_BLOCKDEVICES`\n\
Use these as a starting point? Make sure your disk(s) are partitioned correctly so your definitions can be applied. Pick 'no' when in doubt to start from scratch" no
then
- findblockdevices 'raw no_label no_fs\n' > $TMP_BLOCKDEVICES
+ find_usable_blockdevices 'raw no_label no_fs\n' > $TMP_BLOCKDEVICES
fi
[ -z "$PART_ACCESS" ] && PART_ACCESS=dev
@@ -885,7 +885,7 @@ interactive_grub() {
# Create and edit the grub menu.lst
interactive_grub_menulst
- DEVS="$(findblockdevices '_ ')"
+ DEVS="$(find_usable_blockdevices '_ ')"
if [ "$DEVS" = " " ]; then
notify "No hard drives were found"
return 1