Re: [systemd-devel] handling mount failure in initramfs context

2014-05-27 Thread Vivek Goyal
On Mon, May 26, 2014 at 04:12:56PM +0800, WANG Chao wrote: > Hi, all > > In a pure initramfs enviroment, I want to mount a filesystem and I put > an mount entry in /etc/fstab, so that fstab-generator could generate a > mount unit and systemd will mount it at some time. > > I have a question about

Re: [systemd-devel] [PATCH] fstab-generator: local-fs.target waits for nofail mounts

2014-04-10 Thread Vivek Goyal
On Thu, Apr 10, 2014 at 06:38:59AM +0400, Andrey Borzenkov wrote: [..] > > So with nofail opion for rootfs we should have following situation. > > > > - sysroot.mount > > Before=initrd-root-fs.target > > - initrd-root-fs.target > > Requires=sysroot.mount > > OnFailure=emergency.target

Re: [systemd-devel] [PATCH] fstab-generator: local-fs.target waits for nofail mounts

2014-04-09 Thread Vivek Goyal
On Wed, Apr 09, 2014 at 05:36:13PM +0800, WANG Chao wrote: > On 04/08/14 at 06:02pm, Vivek Goyal wrote: > > On Tue, Apr 08, 2014 at 02:14:33AM +0200, Zbigniew Jędrzejewski-Szmek wrote: > > > > [..] > > > > > > Defining a new target which by default waits f

Re: [systemd-devel] [PATCH] fstab-generator: local-fs.target waits for nofail mounts

2014-04-08 Thread Vivek Goyal
On Tue, Apr 08, 2014 at 02:14:33AM +0200, Zbigniew Jędrzejewski-Szmek wrote: [..] > > > > Defining a new target which by default waits for all the local fs target > > > > sounds interesting. Again, I have the question, what will happen to > > > > local-fs-all.target if some device does not show u

Re: [systemd-devel] [PATCH] fstab-generator: local-fs.target waits for nofail mounts

2014-04-07 Thread Vivek Goyal
On Mon, Apr 07, 2014 at 10:07:20PM +0400, Andrey Borzenkov wrote: > В Mon, 7 Apr 2014 13:40:17 -0400 > Vivek Goyal пишет: > > > > > Defining a new target which by default waits for all the local fs target > > sounds interesting. Again, I have the question, what w

Re: [systemd-devel] [PATCH] fstab-generator: local-fs.target waits for nofail mounts

2014-04-07 Thread Vivek Goyal
On Sat, Apr 05, 2014 at 04:24:01AM +0200, Zbigniew Jędrzejewski-Szmek wrote: > On Fri, Apr 04, 2014 at 05:30:03PM -0400, Vivek Goyal wrote: > > On Fri, Apr 04, 2014 at 02:44:50PM +0800, WANG Chao wrote: > > > In kdump kernel, we need mount certain file system, and we use &quo

Re: [systemd-devel] [PATCH] fstab-generator: local-fs.target waits for nofail mounts

2014-04-04 Thread Vivek Goyal
On Fri, Apr 04, 2014 at 02:44:50PM +0800, WANG Chao wrote: > In kdump kernel, we need mount certain file system, and we use "nofail" > for all mounts specified in /etc/fstab. Because we don't want any mount > failure to interrupt the boot process to arrive at > dracut-pre-pivot.service (This is the

Re: [systemd-devel] [PATCH] fstab-generator: respect noauto/nofail when adding sysroot mount

2013-08-09 Thread Vivek Goyal
On Thu, Aug 08, 2013 at 03:18:11PM +0800, WANG Chao wrote: > Currently we don't respect noauto/nofail root mount options (from > rootflags kernel cmdline). We should map these two flags to the > corresponding boolean variable noauto and nofail when calling > add_mount(). > > Signed-off-by: WANG Ch

Re: [systemd-devel] [PATCH] fstab-generator: introduce rd.weak_sysroot to bypass failures in sysroot.mount

2013-08-02 Thread Vivek Goyal
On Fri, Aug 02, 2013 at 12:15:32PM +0200, Jan Engelhardt wrote: > > On Tuesday 2013-07-30 20:41, Vivek Goyal wrote: > >> > >> FYI, I don't see any CC's on the original mail as displayed on GMane via > >> NNTP... > > Neither do I, with a norma

Re: [systemd-devel] [PATCH] fstab-generator: introduce rd.weak_sysroot to bypass failures in sysroot.mount

2013-07-31 Thread Vivek Goyal
On Wed, Jul 31, 2013 at 09:44:01AM -0400, Vivek Goyal wrote: > On Wed, Jul 31, 2013 at 12:19:06PM +0200, Harald Hoyer wrote: > > On 07/30/2013 09:14 PM, Vivek Goyal wrote: > > > On Wed, Jul 31, 2013 at 12:46:22AM +0800, WANG Chao wrote: > > >> On 07/31/13 at 12:32am,

Re: [systemd-devel] [PATCH] fstab-generator: introduce rd.weak_sysroot to bypass failures in sysroot.mount

2013-07-31 Thread Vivek Goyal
On Wed, Jul 31, 2013 at 12:19:06PM +0200, Harald Hoyer wrote: > On 07/30/2013 09:14 PM, Vivek Goyal wrote: > > On Wed, Jul 31, 2013 at 12:46:22AM +0800, WANG Chao wrote: > >> On 07/31/13 at 12:32am, WANG Chao wrote: > >>> On 07/30/13 at 03:46pm, Zbigniew Jędrzejew

