mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
Sync after swap creation.
This commit is contained in:
@@ -142,6 +142,7 @@ if [ ! -z $SWAP ]; then
|
|||||||
swapoff -a
|
swapoff -a
|
||||||
mkswap $SWAP
|
mkswap $SWAP
|
||||||
swapon -a
|
swapon -a
|
||||||
|
sync
|
||||||
SWAPUUID=`blkid -sUUID $SWAP | cut -d'"' -f2`
|
SWAPUUID=`blkid -sUUID $SWAP | cut -d'"' -f2`
|
||||||
if [ ! -z $SWAPUUID ]; then
|
if [ ! -z $SWAPUUID ]; then
|
||||||
sed -i "s|^$SWAP|UUID=$SWAPUUID|g" /etc/fstab
|
sed -i "s|^$SWAP|UUID=$SWAPUUID|g" /etc/fstab
|
||||||
|
|||||||
Reference in New Issue
Block a user