Fix enabling of swap from LiveOS/swap.img
The previous check required there to be a swap partition in addition to the existence of LiveOS/swap.img
This commit is contained in:
parent
ad792441ad
commit
15d51a1927
@ -122,9 +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
|
||||||
|
if ! strstr "\`cat /proc/cmdline\`" noswap && [ -f /mnt/live/LiveOS/swap.img ] ; then
|
||||||
|
action "Enabling swap file" swapon /mnt/live/LiveOS/swap.img
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mountPersistentHome() {
|
mountPersistentHome() {
|
||||||
|
Loading…
Reference in New Issue
Block a user