Re: [systemd-devel] /etc/initscript equivalent for systemd?

2011-05-05 Thread Lennart Poettering
On Tue, 03.05.11 11:05, c...@endlessnow.com (c...@endlessnow.com) wrote: > In sysvinit, at least on SLES and RHEL, you could use /etc/initscript as a > mechansim to get "shell" control things like ulimits to take hold system > wide, since /etc/initscript was invoked as a wrapper around all init >

Re: [systemd-devel] Running a x86_64 kernel on Fedora 15 x86 userland

2011-05-05 Thread Lennart Poettering
On Tue, 03.05.11 19:14, Thomas Meyer (tho...@m3y3r.de) wrote: > I don't get an AVC message, so maybe there is not problem with selinux, just > with plymouth, that ABRTs. > > But I see this: > > [7.204437] type=1403 audit(1304471120.046:3): policy loaded > auid=4294967295 ses=4294967295 > U

Re: [systemd-devel] [RFC] merging the rest of CK into systemd

2011-05-05 Thread Lennart Poettering
gi1;2800;0cOn Tue, 03.05.11 19:55, J.B. Nicholson-Owens (j...@forestfield.org) wrote: > > Lennart Poettering wrote: > >here's a little document Kay and I put together outlining our rough > >plans for systemd for the next Fedora cycle: > > > >https://docs.google.com/document/d/1_ev4f0gwBuvs6SH_N8

Re: [systemd-devel] [RFC] merging the rest of CK into systemd

2011-05-05 Thread Kay Sievers
On Thu, May 5, 2011 at 11:40, Lennart Poettering wrote: > gi1;2800;0cOn Tue, 03.05.11 19:55, J.B. Nicholson-Owens > (j...@forestfield.org) wrote: > >> >> Lennart Poettering wrote: >> >here's a little document Kay and I put together outlining our rough >> >plans for systemd for the next Fedora cyc

[systemd-devel] pivot_root to a tmpfs directory to properly umount root

2011-05-05 Thread harald
With this patch series, it is possible to umount the root device and deconstruct it. You can copy a bash to /lib/systemd/system-shutdown/ and it will be executed at the end. Then you can cat /proc/mounts with: # while read line; do echo $line; done < /proc/mounts And your root device should no

[systemd-devel] [PATCH 1/3] umount: umount, until all umounts failed

