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:
Marek Marczykowski-Górecki 2015-09-25 15:31:12 +02:00
parent d57c5e814a
commit 9a80875a5d
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -35,13 +35,6 @@ for arg in `cat /proc/cmdline` ; do
fi
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
action "Enabling swap file" swapon /run/initramfs/live/${livedir}/swap.img
fi