From a3f16dcac6a10ff33f4c1a6cf43cef480d7a0550 Mon Sep 17 00:00:00 2001 From: histalek Date: Sat, 15 Apr 2023 11:26:06 +0200 Subject: [PATCH] arch_install!: Move from busybox based initrd to systemd based --- .dotfiles/arch_install.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.dotfiles/arch_install.md b/.dotfiles/arch_install.md index d8a78c1..f786550 100644 --- a/.dotfiles/arch_install.md +++ b/.dotfiles/arch_install.md @@ -248,7 +248,7 @@ title Arch Linux linux /vmlinuz-linux initrd /amd-ucode.img initrd /initramfs-linux.img -options cryptdevice=UUID=:luks-root root=/dev/mapper/luks-root rootflags=subvol=@,x-systemd.device-timeout=0 rd.luks.options=timeout=0 rw quiet loglevel=0 splash rd.systemd.show_status=0 rd.udev.log_level=0 +options rd.luks.name==luks-root root=/dev/mapper/luks-root rootflags=subvol=@,x-systemd.device-timeout=0 rw quiet loglevel=0 splash rd.systemd.show_status=0 rd.udev.log_level=0 rd.luks.options=discard,timeout=0 ``` Copy arch boot entry to `/boot/loader/entries/arch-fallback.conf` and set the initramfs to the fallback one. Resulting in the following @@ -258,7 +258,7 @@ title Arch Linux (fallback) linux /vmlinuz-linux initrd /amd-ucode.img initrd /initramfs-linux-fallback.img -options cryptdevice=UUID=:luks-root root=/dev/mapper/luks-root rootflags=subvol=@,x-systemd.device-timeout=0 rd.luks.options=timeout=0 rw quiet loglevel=0 splash rd.systemd.show_status=0 rd.udev.log_level=0 +options rd.luks.name==luks-root root=/dev/mapper/luks-root rootflags=subvol=@,x-systemd.device-timeout=0 rw quiet loglevel=0 splash rd.systemd.show_status=0 rd.udev.log_level=0 rd.luks.options=discard,timeout=0 ``` Edit boot loader config `/boot/loader/loader.conf` @@ -267,9 +267,11 @@ Edit boot loader config `/boot/loader/loader.conf` default arch.conf timeout 3 console-mode max -editor no +editor yes ``` +Note: Having `editor yes` can save you from needing a bootable USB if something goes wrong in the future. + Exit chroot, unmount disk, reboot ```console @@ -395,7 +397,7 @@ zram-size = min(ram, 8192) ### (optional) Configure boot splash screen Note: As of early April 2023 `plymouth` is now in the arch community repo. -The logic of the `plymouth-encrypt` hook has been merged to the `encrypt` hook. +The logic of the `plymouth-encrypt` hook has been merged to the `encrypt`/`sd-encrypt` hook. Install `plymouth` @@ -403,10 +405,10 @@ Install `plymouth` $ sudo paru -Syu plymouth ``` -Adapt mkinitcpio hooks. Add `plymouth` **after** `base udev`. Resulting in e.g. +Adapt mkinitcpio hooks. Add `plymouth` **after** `base systemd`. Resulting in e.g. ```ini -HOOKS=(base udev plymouth autodetect modconf kms keyboard keymap consolefont block encrypt btrfs filesystems fsck) +HOOKS=(base systemd autodetect modconf kms keyboard sd-vconsole block filesystems plymouth sd-encrypt fsck) ``` Set theme for plymouth (this also regenerates the initramfs)