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

Herbert Groll herbert.groll at so-logic.net
Sat Nov 7 04:55:30 PST 2015


> 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 in initrd mode. The only important 
thing for me in initrd mode is setting up an persistent overlay for the 
initial tmpfs. But maybe I'm better off using a minimalistic shell 
script instead.


More information about the systemd-devel mailing list