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

2013-07-31 Thread Harald Hoyer
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ędrzejewski-Szmek wrote: On Tue, Jul 30, 2013 at 09:43:16AM -0400, Vivek Goyal wrote: > [CC harald]

[systemd-devel] macros in systemd unit files question

2013-07-31 Thread lux-integ
I am trying to learn systemD. I scaned through some of the man pages. I am here asking if systemD unit file synthesis can be made to support macros; for example of the following type:- #-- IF mountpoint exists /bin/mount /dev/something $mountpoint ELSE /bin/mount /dev

Re: [systemd-devel] macros in systemd unit files question

2013-07-31 Thread Tom Gundersen
Hi, On Wed, Jul 31, 2013 at 2:14 PM, lux-integ wrote: > > I am trying to learn systemD. I scaned through some of the man pages. I am > here asking if systemD unit file synthesis can be made to support macros; > for example of the following type:- > > #-- > IF mountpoint exists >

Re: [systemd-devel] macros in systemd unit files question

2013-07-31 Thread lux-integ
On Wednesday 31 July 2013 13:26:18 Tom Gundersen wrote: > If you really need a proper programming > language, then you'd be better off using a script and pointing > ExecStart to that. example please? ___ systemd-devel mailing list systemd-devel@lists.fr

Re: [systemd-devel] macros in systemd unit files question

2013-07-31 Thread Tom Gundersen
On Wed, Jul 31, 2013 at 3:05 PM, lux-integ wrote: > On Wednesday 31 July 2013 13:26:18 Tom Gundersen wrote: >> If you really need a proper programming >> language, then you'd be better off using a script and pointing >> ExecStart to that. > > example please? Make a bash script (or whatever else)

Re: [systemd-devel] macros in systemd unit files question

2013-07-31 Thread Michal Vyskocil
On Wed, Jul 31, 2013 at 01:14:08PM +0100, lux-integ wrote: > > I am trying to learn systemD. I scaned through some of the man pages. I am > here asking if systemD unit file synthesis can be made to support macros; > > for example of the following type:- > > #-- > IF mo

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

2013-07-31 Thread Colin Guthrie
'Twas brillig, and Harald Hoyer at 31/07/13 11:19 did gyre and gimble: > 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ędrzejewski-Szmek wrote: > On Tue

Re: [systemd-devel] macros in systemd unit files question

2013-07-31 Thread Colin Guthrie
'Twas brillig, and lux-integ at 31/07/13 13:14 did gyre and gimble: > > I am trying to learn systemD. I scaned through some of the man pages. The first thing to learn is that's it's systemd, not systemD ;) > I am > here asking if systemD unit file synthesis can be made to support macros;

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ędrzejewski-Szmek wrote: > On Tue, Jul

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, WANG Chao wrote: > > >>> On 07/

Re: [systemd-devel] macros in systemd unit files question

2013-07-31 Thread lux-integ
On Wednesday 31 July 2013 14:13:56 Tom Gundersen wrote: > > example please? > > Make a bash script (or whatever else) doing what you want (the > pseudo-code you posted). Save it as /usr/local/bin/foo and create a > unit file with ExecStart=/usr/local/bin/foo. thanks for your suggestion. just one

Re: [systemd-devel] macros in systemd unit files question

2013-07-31 Thread Tom Gundersen
On Wed, Jul 31, 2013 at 4:03 PM, lux-integ wrote: > #-- > IF mountpoint exists > /bin/echo "obladee" > /bin/mount /dev/something $mountpoint > ELSE > /bin/echo "obladaa" > /bin/mount /dev/something somewherelse > ENDiF > #-- > > does this file need to be s

Re: [systemd-devel] macros in systemd unit files question

2013-07-31 Thread lux-integ
On Wednesday 31 July 2013 14:22:35 Michal Vyskocil wrote: > You can split the logic into two mount units with opposite Condition > > #mountpoint.mount > [Unit] > Description=mount mountpoint > ConditionPathIsMountPoint=/mountpoint > > [Mount] > What=/dev/something > Where=/mountpoint > > #somewh

Re: [systemd-devel] [PATCH 10/16] shell-comp: Split out zsh _systemd-nspawn

2013-07-31 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Jul 30, 2013 at 11:22:48PM -0500, William Giokas wrote: > --- > Makefile.am | 1 + > shell-completion/zsh/_systemd| 26 +- > shell-completion/zsh/_systemd-nspawn | 24 > 3 files changed, 26 insertions(+), 25

[systemd-devel] [PATCH 10/16 v2] shell-comp: Split out zsh _systemd-nspawn

2013-07-31 Thread William Giokas
Also fix the random lack of completion --- I think that it has something to do with the function being called the same thing as the command. I don't know, but renaming it to something that is actually more descriptive makes it work. Makefile.am | 1 + shell-completion/z

Re: [systemd-devel] macros in systemd unit files question

2013-07-31 Thread Kay Sievers
On Wed, Jul 31, 2013 at 2:14 PM, lux-integ wrote: > > I am trying to learn systemD. I scaned through some of the man pages. I am > here asking if systemD unit file synthesis can be made to support macros; > for example of the following type:- > > #-- > IF mountpoint exists > /bin

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

2013-07-31 Thread WANG Chao
On 07/30/13 at 04:40pm, Tom Gundersen wrote: > On Tue, Jul 30, 2013 at 4:13 PM, Harald Hoyer wrote: > > On 07/30/2013 03:46 PM, Zbigniew Jędrzejewski-Szmek wrote: > >> Maybe rootfsflags=nofail could do be used as this flag? > > > > rootfsflags=nofail sounds ok, if it is not used for booting the in

[systemd-devel] [Install] question

2013-07-31 Thread lux-integ
Greetings, I am trying to learn to use systemd. I scanned through some of the online manpages and looked at some example unit files. I keep seeing [Install] WantedBy=multi-user.target or [Install] WantedBy=sysinit.target or some such I have for example a need to mount stuff (via a mount