]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - config/rootfiles/core/test/update.sh
Sync after swap creation.
[people/pmueller/ipfire-2.x.git] / 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