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

2015-11-07 Thread Richard Maw
On Sat, Nov 07, 2015 at 01:55:30PM +0100, Herbert Groll wrote: > >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 initia

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 Richard Maw
On Sat, Nov 07, 2015 at 01:17:29PM +0100, hgr1 wrote: > Am 2015-11-07 12:33, schrieb Richard Maw: > >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. > This was my first attempt too but switch-root is checking the

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

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

2015-11-07 Thread 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 /sysroot You can remove /etc/initrd-

[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