2011-05-05 Thread harald
From: Harald Hoyer --- src/umount.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/umount.c b/src/umount.c index 3d328e0..31e91ec 100644 --- a/src/umount.c +++ b/src/umount.c @@ -551,6 +551,8 @@ static int dm_points_list_detach(MountPoint **head, bool *cha

[systemd-devel] [PATCH 2/3] util.c: add copy helper functions

2011-05-05 Thread harald
From: Harald Hoyer int cp_a(const char *srcpath, const char *dstpath); copy a source directory to a destination directory recursively. int cp_todir(const char *src, const char *target_dir); copy a file to a directory int install_bin(const char *src, const char *target_dir); copy a file to a

[systemd-devel] [PATCH 3/3] shutdown: pivot_root to a tmpfs directory to properly umount root

2011-05-05 Thread harald
From: Harald Hoyer umount /boot mount a tmpfs on /boot mount bind all needed dirs pivot_root to /boot umount all mountpoints as before see root be umounted properly and all dm devices deconstructed --- src/shutdown.c | 154 +++ 1 files changed

Re: [systemd-devel] pivot_root to a tmpfs directory to properly umount root

2011-05-05 Thread Harald Hoyer
Am 05.05.2011 12:47, schrieb har...@redhat.com: > With this patch series, it is possible to umount the root device and > deconstruct it. > > You can copy a bash to /lib/systemd/system-shutdown/ and it will be executed > at the end. > Then you can cat /proc/mounts with: > > # while read line; do

Re: [systemd-devel] pivot_root to a tmpfs directory to properly umount root

2011-05-05 Thread microcai
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 于 2011年05月05日 18:47, har...@redhat.com 写道: > With this patch series, it is possible to umount the root device and > deconstruct it. > > You can copy a bash to /lib/systemd/system-shutdown/ and it will be executed > at the end. > Then you can cat /pr

[systemd-devel] LWN.net has complete text; Google Docs requires cookies and doesn't appear to scale well

2011-05-05 Thread J.B. Nicholson-Owens
Lennart Poettering wrote: Some folks copied this into the comments on the LWN article: http://lwn.net/Articles/441328/#Comments Ah, thanks for that pointer and for publishing the list. As a suggestion: next time could someone post the contents of the text to this mailing list since this mail

Re: [systemd-devel] [PATCH 3/3] shutdown: pivot_root to a tmpfs directory to properly umount root

2011-05-05 Thread Gustavo Sverzut Barbieri
On Thu, May 5, 2011 at 7:48 AM, wrote: > From: Harald Hoyer > > umount /boot > mount a tmpfs on /boot > mount bind all needed dirs > pivot_root to /boot > umount all mountpoints as before > see root be umounted properly and all dm devices deconstructed Some systems don't have /boot on different

Re: [systemd-devel] [PATCH 3/3] shutdown: pivot_root to a tmpfs directory to properly umount root

2011-05-05 Thread Harald Hoyer
Am 05.05.2011 15:55, schrieb Gustavo Sverzut Barbieri: > On Thu, May 5, 2011 at 7:48 AM, wrote: >> From: Harald Hoyer >> >> umount /boot >> mount a tmpfs on /boot >> mount bind all needed dirs >> pivot_root to /boot >> umount all mountpoints as before >> see root be umounted properly and all dm

[systemd-devel] [PATCH] Angstrom support

2011-05-05 Thread Koen Kooi
This commit consists of the initial work to include Angstrom as a ported distribution for systemd. Angstrom tries to follow the debian way as much as possible, but deviates where it doesn't make sense for 'embedded'. Signed-off-by: Koen Kooi --- Makefile.am|7 +++ configure.ac

Re: [systemd-devel] /etc/initscript equivalent for systemd?

2011-05-05 Thread c...@endlessnow.com
I think the right place is probably cgroups... I am surprised ulimits and cgroups hasn't come up before or maybe I am just not finding it. Sent from my HTC smartphone on the Now Network from Sprint! - Reply message - From: "Lennart Poettering" Date: Thu, May 5, 2011 4:31 am Subject

Re: [systemd-devel] [PATCH] Angstrom support

2011-05-05 Thread Harald Hoyer
> diff --git a/src/util.c b/src/util.c > index f0051ee..5af9161 100644 > --- a/src/util.c > +++ b/src/util.c > @@ -3426,6 +3426,18 @@ void status_welcome(void) { > > if (!ansi_color) > const_color = "1;35"; /* Bright Magenta for MeeGo */ > +#elif defined(TARGET_ANGSTROM) >

Re: [systemd-devel] [PATCH] Angstrom support

2011-05-05 Thread Gustavo Sverzut Barbieri
On Thu, May 5, 2011 at 1:17 PM, Harald Hoyer wrote: >> diff --git a/src/util.c b/src/util.c >> index f0051ee..5af9161 100644 >> --- a/src/util.c >> +++ b/src/util.c >> @@ -3426,6 +3426,18 @@ void status_welcome(void) { >> >>         if (!ansi_color) >>                 const_color = "1;35"; /* Brig

Re: [systemd-devel] [PATCH] Angstrom support

2011-05-05 Thread Koen Kooi
Op 5 mei 2011, om 19:54 heeft Gustavo Sverzut Barbieri het volgende geschreven: > On Thu, May 5, 2011 at 1:17 PM, Harald Hoyer wrote: >>> diff --git a/src/util.c b/src/util.c >>> index f0051ee..5af9161 100644 >>> --- a/src/util.c >>> +++ b/src/util.c >>> @@ -3426,6 +3426,18 @@ void status_welcom

Re: [systemd-devel] [PATCH] Angstrom support

2011-05-05 Thread Miklos Vajna
On Thu, May 05, 2011 at 06:17:22PM +0200, Harald Hoyer wrote: > "/etc/SuSE-release" > "/etc/gentoo-release" > "/etc/altlinux-release" > "/etc/debian_version" > "/etc/mandriva-release" > "/etc/meego-release" > > to "/etc/system-release" or provide "/etc/lsb-release" ??? It's already done, see os