Re: [systemd-devel] [PATCH V4] use the switch_root function in shutdown

2014-08-25 Thread Lennart Poettering
On Thu, 21.08.14 19:07, har...@redhat.com (har...@redhat.com) wrote: broadcast_signal(SIGTERM, false, true); /* And switch root */ -r = switch_root(switch_root_dir); +r =

[systemd-devel] [PATCH V4] use the switch_root function in shutdown

2014-08-21 Thread harald
From: Harald Hoyer har...@redhat.com removes code duplication also move switch-root to shared --- V2: - Removed all references to /mnt in switch_root() and the bogus comment. V3: - moved switch-root.[ch] to shared - added switch to mount MS_MOVE or MS_BIND the old dirs V4: - mkdir_p_label() in