mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-11-04 15:54:20 +00:00
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:
parent
e50d87df64
commit
37a74697b6
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user