filesystem: swap: yet another fix, add UUID= when calling swapon using uuid

This commit is contained in:
Silvan Calarco 2013-09-29 18:40:45 +02:00
parent f7e9e7befb
commit 29c1787405

View File

@ -296,7 +296,7 @@ blkid | grep /dev/sd | while read line; do
echo "\
UUID=${uuid} $mount_point \
${fstype:-"auto"} ${options:-"noauto,user"}${extra_options} ${check_options}" >> $fstab
[ "$fstype" = "swap" ] && /sbin/swapon -p 1 ${uuid}
[ "$fstype" = "swap" ] && /sbin/swapon -p 1 UUID=${uuid}
else
echo "\
$dev $mount_point \