install_closebootis the install hookruntime_closebootis the runtime hook
- Copy
install_closebootto/usr/lib/initcpio/install/closeboot - Copy
runtime_closebootto/usr/lib/initcpio/hooks/closeboot - Modify
/usr/lib/initcpio/hooks/closebootappropriately, namely by replacing/dev/PATH_DUMMYwith 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
closebootto list of hooks at/etc/mkinitcpio.confafterencrypthook, e.g.HOOKS="base udev autodetect modconf block encrypt closeboot filesystems keyboard fsck" - Regnerate kernel images via
mkinitcpio -p linuxwith boot partitions mounted