Sync after swap creation.

This commit is contained in:
Arne Fitzenreiter
2010-09-16 05:12:32 +02:00
parent 86833c2a16
commit 82adcbc03f

View File

@@ -142,6 +142,7 @@ if [ ! -z $SWAP ]; then
swapoff -a
mkswap $SWAP
swapon -a
sync
SWAPUUID=`blkid -sUUID $SWAP | cut -d'"' -f2`
if [ ! -z $SWAPUUID ]; then
sed -i "s|^$SWAP|UUID=$SWAPUUID|g" /etc/fstab