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

Richard Maw richard.maw at codethink.co.uk
Sat Nov 7 03:33:42 PST 2015


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 /sysroot

You can remove /etc/initrd-release to stop it removing the old rootfs tmpfs,
I'm not sure what other side-effects this may have.


More information about the systemd-devel mailing list