summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2010-04-10 20:00:34 +0200
committerDieter Plaetinck <dieter@plaetinck.be>2010-04-10 20:31:53 +0200
commit341ae1612dc7f844ec35020b7f509b61b4d89131 (patch)
treefdc6105490109a3ded32dd261d980caaedac3b3b /src
parentd263e3af448e948508ceafde15ac72a7f88df59a (diff)
Do not hide the whole disk when choosing partitions for file systems
Signed-off-by: Dieter Plaetinck <dieter@plaetinck.be>
Diffstat (limited to 'src')
-rw-r--r--src/core/libs/lib-blockdevices-filesystems.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/libs/lib-blockdevices-filesystems.sh b/src/core/libs/lib-blockdevices-filesystems.sh
index 4708c3b..f8d6e6c 100644
--- a/src/core/libs/lib-blockdevices-filesystems.sh
+++ b/src/core/libs/lib-blockdevices-filesystems.sh
@@ -203,6 +203,9 @@ findpartitions() {
for devpath in $(finddisks)
do
disk=$(echo $devpath | sed 's|.*/||')
+ echo -n "/dev/$disk$3"
+ [ "$1" = 1 ] && echo || echo -n ' '
+ [ "$2" ] && echo $2
cd /sys/block/$disk
for part in $disk*
do