Re: [systemd-devel] systemctl switch-root /sysroot without deleting old_root

2015-11-07 Thread Herbert Groll
By some definition, your initial tmpfs isn't an initrd, so you could try removing initrd-release from your cpio image, so it's gone before systemd starts, so it can't cache an invalid result. I'm using systemd as initial RAM disk implementation too so the switch-root is happening with systemd i

Re: [systemd-devel] systemctl switch-root /sysroot without deleting old_root

2015-11-07 Thread Herbert Groll
Am 2015-11-07 12:33, schrieb Richard Maw: On Fri, Nov 06, 2015 at 05:53:53PM +0100, Herbert Groll wrote: Hi, is there an easy way in initrd mode to keep old root when switching to new root? Switching root is done in initrd-switch-root.target with /bin/systemctl --no-block --force switch-root

[systemd-devel] systemctl switch-root /sysroot without deleting old_root

2015-11-06 Thread Herbert Groll
Hi, is there an easy way in initrd mode to keep old root when switching to new root? Switching root is done in initrd-switch-root.target with /bin/systemctl --no-block --force switch-root /sysroot The reason why is I want to use the ramdisk + a persistent overlay. The  quick and dirty solution fo