fix
This commit is contained in:
parent
2c77e351a0
commit
7184f8b425
1 changed files with 8 additions and 2 deletions
10
arch-install
10
arch-install
|
@ -69,9 +69,15 @@ function secureumount() {
|
||||||
umount ${mountpoint}
|
umount ${mountpoint}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if cat /proc/mounts | grep /dev/mapper/luks0 > /dev/null; then
|
if fdisk -l | grep /dev/mapper/luks0 > /dev/null; then
|
||||||
cryptsetup remove /dev/mapper/luks0
|
cryptsetup remove /dev/mapper/luks0
|
||||||
fi
|
fi
|
||||||
|
if cat /proc/mounts | grep ${device}1 > /dev/null; then
|
||||||
|
umount ${device}1
|
||||||
|
fi
|
||||||
|
if cat /proc/mounts | grep ${usbkeydevice} > /dev/null; then
|
||||||
|
umount ${usbkeydevice}
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -110,7 +116,7 @@ function partionierenohneswap() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function usbkeyinstallation() {
|
function usbkeyinstallation() {
|
||||||
mkdir /mnt/usb-stick
|
mkdir -p /mnt/usb-stick
|
||||||
mount ${usbkeydevice} /mnt/usb-stick
|
mount ${usbkeydevice} /mnt/usb-stick
|
||||||
dd if=/dev/urandom of=/mnt/usb-stick/archkey bs=512 count=4
|
dd if=/dev/urandom of=/mnt/usb-stick/archkey bs=512 count=4
|
||||||
cryptsetup luksAddKey ${device}${rootpartitionnummer} /mnt/usb-stick/archkey
|
cryptsetup luksAddKey ${device}${rootpartitionnummer} /mnt/usb-stick/archkey
|
||||||
|
|
Loading…
Reference in a new issue