]> git.ipfire.org Git - thirdparty/systemd.git/commit - docs/ENVIRONMENT.md
Revert "initrd: extend SYSTEMD_IN_INITRD to accept non-ramfs rootfs"
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 6 Nov 2022 19:34:21 +0000 (20:34 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 9 Nov 2022 08:20:33 +0000 (09:20 +0100)
commitb1fd5cd4eda02a323db93d7daa97f5138f89677d
treeb80260d08702e3566a2cc64cd70ac3e964cba90c
parentbf1886226724b3db0779d643195d428575cff0be
Revert "initrd: extend SYSTEMD_IN_INITRD to accept non-ramfs rootfs"

This reverts commit 1f22621ba33f8089d2ae5fbcaf8b3970dd68aaf0.

As described in the reverted commit, we don't want to get rid of the check
completely. But the check requires opting-in by setting SYSTEMD_IN_INITRD=lenient,
which is cumbersome and doesn't seem to actually happen.
https://bugzilla.redhat.com/show_bug.cgi?id=2137631 is caused by systemd refusing
to treat the system as an initrd because overlayfs is used. Let's revert this
approach and do something that doesn't require opt-in instead.

I don't think it makes sense to keep support for "SYSTEMD_IN_INITRD=lenient" or
"SYSTEMD_IN_INITRD=auto". To get "auto" behaviour, just unset the option. And
"lenient" will be reimplemented as a better check. Thus the changes to the
option interface are completely reverted.
docs/ENVIRONMENT.md
src/basic/initrd-util.c