Mkinitcpio.conf correct hooks and syntax

It was around that time, yes, and there was a .pacnew file for it, too. :wink:

By the way, I still propose…

  • replacing base and udev — as well as resume and/or usr, if present — by systemd;…
  • replacing keymap and consolefont by sd-vconsole; and…
  • replacing encrypt (if present) by sd-encrypt.

It shaves off a bit — not a whole lot, but it’s noticeable — from the boot time, and it makes the initramfs a bit smaller. The way the systemd hook works is that it will build the initcpio with what is currently needed by the running system.

Also, base doesn’t really make any sense anymore, because it only provides a busybox rescue shell, but the rescue shell is unusable because the root account in the initramfs is locked. So that rescue shell is just sitting there in the initramfs for no reason at all.

4 Likes