Files
s390-tools/rust/pvebc/95sel-ebc/sel-ebc-boot-mount.service
T
Finn Callies da4b881eac 95sel-ebc: Add umount to boot service
Explicitly unmount the root partition on unit stopping to prevent still
mounted boot partition on switch root which results in boot being unable
to be mounted after switch root.

Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Signed-off-by: Finn Callies <fcallies@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
2026-07-22 17:44:10 +02:00

26 lines
688 B
Desktop File

[Unit]
Description=Mount a partition identified by label boot to /boot
# Ensure this runs before the handoff to the real root, if that's required:
Before=sel-ebc-pvebc.service
# Initramfs requirement
DefaultDependencies=no
# Make absolutely sure this only runs in initramfs
ConditionPathExists=/etc/initrd-release
ConditionKernelCommandLine=rd.sel-ebc
Requires=systemd-udev-settle.service
After=systemd-udev-settle.service
After=systemd-udevd.service
[Service]
Type=oneshot
ExecStart=/bin/bash /etc/sel-ebc/boot-mount.sh
RemainAfterExit=yes
ExecStop=/usr/bin/umount /boot
# On failure immediately abort boot
FailureAction=poweroff-immediate
[Install]
RequiredBy=sel-ebc-pvebc.service