forked from pool/ignition
a71d5e1ac3
- Don't ignore errors in loops - Unmount mount points recursively - a new submount may have appeared - Split umount part into own service file: - ignition-umount-initrd-fstab.service: - Unmounts the additional mounts as soon as they are not required for Ignition any more; the ExecStop operation is running quite late in initrd and may unmount essential mount points flagged with "x-initrd.mount" (e.g. when storing /usr on a separate mount point). In theory this will also affect Ignition itself, but it hasn't been reported as a problem so far. OBS-URL: https://build.opensuse.org/package/show/devel:kubic:ignition/ignition?expand=0&rev=91
21 lines
727 B
Desktop File
21 lines
727 B
Desktop File
[Unit]
|
|
Description=Mount initrd fstab entries for Ignition
|
|
DefaultDependencies=false
|
|
Before=ignition-complete.target
|
|
|
|
# Make sure ExecStop= runs before we switch root
|
|
Before=initrd-switch-root.target
|
|
|
|
After=initrd-root-fs.target
|
|
After=ignition-remount-sysroot.service
|
|
|
|
# Run only after Ignition's mount stage - mount points configured by Ignition
|
|
# itself will be skipped below, just mount the rest.
|
|
Requires=ignition-mount.service
|
|
After=ignition-mount.service
|
|
Before=ignition-files.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/bin/sh -e -c 'eval $(awk '"'"'$4 ~ /x-initrd.mount/ && $1 !~ /^#/ {print "if ! findmnt /sysroot" $2 " >/dev/null; then mount -t " $3 " -o " $4 " " $1 " /sysroot" $2 "; fi;" }'"'"' /sysroot/etc/fstab)'
|