]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Sync after swap creation.
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 16 Sep 2010 03:12:32 +0000 (05:12 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 16 Sep 2010 03:12:32 +0000 (05:12 +0200)
config/rootfiles/core/test/update.sh

index 0bf88299a93ace407430a8c10d4d1911faca1533..138b2c17dbef9cd8e18b1789f277dc5c61619f75 100644 (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