Enable swap immediately after creation
This commit is contained in:
parent
35a70fd5c1
commit
ab62d9bafc
@ -32,6 +32,7 @@ EOF
|
||||
if [ ! -e /dev/vg0/swap ]; then
|
||||
/sbin/lvcreate -L 4G vg0 -n swap
|
||||
/sbin/mkswap /dev/vg0/swap
|
||||
/sbin/swapon /dev/vg0/swap
|
||||
fi
|
||||
|
||||
# Extend LV and underlying filesystem
|
||||
|
Loading…
Reference in New Issue
Block a user