live: remove automatic swap discovery

We don't want to leave unencrypted memory dumps on some "random" disk
found in the system.
release3.1
Marek Marczykowski-Górecki 9 years ago
parent d57c5e814a
commit 9a80875a5d
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

@ -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

Loading…
Cancel
Save