]> git.ipfire.org Git - thirdparty/plymouth.git/commit
systemd: Add mkinitcpio support to plymouth-switch-root-initramfs.service
authorMaxim Mikityanskiy <maxtram95@gmail.com>
Sat, 1 Oct 2022 11:52:19 +0000 (14:52 +0300)
committerRay Strode <halfline@gmail.com>
Sat, 15 Oct 2022 14:44:03 +0000 (14:44 +0000)
commit2f12aa4c5d27d1ee5a46f412559073f016d236ae
treeea606033e9726a55fb8df6e310bc4f982094b381
parentc09c651afe09534efbac78b9f181a64a9ea59585
systemd: Add mkinitcpio support to plymouth-switch-root-initramfs.service

plymouth-switch-root-initramfs.service commands plymouth to release
rootfs to allow the shutdown ramfs to unmount rootfs. However, it only
integrates with dracut. Arch Linux uses mkinitcpio by default, and it
uses shutdown ramfs when layered block storage (e.g. LUKS) is used for
rootfs. Therefore, it fails to unmount rootfs on shutdown if LUKS and
plymouth are used together.

Add a new trigger for plymouth-switch-root-initramfs.service to start
when /run/initramfs/shutdown exists (/run/initramfs/bin/sh may not exist
with mkinitcpio when systemd-based initramfs is used), and add a
dependency to start it after mkinitcpio generates the shutdown ramfs.
systemd-units/plymouth-switch-root-initramfs.service.in