Add reflector configuration
Improve dirname on scripts
This commit is contained in:
@@ -8,7 +8,7 @@ PACSTRAP_EXTRA_ARGS="-c"
|
||||
### Switch to the script directory
|
||||
cd "$(dirname "$0")"
|
||||
DIRNAME="$(pwd)"
|
||||
source scripts/functions.sh
|
||||
source scripts/functions
|
||||
|
||||
### Format disk
|
||||
sgdisk --clear \
|
||||
@@ -20,6 +20,8 @@ partprobe "$DISK"
|
||||
### Create Luks partition
|
||||
printf "%s\n" "root" | cryptsetup --batch-mode --verify-passphrase luksFormat /dev/disk/by-partlabel/SYS
|
||||
printf "%s\n" "root" | cryptsetup open /dev/disk/by-partlabel/SYS rootfs
|
||||
cryptsetup config /dev/disk/by-partlabel/SYS --label sys
|
||||
cryptsetup --allow-discards --persistent refresh rootfs
|
||||
|
||||
### Create filesystem
|
||||
mkfs.fat -F32 -n efi /dev/disk/by-partlabel/EFI
|
||||
|
||||
Reference in New Issue
Block a user