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
This commit is contained in:
Jeremy Katz 2008-10-09 19:08:23 -04:00
parent e50d87df64
commit 37a74697b6

View File

@ -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() {