swap-crypt
This commit is contained in:
parent
2771f0b326
commit
60c89b84fc
1 changed files with 7 additions and 1 deletions
|
@ -453,7 +453,7 @@ function installation {
|
||||||
|
|
||||||
|
|
||||||
if [ "${swap}" != "n" ]; then
|
if [ "${swap}" != "n" ]; then
|
||||||
if [ "${verschluesselung}" == "y" ]; then
|
if [ "${swapverschluesselung}" == "y" ]; then
|
||||||
swappartition=$(blkid -s PARTUUID -o value ${device}${swappartitionnummer})
|
swappartition=$(blkid -s PARTUUID -o value ${device}${swappartitionnummer})
|
||||||
echo "swap PARTUUID=${swappartition} /dev/urandom swap,cipher=aes-cbc-essiv:sha256,size=256" > ${mountpoint}/etc/crypttab
|
echo "swap PARTUUID=${swappartition} /dev/urandom swap,cipher=aes-cbc-essiv:sha256,size=256" > ${mountpoint}/etc/crypttab
|
||||||
echo "/dev/mapper/swap none swap defaults 0 0" >> ${mountpoint}/etc/fstab
|
echo "/dev/mapper/swap none swap defaults 0 0" >> ${mountpoint}/etc/fstab
|
||||||
|
@ -894,6 +894,12 @@ function abfrage() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
read -p "Do you want to create a swap partition? : [Y/n] " swap
|
read -p "Do you want to create a swap partition? : [Y/n] " swap
|
||||||
|
if [ "${swap}" != "n" ]; then
|
||||||
|
echo "WARNING with a encrypted Swap disk you cant go in the hibernate-modus!!!"
|
||||||
|
read -p "Should the Swap disk be encrypted? : [y/N] " swapverschluesselung
|
||||||
|
[[ -z "${swapverschluesselung}" ]] && swapverschluesselung=n
|
||||||
|
fi
|
||||||
|
|
||||||
read -p "Do you want to create a swapfile? : [y/N] " swapfile
|
read -p "Do you want to create a swapfile? : [y/N] " swapfile
|
||||||
if [ "${swapfile}" == "y" ]; then
|
if [ "${swapfile}" == "y" ]; then
|
||||||
read -p "Do you want create your swapfile with : [2G/4G/8G/16G] " swapfilespeicher
|
read -p "Do you want create your swapfile with : [2G/4G/8G/16G] " swapfilespeicher
|
||||||
|
|
Loading…
Reference in a new issue