diff --git a/fedora-live-base.ks b/fedora-live-base.ks index 0bb823c..3d821f7 100644 --- a/fedora-live-base.ks +++ b/fedora-live-base.ks @@ -122,9 +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 +if ! strstr "\`cat /proc/cmdline\`" noswap && [ -f /mnt/live/LiveOS/swap.img ] ; then + action "Enabling swap file" swapon /mnt/live/LiveOS/swap.img fi mountPersistentHome() {