diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-12-19 17:30:13 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-03-01 14:11:07 +0100 |
commit | 1de7f825d3a585846c7421041a21a1672eaf837d (patch) | |
tree | f63919ab6edf7a5d40eb005b1cda495d2d28deb6 /src/fstab-generator | |
parent | 26945d18acf1c40a5e4533b60023506c918331b6 (diff) | |
download | systemd-1de7f825d3a585846c7421041a21a1672eaf837d.tar.gz |
volatile-root: add overlay mode for host boots, too
Diffstat (limited to 'src/fstab-generator')
-rw-r--r-- | src/fstab-generator/fstab-generator.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c index 30a6d356d0..d1bfa775e4 100644 --- a/src/fstab-generator/fstab-generator.c +++ b/src/fstab-generator/fstab-generator.c @@ -722,10 +722,11 @@ static int add_sysroot_usr_mount(void) { } static int add_volatile_root(void) { + /* Let's add in systemd-remount-volatile.service which will remount the root device to tmpfs if this is - * requested, leaving only /usr from the root mount inside. */ + * requested (or as an overlayfs), leaving only /usr from the root mount inside. */ - if (arg_volatile_mode != VOLATILE_YES) + if (!IN_SET(arg_volatile_mode, VOLATILE_YES, VOLATILE_OVERLAY)) return 0; return generator_add_symlink(arg_dest, SPECIAL_INITRD_ROOT_FS_TARGET, "requires", |