From ab62d9bafc07ae9a2464bfe118ee2a7730dcf169 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Wed, 31 Oct 2018 23:09:24 +0100 Subject: [PATCH] Enable swap immediately after creation --- basic/sbin/extend-disk | 1 + 1 file changed, 1 insertion(+) diff --git a/basic/sbin/extend-disk b/basic/sbin/extend-disk index 174d230..71ca824 100755 --- a/basic/sbin/extend-disk +++ b/basic/sbin/extend-disk @@ -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