summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2010-03-05 22:41:41 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2010-03-05 22:41:41 +0100
commit35e442546e0ead5bd1d1718a39d7ab644cd6fa8c (patch)
treede50c27d57388b654f1fcfb7c5340bd5356f0986 /src/core
parentaa80222dfd8b99da392236d139517076b3292cf6 (diff)
try to use UUID in fstab. fixes FS#17632 - [uuid support] regression in /etc/fstab
Diffstat (limited to 'src/core')
-rw-r--r--src/core/libs/lib-blockdevices-filesystems.sh6
1 files changed, 4 insertions, 2 deletions
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