mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 11:35:54 +02:00
Sync after swap creation.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user