live: remove automatic swap discovery
We don't want to leave unencrypted memory dumps on some "random" disk found in the system.
This commit is contained in:
parent
d57c5e814a
commit
9a80875a5d
@ -35,13 +35,6 @@ for arg in `cat /proc/cmdline` ; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# enable swaps unless requested otherwise
|
|
||||||
swaps=`blkid -t TYPE=swap -o device`
|
|
||||||
if ! strstr "`cat /proc/cmdline`" noswap && [ -n "$swaps" ] ; then
|
|
||||||
for s in $swaps ; do
|
|
||||||
action "Enabling swap partition $s" swapon $s
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
if ! strstr "`cat /proc/cmdline`" noswap && [ -f /run/initramfs/live/${livedir}/swap.img ] ; then
|
if ! strstr "`cat /proc/cmdline`" noswap && [ -f /run/initramfs/live/${livedir}/swap.img ] ; then
|
||||||
action "Enabling swap file" swapon /run/initramfs/live/${livedir}/swap.img
|
action "Enabling swap file" swapon /run/initramfs/live/${livedir}/swap.img
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user