projects
/
grml-debootstrap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release new version 0.68
[grml-debootstrap.git]
/
grml-debootstrap
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
f589166
..
ffcb6aa
100755
(executable)
--- a/
grml-debootstrap
+++ b/
grml-debootstrap
@@
-419,7
+419,7
@@
prompt_for_target()
AVAILABLE_PARTITIONS=$(LANG=C fdisk -l 2>/dev/null | \
sed 's/*//' | \
grep -v 'Extended$' | \
AVAILABLE_PARTITIONS=$(LANG=C fdisk -l 2>/dev/null | \
sed 's/*//' | \
grep -v 'Extended$' | \
- gawk -v num=0 -v ORS=' ' '/^\/dev\// {print $1}'; ls /dev/md* 2>/dev/null || true);
+ gawk -v num=0 -v ORS=' ' '/^\/dev\// {print $1}'; ls /dev/md
[0-9]
* 2>/dev/null || true);
if [ -z "$AVAILABLE_PARTITIONS" ] ; then
dialog --title "$PN" --trim \
if [ -z "$AVAILABLE_PARTITIONS" ] ; then
dialog --title "$PN" --trim \
@@
-430,7
+430,10
@@
prompt_for_target()
fi
PARTITION_LIST=$(for i in $AVAILABLE_PARTITIONS ; do
fi
PARTITION_LIST=$(for i in $AVAILABLE_PARTITIONS ; do
- echo "$i $(blkid -s TYPE -o value "$i" 2>/dev/null || echo '[no_filesystem_yet]')"
+ fs="$(blkid -s TYPE -o value "$i" 2>/dev/null)"
+ [ -n "$fs" ] || fs='[no_filesystem_yet]'
+ echo "$i" "$fs"
+ unset fs
done)
TARGET=$(dialog --title "$PN" --single-quoted --stdout \
done)
TARGET=$(dialog --title "$PN" --single-quoted --stdout \