diff options
author | Thomas Bächler <thomas@archlinux.org> | 2010-04-10 20:00:34 +0200 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2010-04-10 20:31:53 +0200 |
commit | 341ae1612dc7f844ec35020b7f509b61b4d89131 (patch) | |
tree | fdc6105490109a3ded32dd261d980caaedac3b3b /src | |
parent | d263e3af448e948508ceafde15ac72a7f88df59a (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.sh | 3 |
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 |