diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-11-10 18:28:27 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-11-10 18:28:27 +0100 |
commit | 1e4fbe97da9a2e1e9b14c0a1f88f85af59387bf0 (patch) | |
tree | fd59b7d2e4d94c5009144bc771034758eb9f0d26 /src | |
parent | fc3809dec26d21eb18a568b9ec018ed0f042f901 (diff) |
cleanup + hopefully a fix for grub thingie
Diffstat (limited to 'src')
-rw-r--r-- | src/core/libs/lib-blockdevices-filesystems.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/libs/lib-blockdevices-filesystems.sh b/src/core/libs/lib-blockdevices-filesystems.sh index 8234463..b4818fc 100644 --- a/src/core/libs/lib-blockdevices-filesystems.sh +++ b/src/core/libs/lib-blockdevices-filesystems.sh @@ -102,8 +102,7 @@ findpartitions() { for part in $disk* do # check if not already assembled to a raid device - if ! [ "$(cat /proc/mdstat 2>/dev/null | grep $part)" -o "$(fstype 2>/dev/null </dev/$part | grep "lvm2")" \ - -o "$(sfdisk -c /dev/$disk $(echo $part | sed -e "s#$disk##g") 2>/dev/null | grep "5")" ] + if ! [ "$(grep $part /proc/mdstat 2>/dev/null)" -o "$(fstype 2>/dev/null </dev/$part | grep lvm2)" -o "$(sfdisk -c /dev/$disk $(echo $part | sed -e "s#$disk##g") 2>/dev/null | grep "5")" ] then if [ -d $part ] then @@ -155,7 +154,7 @@ findpartitions() { # taken from setup get_grub_map() { - rm $TMP_DEV_MAP + rm $TMP_DEV_MAP #TODO: this doesn't exist? is this a problem? ASKDEV $var_TARGET_DIR/sbin/grub --no-floppy --device-map $TMP_DEV_MAP >/tmp/grub.log 2>&1 <<EOF quit EOF |