after some sleep i look into getting UKI on top of this:
❯ cat partition.sh
#!/usr/bin/env sh
set -e
# Partition
sgdisk -Z /dev/nvme0n1
sgdisk -n1:0:+512M -t1:ef00 -c1:EFI -N2 -t2:8304 -c2:pv0 /dev/nvme0n1
partprobe -s /dev/nvme0n1
cryptsetup luksFormat --type luks2 --force-password /dev/nvme0n1p2
cryptsetup luksOpen /dev/nvme0n1p2 pv0
cryptsetup luksDump /dev/nvme0n1p2
pvcreate /dev/mapper/pv0
vgcreate vg0 /dev/mapper/pv0
lvcreate -L 80G vg0 -n swap
lvcreate -l 100%FREE vg0 -n root
# Format and mounnt
mkfs.ext4 /dev/mapper/vg0-root
mkswap /dev/mapper/vg0-swap
mount /dev/mapper/vg0-root /mnt
swapon /dev/mapper/vg0-swap
mkfs.vfat -F32 /dev/nvme0n1p1
mount --mkdir /dev/nvme0n1p1 /mnt/boot
need this for my #btrfs to #ext4 migration 🤷 https://codeberg.org/jarkko/adhoc-backup #git
#codesberg - “Probably the best git hosting in the world”
workaround:
❯ cat user_credentials.json
{
"!root-password": null,
"!users": [
{
"!password": "SecretSanta2022",
"sudo": true,
"username": "jarkko"
}
],
"encryption_password": "SecretSanta2022"
}
Now I need to only remember that the password is SecretSanta2022 whenever I use this :-)
Found a null pointer deference in archinstall.
this flips:
root@archiso ~ # cat user_credentials.json
{
"!root-password": null,
"!users": [
{
"!password": null,
"sudo": true,
"username": "jarkko"
}
],
"encryption_password": null
}
this does not flip:
root@archiso ~ # cat user_credentials.json
{
"!root-password": null,
"!users": [
{
"!password": null,
"sudo": true,
"username": "jarkko"
}
],
"encryption_password": ""
}
it crashes when moving the cursor in the main menu on top of the “disk encryption”.
Given that I want to switch back to ext4, i need to also reinstall.
I went through manually installed RPM packages, narrowed the list down to 41 most critical, and here’s what I ended up with:
aerc bat bison ccache clang cmake expect fatcat flex fzf gcc github-cli gh git gnupg hatch hyperfine irssi mc mediainfo meson mmv msmtp ncdu neovim openssl pam-u2f pass patch pwgen qemu ranger rclone ripgrep sha3sum socat strace tealdeer w3m zig zola zoxide zsh
These are mapped to Arch Linux package names. I’ll install that distribution because I can just pass that list to archinstall be back in online maybe about ~2h :-)
It goes like this:
Now that I anyway have to reinstall I found out about how this works and it plain just make sense to me…
EDIT: actually 42 packages, gnupg was missing, well anyway…