Add reflector configuration

Improve dirname on scripts
This commit is contained in:
2024-09-13 11:42:27 +02:00
parent d4539b6c2b
commit f8780fa846
8 changed files with 58 additions and 13 deletions

View File

@@ -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