Compare commits
2 Commits
2be680b1e4
...
d0100711f6
| Author | SHA1 | Date | |
|---|---|---|---|
| d0100711f6 | |||
| c96fec87c8 |
5
final.sh
5
final.sh
@@ -18,6 +18,7 @@ disks_prepare() {
|
||||
#HEADER_PART=/dev/${_HEADER_DEV}1
|
||||
wipefs -a /dev/${_HEADER_DEV}1
|
||||
wipefs -a /dev/${_SYS_DEV}1
|
||||
wipefs -a /dev/${_SYS_DEV}3
|
||||
|
||||
echo -n "$_LUKS_PASS" | cryptsetup luksFormat --type luks2 --batch-mode --key-file - --header /dev/${_HEADER_DEV}1 /dev/${_SYS_DEV}3
|
||||
echo -n "$_LUKS_PASS" | cryptsetup open /dev/${_SYS_DEV}3 --header /dev/${_HEADER_DEV}1 --key-file - cryptroot
|
||||
@@ -110,7 +111,7 @@ fs_init
|
||||
install_system
|
||||
|
||||
echo "DONE! "
|
||||
umount -R /mnt
|
||||
cryptsetup close cryptroot
|
||||
#umount -R /mnt
|
||||
#cryptsetup close cryptroot
|
||||
#mdadm --stop /dev/md0
|
||||
reboot
|
||||
|
||||
Reference in New Issue
Block a user