1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

initrd-parse-etc: override argv[0] to avoid dracut issue

Quoting https://github.com/systemd/systemd/pull/24054#issuecomment-1210501631:
> this would need a patch in dracut, specifically adding the
> systemd-sysroot-fstab-check to the list of installed stuff:
> fe8fa2b0ca/modules.d/00systemd/module-setup.sh (L47).
>
> I could do this manually in the CI (and I guess I'd have to do it anyway even
> if the patch lands in upstream, since it won't be available in C8S), but it
> should get there first before merging this PR, otherwise it's going to break
> Rawhide.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-08-13 15:51:14 +02:00
parent 45bcfcb36c
commit db5276215a

View File

@ -21,7 +21,9 @@ OnFailureJobMode=replace-irreversibly
[Service]
Type=oneshot
ExecStart={{ROOTLIBEXECDIR}}/systemd-sysroot-fstab-check
# FIXME: once dracut is patched to install the symlink, change to:
# ExecStart={{ROOTLIBEXECDIR}}/systemd-sysroot-fstab-check
ExecStart=@{{SYSTEM_GENERATOR_DIR}}/systemd-fstab-generator systemd-sysroot-fstab-check
# We want to enqueue initrd-cleanup.service/start after we finished the part
# above. It can't be part of the initial transaction, because non-oneshot units