2 ms·
> You'll still care that you can write that file, right? Sometimes you don't need it. systemd itself just checks that `/etc/initrd-release` exists and runs in
by NekkoDroid 3y ago
> You'll still care that you can write that file, right?
Sometimes you don't need it.
systemd itself just checks that `/etc/initrd-release` exists and runs in initrd mode changing its default target to boot into (IIRC you can also manually change the default target to `initrd.target` in the initrd, but this way the default systemd vendored files don't need to be touched).
https://github.com/systemd/systemd/blob/7f13af72f894529502267e7eed8e8b480a350345/src/basic/initrd-util.c#L31 https://github.com/systemd/systemd/blob/7f13af72f89452950226...