Re: [systemd-devel] [PATCH] Corrected do_switch_root

2012-05-16 Thread Colin Guthrie
'Twas brillig, and Harald Hoyer at 16/05/12 11:36 did gyre and gimble: Am 16.05.2012 12:14, schrieb Mantas Mikulėnas: On Wed, May 16, 2012 at 1:04 PM, har...@redhat.com wrote: From: Harald Hoyer har...@redhat.com do_switch_root now mount moves /dev, /proc, /sys, /run and removes the old

Re: [systemd-devel] Have custom agetty behaviour even after upgadres

2012-05-16 Thread Colin Guthrie
'Twas brillig, and Dave Reisner at 14/05/12 22:31 did gyre and gimble: On Mon, May 14, 2012 at 11:01:53PM +0200, Lennart Poettering wrote: On Mon, 14.05.12 14:51, Dave Reisner (d...@falconindy.com) wrote: On Mon, May 14, 2012 at 08:39:23PM +0200, Lennart Poettering wrote: On Thu,

Re: [systemd-devel] Have custom agetty behaviour even after upgadres

2012-05-16 Thread Colin Guthrie
'Twas brillig, and Seblu at 10/05/12 22:27 did gyre and gimble: Hello, on my archlinux test computer i would have first console not cleaned and other spawned statically (crazy idea isn't it). So I've turned NAutoVTs to 1 in /etc/systemd/systemd-logind.conf. I've copied

Re: [systemd-devel] Have custom agetty behaviour even after upgadres

2012-05-16 Thread Michal Schmidt
On 05/16/2012 01:07 PM, Colin Guthrie wrote: This thread went a little tangential, so I'd like to bring it back to the problem stated here. Firstly, that was not my understanding of how things are supposed to work, but perhaps Lennart or Kay can clarify. I thought that the actual end point of

[systemd-devel] [PATCH] Corrected do_switch_root

2012-05-16 Thread harald
From: Harald Hoyer har...@redhat.com do_switch_root now mount moves /dev, /proc, /sys, /run and removes the old root recursively. --- src/core/main.c | 55 +++-- src/shared/util.c |2 +- src/shared/util.h |1 + 3 files changed, 51

[systemd-devel] [PATCH] manager: only serialize the timestamps for the initramfs if in_initrd()

2012-05-16 Thread harald
From: Harald Hoyer har...@redhat.com --- src/core/manager.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/core/manager.c b/src/core/manager.c index bd86f89..a627081 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -1733,8 +1733,11 @@ int

[systemd-devel] [PATCH] core/main.c: add --switchedroot parameter

2012-05-16 Thread harald
From: Harald Hoyer har...@redhat.com If systemd serializes from a switch_root, it adds --switchedroot to the systemd in the real root. If --switchedroot is found, then we do not skip all the stuff, which is skipped for normal rexecs. --- src/core/main.c | 17 - 1 file changed,

[systemd-devel] [PATCH] core/main.c: do_switch_root(): do not remove the old root if not in initrd

2012-05-16 Thread harald
From: Harald Hoyer har...@redhat.com Only recursively remove the old root, if we have been in an initrd/initramfs. --- src/core/main.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/main.c b/src/core/main.c index 1fd11d5..9084463 100644 --- a/src/core/main.c

[systemd-devel] [PATCH] core/main.c: handle the initrd timestamp differently, if in the initrd

2012-05-16 Thread harald
From: Harald Hoyer har...@redhat.com If systemd is in the initrd/initramfs, set the initrd timestamp and do not try to read it from the RD_TIMESTAMP environment variable. --- src/core/main.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/core/main.c

[systemd-devel] [PATCH] delta/delta.c: initialize bottom for fail state

2012-05-16 Thread harald
From: Harald Hoyer har...@redhat.com --- src/delta/delta.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/delta/delta.c b/src/delta/delta.c index 2e33759..a440472 100644 --- a/src/delta/delta.c +++ b/src/delta/delta.c @@ -177,7 +177,7 @@ finish: static int

[systemd-devel] [PATCH] util: rm_rf_children() add root_dev parameter

2012-05-16 Thread harald
From: Harald Hoyer har...@redhat.com if root_dev is set, remove subdirectories only, if the device is the same as the root_dev. This prevents to remove files across device boundaries. --- src/shared/util.c | 39 ++- src/shared/util.h |2 +- 2 files

[systemd-devel] [PATCH] main: do_switch_root() do not recursively remove across device boundaries

2012-05-16 Thread harald
From: Harald Hoyer har...@redhat.com --- src/core/main.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/core/main.c b/src/core/main.c index a816015..e8bcbe7 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1234,7 +1234,14 @@ static int