diff options
author | Jeremy Katz <katzj@redhat.com> | 2008-10-09 19:08:23 -0400 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2008-10-09 19:25:07 -0400 |
commit | 37a74697b64d9767487b5c0f074184d665ebabb6 (patch) | |
tree | 1b394ae2c24294af85714c1c820730ab046087a9 /fedora-live-base.ks | |
parent | e50d87df6446417bd2c97d8c5dd7dff029f04968 (diff) | |
download | spin-kickstarts-37a74697b64d9767487b5c0f074184d665ebabb6.tar.gz spin-kickstarts-37a74697b64d9767487b5c0f074184d665ebabb6.tar.xz spin-kickstarts-37a74697b64d9767487b5c0f074184d665ebabb6.zip |
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
Diffstat (limited to 'fedora-live-base.ks')
-rw-r--r-- | fedora-live-base.ks | 3 |
1 files changed, 3 insertions, 0 deletions
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() { |