Re: [systemd-devel] [PATCH] fstab-generator: introduce rd.weak_sysroot to bypass failures in sysroot.mount

2013-07-30 Thread Vivek Goyal
On Wed, Jul 31, 2013 at 12:46:22AM +0800, WANG Chao wrote: > On 07/31/13 at 12:32am, WANG Chao wrote: > > On 07/30/13 at 03:46pm, Zbigniew Jędrzejewski-Szmek wrote: > > > On Tue, Jul 30, 2013 at 09:43:16AM -0400, Vivek Goyal wrote: > > > > [CC harald] > > > &

Re: [systemd-devel] [PATCH] fstab-generator: introduce rd.weak_sysroot to bypass failures in sysroot.mount

2013-07-30 Thread Vivek Goyal
On Tue, Jul 30, 2013 at 07:34:01PM +0100, Colin Guthrie wrote: > 'Twas brillig, and Vivek Goyal at 30/07/13 15:26 did gyre and gimble: > > On Tue, Jul 30, 2013 at 02:05:08PM +0200, Tom Gundersen wrote: > >> On Tue, Jul 30, 2013 at 1:53 PM, WANG Chao wrote: > >>&g

Re: [systemd-devel] [PATCH] fstab-generator: introduce rd.weak_sysroot to bypass failures in sysroot.mount

2013-07-30 Thread Vivek Goyal
On Tue, Jul 30, 2013 at 04:02:17PM +0200, Tom Gundersen wrote: > On Tue, Jul 30, 2013 at 2:27 PM, WANG Chao wrote: > > On 07/30/13 at 02:05pm, Tom Gundersen wrote: > >> On Tue, Jul 30, 2013 at 1:53 PM, WANG Chao wrote: > >> > - It's not before initrd-root-fs.target. > > In case of kdump, 2nd ker

Re: [systemd-devel] [PATCH] fstab-generator: introduce rd.weak_sysroot to bypass failures in sysroot.mount

2013-07-30 Thread Vivek Goyal
On Tue, Jul 30, 2013 at 02:05:08PM +0200, Tom Gundersen wrote: > On Tue, Jul 30, 2013 at 1:53 PM, WANG Chao wrote: > > If specified kernel command line rd.weak_sysroot, fstab-generate will > > generate a weaker version of sysroot.mount: > > - It's not required by initrd-root-fs.target. > > - It'

Re: [systemd-devel] [PATCH] fstab-generator: introduce rd.weak_sysroot to bypass failures in sysroot.mount

2013-07-30 Thread Vivek Goyal
On Tue, Jul 30, 2013 at 07:53:11PM +0800, WANG Chao wrote: > If specified kernel command line rd.weak_sysroot, fstab-generate will > generate a weaker version of sysroot.mount: > - It's not required by initrd-root-fs.target. > - It's not before initrd-root-fs.target. > > So that failure in the w

Re: [systemd-devel] [PATCH] fstab-generator: introduce rd.weak_sysroot to bypass failures in sysroot.mount

2013-07-30 Thread Vivek Goyal
[CC harald] Not sure if this is right way to do or not but I will give more background about the issue. This assumption seems to be built into initramfs and systemd that root should always be mountable. If one can't mount root, it is a fatal failure. But in case of kdump initramfs, this assumpti

Re: [systemd-devel] Unbuffered stderr for my systemd service?

2013-07-15 Thread Vivek Goyal
On Mon, Jul 15, 2013 at 10:47:23PM +0200, Lennart Poettering wrote: > On Mon, 15.07.13 10:32, Vivek Goyal (vgo...@redhat.com) wrote: > > > CCing Lennart. > > > > This is important functionality for us. makeudmpfile utility (utility which > > filters kernel crash d

Re: [systemd-devel] Unbuffered stderr for my systemd service?

2013-07-15 Thread Vivek Goyal
On Mon, Jul 15, 2013 at 05:56:29PM +0800, WANG Chao wrote: > Hi, > > I have a service (a script) running under systemd and need its stderr to > be output'd immediately, not line buffered. I tried serveral ways but > didn't work out. I hope to get some feedback here :) > > Here's my foobar.service

Re: [systemd-devel] Systemd and cgroup management (and libcgroup)

2011-11-01 Thread Vivek Goyal
On Mon, Oct 31, 2011 at 10:32:30PM +0100, Lennart Poettering wrote: > On Mon, 31.10.11 14:43, Jan Safranek (jsafr...@redhat.com) wrote: > > > >> Even if there is, then it looks like systemd is better place to manage > > >> it as it already is setting up the whole system and top level > > >> hiera

Re: [systemd-devel] Systemd and cgroup management (and libcgroup)

2011-10-18 Thread Vivek Goyal
On Tue, Oct 18, 2011 at 04:45:59PM -0400, Vivek Goyal wrote: > Hi, Oops, got old addresses of dhaval and bablir. Fixing it. Please reply to this mail instead of previous one. Thanks Vivek > > We have talked a lot of about libcgroup and systemd in the past and when I > thought th

[systemd-devel] Systemd and cgroup management (and libcgroup)

2011-10-18 Thread Vivek Goyal
Hi, We have talked a lot of about libcgroup and systemd in the past and when I thought that debate is settled, here comes some more things to discuss. Previously libcg was doing cgroup management and now sytemd is taken over a lot of it. - Creation of hierarchies. Taking control of hierarchies