filesystem: swap: yet another fix, add UUID= when calling swapon using uuid
This commit is contained in:
parent
f7e9e7befb
commit
29c1787405
@ -296,7 +296,7 @@ blkid | grep /dev/sd | while read line; do
|
|||||||
echo "\
|
echo "\
|
||||||
UUID=${uuid} $mount_point \
|
UUID=${uuid} $mount_point \
|
||||||
${fstype:-"auto"} ${options:-"noauto,user"}${extra_options} ${check_options}" >> $fstab
|
${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
|
else
|
||||||
echo "\
|
echo "\
|
||||||
$dev $mount_point \
|
$dev $mount_point \
|
||||||
|
Loading…
Reference in New Issue
Block a user