install_closeboot
is the install hookruntime_closeboot
is the runtime hook
- Copy
install_closeboot
to/usr/lib/initcpio/install/closeboot
- Copy
runtime_closeboot
to/usr/lib/initcpio/hooks/closeboot
- Modify
/usr/lib/initcpio/hooks/closeboot
appropriately, namely by replacing/dev/PATH_DUMMY
with whatever device path the device would be residing at, ideally use a UUID path. Usels -l /dev/disk/by-uuid/
to find the appropriate path indexed by UUID for your external device. - Add
closeboot
to list of hooks at/etc/mkinitcpio.conf
afterencrypt
hook, e.g.HOOKS="base udev autodetect modconf block encrypt closeboot filesystems keyboard fsck"
- Regnerate kernel images via
mkinitcpio -p linux
with boot partitions mounted