mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +00:00
Merge pull request #1069 from justincormack/swap-fix
Always mount swap not just when created
This commit is contained in:
commit
2c604f1ef9
@ -96,8 +96,8 @@ do_swapfile()
|
||||
dd if=/dev/zero of=$SWAP bs=1k count=1048576
|
||||
chmod 600 $SWAP
|
||||
mkswap $SWAP
|
||||
swapon $SWAP
|
||||
fi
|
||||
[ -f "$SWAP" ] && swapon $SWAP
|
||||
}
|
||||
|
||||
start()
|
||||
|
Loading…
Reference in New Issue
Block a user