Compare commits

...

2 Commits

Author SHA1 Message Date
lub 1bd81c1471 fixups
change default longhorn path

add e2fsprogs (fsck.ext4 was missing the whole time lul)

rename lv

only stripe rootfs, because striping requires same size disks
1 month ago
lub 2d0f0cfb4d change DROPBEAR_SK_ED25519=y to DROPBEAR_SK_KEYS=y
newer dropbear in trixie requires different config parameters

also see c9354146da
1 month ago

@ -1,2 +1,2 @@
# <target> <source device> <key file> <options>
root-unlocked /dev/mapper/all_vg-root_striped none luks,discard
root-unlocked /dev/all_vg/root none luks,discard

@ -1,3 +1,3 @@
DROPBEAR_OPTIONS="-p 222 -s"
DROPBEAR_SK_ED25519=y
DROPBEAR_SK_KEYS=y

@ -7,4 +7,4 @@
UUID=%boot_uuid% /boot ext4 relatime 0 2
UUID=%esp_uuid% /boot/efi vfat relatime 0 2
/dev/mapper/all_vg-longhorn_striped /longhorn ext4 relatime 0 2
/dev/all_vg/longhorn /var/lib/longhorn/ ext4 relatime 0 2

@ -15,7 +15,8 @@ parted -- /dev/nvme2n1 mkpart primary 1 -1 # LVM
pvcreate /dev/nvme0n1p3 /dev/nvme1n1p1 /dev/nvme2n1p1
vgcreate all_vg /dev/nvme0n1p3 /dev/nvme1n1p1 /dev/nvme2n1p1
lvcreate --stripes 3 --size 100Gi --name root_striped all_vg
lvcreate --stripes 3 --extents 100%FREE --name longhorn_striped all_vg
# root can be striped, because all disks will likely be >100Gi
lvcreate --stripes 3 --size 100Gi --name root all_vg
lvcreate --extents 100%FREE --name longhorn all_vg
sleep 1

@ -23,7 +23,7 @@ apt-get -y install locales
### boot
apt-get -y install lvm2 mdadm cryptsetup systemd systemd-sysv firmware-linux
apt-get -y install lvm2 mdadm cryptsetup systemd systemd-sysv e2fsprogs firmware-linux
systemctl enable fstrim.timer
# --force-confold because we already provide /etc/dropbear/initramfs/dropbear.conf

@ -10,7 +10,7 @@ apt-get -y install lvm2 mdadm cryptsetup debootstrap
root="hardware/${1}/root"
boot="hardware/${1}/boot"
esp="hardware/${1}/esp"
longhorn="hardware/${1}/longhorn"
longhorn="hardware/${1}/var/lib/longhorn"
# encrypt and unlock root device
echo -n 'Enter luks password: '
@ -42,7 +42,7 @@ mount "$esp" "$chroot/boot/efi"
# additional data disks
mkfs.ext4 "$longhorn"
mkdir "$chroot/longhorn"
mkdir -p "$chroot/var/lib/longhorn"
# debootstrap

Loading…
Cancel
Save