1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-26 14:04:03 +03:00
Kairui Song 1f22621ba3 initrd: extend SYSTEMD_IN_INITRD to accept non-ramfs rootfs
Sometimes, non-ramfs initrd root are useful. Eg, for kdump, because
initramfs is memory consuming, so mount a compressed image in earlier
initrd, chroot into it then let systemd do the rest of job is a good
solution.

But systemd doesn't recognize the initrd environment if rootfs is not a
temporary fs. This is a reasonable check, because switch-root in initrd
will wipe the whole rootfs, will be a disaster if there are any
misdetect.

So extend SYSTEMD_IN_INITRD environment variable, now it accepts boolean
value and two extra keyword, "auto" and "lenient". "auto" is same as
before, and it's the default value. "lenient" will let systemd bypass
the rootfs check.
2021-01-14 01:19:09 +08:00
..
2020-01-26 13:29:55 +09:00
2019-12-11 17:04:20 +01:00
2019-12-11 17:04:20 +01:00
2019-12-11 17:04:20 +01:00
2019-12-11 17:04:20 +01:00
2019-12-11 17:04:20 +01:00
2018-10-12 13:48:34 +02:00
2019-12-11 17:04:20 +01:00
2019-12-11 17:04:20 +01:00
2019-12-11 17:04:20 +01:00
2020-01-15 13:46:16 +01:00