mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
da4b881eac
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>
26 lines
688 B
Desktop File
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
|