diff --git a/fedora-live-base.ks b/fedora-live-base.ks index bfed175..46585f3 100644 --- a/fedora-live-base.ks +++ b/fedora-live-base.ks @@ -108,13 +108,7 @@ for arg in \`cat /proc/cmdline\` ; do fi done -# enable swaps unless requested otherwise -swaps=\`blkid -t TYPE=swap -o device\` -if ! strstr "\`cat /proc/cmdline\`" noswap && [ -n "\$swaps" ] ; then - for s in \$swaps ; do - action "Enabling swap partition \$s" swapon \$s - done -fi +# enable swapfile if it exists if ! strstr "\`cat /proc/cmdline\`" noswap && [ -f /run/initramfs/live/\${livedir}/swap.img ] ; then action "Enabling swap file" swapon /run/initramfs/live/\${livedir}/swap.img fi