Enable swap immediately after creation

This commit is contained in:
Disassembler 2018-10-31 23:09:24 +01:00
parent 35a70fd5c1
commit ab62d9bafc
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499

View File

@ -32,6 +32,7 @@ EOF
if [ ! -e /dev/vg0/swap ]; then if [ ! -e /dev/vg0/swap ]; then
/sbin/lvcreate -L 4G vg0 -n swap /sbin/lvcreate -L 4G vg0 -n swap
/sbin/mkswap /dev/vg0/swap /sbin/mkswap /dev/vg0/swap
/sbin/swapon /dev/vg0/swap
fi fi
# Extend LV and underlying filesystem # Extend LV and underlying filesystem