From 37a74697b64d9767487b5c0f074184d665ebabb6 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Thu, 9 Oct 2008 19:08:23 -0400 Subject: Support having a swap file on the image If you're using a USB stick or SD card, you may wish to use a swapfile off of it. Support having a LiveOS/swap.img --- fedora-live-base.ks | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fedora-live-base.ks') diff --git a/fedora-live-base.ks b/fedora-live-base.ks index 8e18f65..7a4eb05 100644 --- a/fedora-live-base.ks +++ b/fedora-live-base.ks @@ -122,6 +122,9 @@ if ! strstr "\`cat /proc/cmdline\`" noswap && [ -n "\$swaps" ] ; then for s in \$swaps ; do action "Enabling swap partition \$s" swapon \$s done + if [ -f /mnt/live/LiveOS/swap.img ]; then + action "Enabling swap file" swapon /mnt/live/LiveOS/swap.img + fi fi mountPersistentHome() { -- cgit