fedora-live-base.ks | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 37a74697b64d9767487b5c0f074184d665ebabb6
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Thu Oct 9 19:08:23 2008 -0400
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
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() {
Show replies by date