mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-12-22 13:45:39 +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
|
for s in \$swaps ; do
|
||||||
action "Enabling swap partition \$s" swapon \$s
|
action "Enabling swap partition \$s" swapon \$s
|
||||||
done
|
done
|
||||||
|
if [ -f /mnt/live/LiveOS/swap.img ]; then
|
||||||
|
action "Enabling swap file" swapon /mnt/live/LiveOS/swap.img
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mountPersistentHome() {
|
mountPersistentHome() {
|
||||||
|
Loading…
Reference in New Issue
Block a user