From 35e442546e0ead5bd1d1718a39d7ab644cd6fa8c Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Fri, 5 Mar 2010 22:41:41 +0100 Subject: try to use UUID in fstab. fixes FS#17632 - [uuid support] regression in /etc/fstab --- src/core/libs/lib-blockdevices-filesystems.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/libs/lib-blockdevices-filesystems.sh b/src/core/libs/lib-blockdevices-filesystems.sh index e6227b9..841ccf4 100644 --- a/src/core/libs/lib-blockdevices-filesystems.sh +++ b/src/core/libs/lib-blockdevices-filesystems.sh @@ -763,10 +763,12 @@ process_filesystem () local _uuid="$(getuuid $part)" if [ -n "${_uuid}" ]; then _device="UUID=${_uuid}" + else + _device=$part fi - if ! grep -q "$part $fs_mountpoint $fs_type defaults 0 " $TMP_FSTAB 2>/dev/null #$TMP_FSTAB may not exist yet + if ! grep -q "$_device $fs_mountpoint $fs_type defaults 0 " $TMP_FSTAB 2>/dev/null #$TMP_FSTAB may not exist yet then - echo -n "$part $fs_mountpoint $fs_type defaults 0 " >> $TMP_FSTAB + echo -n "$_device $fs_mountpoint $fs_type defaults 0 " >> $TMP_FSTAB if [ "$fs_type" = "swap" ]; then echo "0" >>$TMP_FSTAB else -- cgit v1.2.3-54-g00ecf