arch_install!: Move from busybox based initrd to systemd based
This commit is contained in:
parent
c5ac319a29
commit
a3f16dcac6
1 changed files with 8 additions and 6 deletions
|
@ -248,7 +248,7 @@ title Arch Linux
|
|||
linux /vmlinuz-linux
|
||||
initrd /amd-ucode.img
|
||||
initrd /initramfs-linux.img
|
||||
options cryptdevice=UUID=<UUID-OF-ROOT-PARTITION>: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=<UUID-OF-ROOT-PARTITION>=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=<UUID-OF-ROOT-PARTITION>: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=<UUID-OF-ROOT-PARTITION>=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)
|
||||
|
|
Loading…
Add table
Reference in a new issue