mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
Better implementation of cryptsetup.
This commit is contained in:
parent
16c4b5b628
commit
c3cc5b8414
1 changed files with 3 additions and 3 deletions
|
|
@ -119,9 +119,9 @@ mkfs.fat -F 32 $ESP &>/dev/null
|
||||||
|
|
||||||
# Creating a LUKS Container for the root partition.
|
# Creating a LUKS Container for the root partition.
|
||||||
print "Creating LUKS Container for the root partition."
|
print "Creating LUKS Container for the root partition."
|
||||||
cryptsetup luksFormat $Cryptroot
|
read -r -p "Insert password for the LUKS container: " password
|
||||||
print "Opening the newly created LUKS Container."
|
echo -n "$hostname" | cryptsetup luksFormat $Cryptroot -d -
|
||||||
cryptsetup open $Cryptroot cryptroot
|
echo -n "$hostname" | cryptsetup open $Cryptroot cryptroot -d -
|
||||||
BTRFS="/dev/mapper/cryptroot"
|
BTRFS="/dev/mapper/cryptroot"
|
||||||
|
|
||||||
# Formatting the LUKS Container as BTRFS.
|
# Formatting the LUKS Container as BTRFS.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue