Re: [systemd-devel] Mounting a partition at the *right* time

2016-01-04 Thread Richard Maw
On Mon, Jan 04, 2016 at 03:22:48PM +, Zbigniew Jędrzejewski-Szmek wrote: > Jan 04 15:50:12 OpenELEC systemd[1]: Started Apply Kernel Variables. > Jan 04 15:51:37 OpenELEC systemd[1]: Job dev-mmcblk0p1.device/start timed out. > Jan 04 15:51:37 OpenELEC systemd[1]: Timed out waiting for device >

Re: [systemd-devel] Question about service start/stop behavior guarantees

2015-12-15 Thread Richard Maw
On Mon, Dec 14, 2015 at 10:13:57AM -0800, Eudean Sun wrote: > I have a service that I'd like to start first among a bunch of services > when booting and also stop first when the system is reboot or shutdown. > Originally I was trying to guarantee that the service started/stopped first > exclusively

Re: [systemd-devel] Rename NIC by using dynamic MAC

2015-12-03 Thread Richard Maw
On Thu, Dec 03, 2015 at 03:13:38PM +, Kaesbauer Michael wrote: > Hi again, > > thanks for your quick reply. > > Yes, I have many machines and each of those machines can have different > number of NICs [2-4]. I want that the first NIC, at a specific port, has > always the same NIC name. h

Re: [systemd-devel] Rename NIC by using dynamic MAC

2015-12-03 Thread Richard Maw
On Thu, Dec 03, 2015 at 01:25:03PM +, Kaesbauer Michael wrote: > Hi, > > up to now I found no way to write an udev rule which renames a specific NIC > by using a MAC address that is returned by a bash script. The reason for > getting the MAC address by the bash script is that the renaming NI

Re: [systemd-devel] Question for Private* options in systemd.exec

2015-11-24 Thread Richard Maw
On Tue, Nov 24, 2015 at 09:13:47AM +, Sungbae Yoo wrote: > Hi, > > I want to use namespaces in systemd services, > so I'm trying to use Private* (such as PrivateNetwork, PrivateTmp) options. > > But, I wonder that there are no PrivateIPC, PrivateUTS, and PrivateUser. Typically this is becaus

Re: [systemd-devel] [packaging] split of systemd package

2015-11-11 Thread Richard Maw
On Wed, Nov 11, 2015 at 12:58:14PM +0100, Martin Pitt wrote: > Lukáš Nykrýn [2015-11-11 11:47 +0100]: > > Personally I don't think it makes sense to split the package to get a > > smaller core package. Most of our binaries are just few KBs. > > They are actually fairly big, 100 kB to 1.5 MB for sy

Re: [systemd-devel] systemctl switch-root /sysroot without deleting old_root

2015-11-07 Thread Richard Maw
On Sat, Nov 07, 2015 at 01:55:30PM +0100, Herbert Groll wrote: > >By some definition, your initial tmpfs isn't an initrd, so you > >could try > >removing initrd-release from your cpio image, so it's gone before > >systemd > >starts, so it can't cache an invalid result. > I'm using systemd as initia

Re: [systemd-devel] systemctl switch-root /sysroot without deleting old_root

2015-11-07 Thread Richard Maw
On Sat, Nov 07, 2015 at 01:17:29PM +0100, hgr1 wrote: > Am 2015-11-07 12:33, schrieb Richard Maw: > >You can remove /etc/initrd-release to stop it removing the old > >rootfs tmpfs, > >I'm not sure what other side-effects this may have. > This was my first attempt to

Re: [systemd-devel] systemctl switch-root /sysroot without deleting old_root

2015-11-07 Thread Richard Maw
On Fri, Nov 06, 2015 at 05:53:53PM +0100, Herbert Groll wrote: > Hi, > > is there an easy way in initrd mode to keep old root when switching to > new root? Switching root is done in initrd-switch-root.target with > /bin/systemctl --no-block --force switch-root /sysroot You can remove /etc/initrd-

Re: [systemd-devel] systemd-nspawn and process spawning using nsenter issue

2015-11-02 Thread Richard Maw
On Mon, Nov 02, 2015 at 09:27:42AM -0500, Aliaksei Sheshka wrote: > Hello! > > I have some systemd-nspawn and namespace related question. > Assume following commands, > > $ systemctl start c7-test #starring our container > $ systemctl status c7-test #checking if it is running and looking for > in

Re: [systemd-devel] Help writing a user service file that will exec a command upon system sleep

2015-11-02 Thread Richard Maw
On Mon, Nov 02, 2015 at 04:11:14PM +0200, Mantas Mikulėnas wrote: > On Mon, Nov 2, 2015 at 3:34 PM, Richard Maw > wrote: > > > On Mon, Nov 02, 2015 at 09:04:31AM +0100, Lennart Poettering wrote: > > > On Wed, 28.10.15 19:30, John (da_audioph...@yahoo.com) wrote: >

Re: [systemd-devel] Help writing a user service file that will exec a command upon system sleep

2015-11-02 Thread Richard Maw
On Mon, Nov 02, 2015 at 09:04:31AM +0100, Lennart Poettering wrote: > On Wed, 28.10.15 19:30, John (da_audioph...@yahoo.com) wrote: > > > I have a simple bash script that I would like to have a user service > > file run with an argument when the system enters a sleep or > > hibernation state but a

Re: [systemd-devel] How to source a variable file using systemd

2015-10-27 Thread Richard Maw
On Tue, Oct 27, 2015 at 04:05:18PM +0530, Soumya Koduri wrote: > EnvironmentFile=/etc/myconfig > > ExecStart=/bin/bash -c 'source ${MY_ENV_FILE} && echo ${MY_ENV_VAR}' Systemd also does shell-like variable substitution, so potentially it's decided to interpolate in the value of $MY_ENV_VAR b

Re: [systemd-devel] systemd login toggle question

2015-10-13 Thread Richard Maw
On Tue, Oct 13, 2015 at 02:14:04PM +0100, luxInteg wrote: > Greetings > > I have a computer running blfs linux//systemd-224/kde > > I would like to know if there are systemd service files that allow a choice > of logins > ( i.e command promt login or graphical login ) > > In other words execut

Re: [systemd-devel] console device times out at boot while it is available

2015-09-10 Thread Richard Maw
On Thu, Sep 10, 2015 at 05:23:48PM +0200, winfried.do...@xmsnet.nl wrote: > Never mind, I just found the answer in this post that Richard Maw posted > today: > > http://lists.freedesktop.org/archives/systemd-devel/2015-September/034204.html > > Problem solved. Heh, I sa

Re: [systemd-devel] hinting systemd about what to do to make a device appear

2015-09-10 Thread Richard Maw
On Thu, Sep 10, 2015 at 12:14:56PM +0200, martin f krafft wrote: > also sprach Richard Maw [2015-09-10 12:13 > +0200]: > > I've seen this happen when udev is misbehaving because your kernel doesn't > > have > > CONFIG_FHANDLE enabled. Can you check that firs

Re: [systemd-devel] hinting systemd about what to do to make a device appear

2015-09-10 Thread Richard Maw
On Thu, Sep 10, 2015 at 12:00:50PM +0200, martin f krafft wrote: > it times out waiting for dev-drbd-by\x2dres-backup.device, even > though the file in /dev (and DRBD) are ready to go. I've seen this happen when udev is misbehaving because your kernel doesn't have CONFIG_FHANDLE enabled. Can you c

Re: [systemd-devel] containers again

2015-09-08 Thread Richard Maw
On Tue, Sep 08, 2015 at 04:14:58PM +0200, Michał Zegan wrote: > Hello. > > Before you stated that containers are not a security feature right > now. It is required to manually shift uids/gids on images etc. Yes. Also, if you uid-shift the container's root directory, using `--private-users` witho

Re: [systemd-devel] Possible confusion with socket activation and daemon own configuration

2015-09-08 Thread Richard Maw
On Tue, Sep 08, 2015 at 10:05:05AM +0200, Francis Moreau wrote: > On 09/07/2015 11:28 AM, Richard Maw wrote: > > On Sun, Sep 06, 2015 at 12:43:51PM +0200, Francis Moreau wrote: > >> How is this handled ? Should we put a big warning in sshd_config to hint > >> user to

Re: [systemd-devel] How to set time from Perl

2015-09-07 Thread Richard Maw
On Mon, Sep 07, 2015 at 04:23:42PM +0200, Manuel Reimer wrote: > Hello, > > if I run the following code on an intel based platform, then I don't > have any problems: > > use Net::DBus; > my $bus = Net::DBus->system(); > my $logind = $bus->get_service('org.freedesktop.timedate1'); > my $ma

Re: [systemd-devel] No device unit created

2015-09-07 Thread Richard Maw
On Mon, Sep 07, 2015 at 03:42:11PM +0200, jean-philippe francois wrote: > Hi, > > I have a problem I don't know how to debug. > The documentation for device units says : > > systemd will dynamically create device units for all kernel devices > that are marked with the "systemd" udev tag > > Howe

Re: [systemd-devel] Possible confusion with socket activation and daemon own configuration

2015-09-07 Thread Richard Maw
On Sun, Sep 06, 2015 at 12:43:51PM +0200, Francis Moreau wrote: > How is this handled ? Should we put a big warning in sshd_config to hint > user to configure ListenAddress in sshd.socket in the case socket > activation is used ? > Or should sshd simply ignore all listening addresses defined in ss

Re: [systemd-devel] Cannot mount anything after recovering and redoing boot mbr

2015-07-27 Thread Richard Maw
On Mon, Jul 27, 2015 at 01:18:55AM -0500, Christopher Cox wrote: > I suspect that somebody here knows why, but all mounts now fail... well all > but /. > > Has anyone run across this before? What did I miss? I have seen this happen when I was using a kernel that was old and didn't have CONFIG_F

Re: [systemd-devel] Asking for advice - two network interfaces in a container

2015-07-20 Thread Richard Maw
On Tue, Jul 14, 2015 at 12:26:23PM +0300, Peter Lemenkov wrote: > Hello All! > > My system has two network planes - control plane (several 10.0.0.0/8 > networks) and data plane (non-RFC1918 network, visible to end-users). > These two networks separated by two different bridges and some > iptables

Re: [systemd-devel] [HEADSUP] systemd-222 around the corner

2015-07-07 Thread Richard Maw
On Tue, Jul 07, 2015 at 10:10:35AM +0200, Michael Olbrich wrote: > Hi, > > On Mon, Jul 06, 2015 at 07:54:41PM +0200, David Herrmann wrote: > This will be a release without 'distcheck' tarballs, right? If that's the > case, then please merge https://github.com/systemd/systemd/pull/505 or make > lib

Re: [systemd-devel] [HEADSUP] systemd-222 around the corner

2015-07-07 Thread Richard Maw
On Tue, Jul 07, 2015 at 09:25:21AM +0300, Andrei Borzenkov wrote: > On Tue, Jul 7, 2015 at 9:02 AM, Dominick Grift wrote: > > Would be nice if anyone could at least confirm or deny this issue that I've > > identified in systemd-nspawn since v220: > > > > https://bugzilla.redhat.com/show_bug.cgi?i

Re: [systemd-devel] [PATCH 7/9] nspawn: escape paths in overlay mount options

2015-06-19 Thread Richard Maw
On Thu, Jun 18, 2015 at 08:39:10PM +0200, Lennart Poettering wrote: > On Thu, 28.05.15 13:02, Richard Maw (richard@codethink.co.uk) wrote: > > > Overlayfs uses , as an option separator and : as a list separator. These > > characters are both valid in file paths, so overlayfs

Re: [systemd-devel] [PATCH 1/9] util: Add unescape_first_word()

2015-06-19 Thread Richard Maw
On Thu, Jun 18, 2015 at 08:30:22PM +0200, Lennart Poettering wrote: > On Thu, 28.05.15 13:02, Richard Maw (richard@codethink.co.uk) wrote: > > > This is a superset of the functionality of unquote_first_word, allowing > > non-whitespace separators, and doesn't

Re: [systemd-devel] [PATCH 1/9] util: Add unescape_first_word()

2015-05-28 Thread Richard Maw
On Thu, May 28, 2015 at 01:02:07PM +0100, Richard Maw wrote: > diff --git a/src/shared/util.h b/src/shared/util.h > index eb35952..dd86ddc 100644 > --- a/src/shared/util.h > +++ b/src/shared/util.h > @@ -855,10 +855,13 @@ int is_dir(const char *path, bool follow); > int is_devi

[systemd-devel] [PATCH 4/9] strv: Add strv_split_escaped

2015-05-28 Thread Richard Maw
This is to strv_split_quoted as unescape_first_word is to unquote_first_word. --- src/shared/strv.c | 8 ++-- src/shared/strv.h | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/shared/strv.c b/src/shared/strv.c index d44a72f..a6c42d4 100644 --- a/src/shared/strv.c +++

[systemd-devel] [PATCH 3/9] man: Document \: escapes in nspawn's --tmpfs option

2015-05-28 Thread Richard Maw
From: Richard Maw --- man/systemd-nspawn.xml | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/man/systemd-nspawn.xml b/man/systemd-nspawn.xml index 06285ed..49f3e13 100644 --- a/man/systemd-nspawn.xml +++ b/man/systemd-nspawn.xml @@ -597,7 +597,10 @@ otherwise

[systemd-devel] [PATCH 6/9] man: Document \: escapes in nspawn's --bind option

2015-05-28 Thread Richard Maw
From: Richard Maw --- man/systemd-nspawn.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/man/systemd-nspawn.xml b/man/systemd-nspawn.xml index 49f3e13..ffb513d 100644 --- a/man/systemd-nspawn.xml +++ b/man/systemd-nspawn.xml @@ -578,7 +578,9 @@ same path in

[systemd-devel] [PATCH 1/9] util: Add unescape_first_word()

2015-05-28 Thread Richard Maw
This is a superset of the functionality of unquote_first_word, allowing non-whitespace separators, and doesn't interpret quotes unless UNQUOTE_QUOTES is included in flags. This also adds UNQUOTE_SEPARATOR_SPLIT, which has it return multiple empty strings when there is a span of separator character

[systemd-devel] [PATCH 7/9] nspawn: escape paths in overlay mount options

2015-05-28 Thread Richard Maw
Overlayfs uses , as an option separator and : as a list separator. These characters are both valid in file paths, so overlayfs allows file paths which contain these characters to backslash escape these values. --- src/nspawn/nspawn.c | 63 +++-- 1 fi

[systemd-devel] [PATCH 0/9] Allow \: escapes in nspawn command line

2015-05-28 Thread Richard Maw
a day, and tested that I could nspawn a system using the changed arguments, but I couldn't get the test suite to run, so I may have missed something. Richard Maw (9): util: Add unescape_first_word() nspawn: Allow : characters in --tmpfs path man: Document \: escapes in nspawn's --tmpf

[systemd-devel] [PATCH 5/9] nspawn: Allow : characters in nspawn --bind paths

2015-05-28 Thread Richard Maw
: characters in bind paths can be entered as the \: escape sequence. --- src/nspawn/nspawn.c | 29 + 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 97f980f..c40d50f 100644 --- a/src/nspawn/nspawn.c +++ b/sr

[systemd-devel] [PATCH 8/9] nspawn: Allow : characters in overlay paths

2015-05-28 Thread Richard Maw
: characters can be entered with the \: escape sequence. --- src/nspawn/nspawn.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index f7580f9..bace72e 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -744,9 +744,13

[systemd-devel] [PATCH 2/9] nspawn: Allow : characters in --tmpfs path

2015-05-28 Thread Richard Maw
This now accepts : characters with the \: escape sequence. Other escape sequences are also interpreted, but having a \ in your file path is less likely than :, so this shouldn't break anyone's existing tools. --- src/nspawn/nspawn.c | 19 +++ 1 file changed, 11 insertions(+), 8 de

[systemd-devel] [PATCH 9/9] man: Document \: escapes in nspawn's --overlay option

2015-05-28 Thread Richard Maw
From: Richard Maw --- man/systemd-nspawn.xml | 4 1 file changed, 4 insertions(+) diff --git a/man/systemd-nspawn.xml b/man/systemd-nspawn.xml index ffb513d..4e2e582 100644 --- a/man/systemd-nspawn.xml +++ b/man/systemd-nspawn.xml @@ -614,6 +614,10 @@ list of colon-separated

Re: [systemd-devel] systemd-networkd and openvswitch?

2015-05-18 Thread Richard Maw
On Sat, May 16, 2015 at 01:39:34PM +0200, Marc Haber wrote: > Hi, > > is there any possibility to nicely integrate openvswitch to a system > that runs systemd-networkd? Yes, I did a project involving this because we were integrating OpenStack in a system that used systemd-networkd primarily for n

Re: [systemd-devel] [PATCH 1/3] core: Add LISTEN_NAMES environment variable

2015-05-18 Thread Richard Maw
On Sat, May 16, 2015 at 09:28:22PM +, Zbigniew Jędrzejewski-Szmek wrote: > Why it the motivation? Patch description talks tabout passing the > path/address in LISTEN_NAMES. Isn't this something that can be queried > already? TODO talks about "identifiers". Is "identifier" the same thing, > or d

Re: [systemd-devel] Supporting ExecStartPre= and friends in `systemctl set-property` or `systemd-run -p`

2015-05-15 Thread Richard Maw
On Fri, May 15, 2015 at 12:40:56PM +0200, Lennart Poettering wrote: > On Fri, 15.05.15 11:36, Richard Maw (richard@codethink.co.uk) wrote: > > Is there precedent in any other commonly used command that could be used > > instead? I've never seen anything that required escap

Re: [systemd-devel] Supporting ExecStartPre= and friends in `systemctl set-property` or `systemd-run -p`

2015-05-15 Thread Richard Maw
On Fri, May 15, 2015 at 11:36:54AM +0100, Richard Maw wrote: > On Fri, May 15, 2015 at 12:10:58PM +0200, Lennart Poettering wrote: > > On Fri, 15.05.15 13:03, Ivan Shapovalov (intelfx...@gmail.com) wrote: > > > Hm. Actually, usage of *any* token as a command line

Re: [systemd-devel] Supporting ExecStartPre= and friends in `systemctl set-property` or `systemd-run -p`

2015-05-15 Thread Richard Maw
On Fri, May 15, 2015 at 12:10:58PM +0200, Lennart Poettering wrote: > On Fri, 15.05.15 13:03, Ivan Shapovalov (intelfx...@gmail.com) wrote: > > Hm. Actually, usage of *any* token as a command line separator makes it > > impossible to include that token *in* the command line. My original > > idea is

Re: [systemd-devel] systemd.network and IPv6 addrlabel

2015-04-14 Thread Richard Maw
On Mon, Apr 13, 2015 at 04:03:34PM +0200, Christian Brunotte wrote: > Hello > > I'm playing around with systemd's network configuration and try to convert the > following Debian configuration. > > iface eth1 inet6 auto > # Static IP and random dynamic IPs for external targets > autocon

Re: [systemd-devel] networkd failing sporadically failing to bring up network device

2015-04-07 Thread Richard Maw
On Sat, Apr 04, 2015 at 12:08:04PM +0100, Sitsofe Wheeler wrote: > Hi, > > I've noticed that networkd occasionally fails to bring up one of two > network interfaces on boot (this happens about once every 70 or so > boots). The machine in question is a VMware ESXi 5.5 guest with two > VMXNET3 netwo

[systemd-devel] [PATCH 1/2] man: Resolve how to refer to derived names for machinectl containers

2015-04-07 Thread Richard Maw
"the name it is" is clumsy english, and since the most recently referred to thing was a name anyway we can just leave the "it is". This matches later uses in the same document. --- man/machinectl.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man/machinectl.xml b/man/

[systemd-devel] [PATCH 2/2] man: fix typos in machinectl

2015-04-07 Thread Richard Maw
The s/now/not/ unfortunately inverted the meaning. --- man/machinectl.xml | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/man/machinectl.xml b/man/machinectl.xml index eee7d0d..59a6e14 100644 --- a/man/machinectl.xml +++ b/man/machinectl.xml @@ -594,7 +594,7 @@

[systemd-devel] [PATCH 0/2] Some typo fixes to man pages

2015-04-07 Thread Richard Maw
I spotted these while looking something up on freedesktop.org. Richard Maw (2): man: Resolve how to refer to derived names for machinectl containers man: fix typos in machinectl man/machinectl.xml | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) -- 1.9.1

Re: [systemd-devel] [PATCH] networkd: Begin with serial number 1 for netlink requests

2015-03-13 Thread Richard Maw
On Thu, Mar 12, 2015 at 06:14:58PM +, Richard Maw wrote: > diff --git a/src/libsystemd/sd-rtnl/sd-rtnl.c > b/src/libsystemd/sd-rtnl/sd-rtnl.c > index ae49c77..5f54acd 100644 > --- a/src/libsystemd/sd-rtnl/sd-rtnl.c > +++ b/src/libsystemd/sd-rtnl/sd-rtnl.c > @@ -61,6 +6

[systemd-devel] [PATCH] networkd: Begin with serial number 1 for netlink requests

2015-03-12 Thread Richard Maw
"Notifications are of informal nature and no reply is expected, therefore the sequence number is typically set to 0."[1] If networkd is started soon after recent netlink activity, then there will be messages with sequence number 0 in the buffer. The first thing networkd does is to request a dump

[systemd-devel] [PATCH] Fix rare crash on networkd start-up

2015-03-12 Thread Richard Maw
mally be a problem, since sd-rtnl knows to only pay attention to responses that have the same serial number as the request, but sd-rtnl starts its serial numbers at 0, which is what the kernel uses for its notification messages. Richard Maw (1): networkd: Begin with serial number 1 for netlink requ

Re: [systemd-devel] how to properly control the daemons or run advanced cmds

2014-11-25 Thread Richard Maw
On Tue, Nov 25, 2014 at 12:09:07AM -0200, Flavio Leitner wrote: > > Hello, > > The Open vSwitch is comprised by two daemons. One is a database and > another is the switch itself. > > Currently we have the openvswitch.service which start/stop/reload the > service (both daemons) just fine. > > Ho

Re: [systemd-devel] [systemd-commits] 4 commits - .gitignore Makefile.am man/sd_journal_print.xml man/systemd.xml src/core src/journal src/shared src/test

2014-01-28 Thread Richard Maw
On Tue, Jan 28, 2014 at 12:27:14PM +0100, Lennart Poettering wrote: > On Mon, 27.01.14 20:17, Zbigniew Jędrzejewski-Szmek > (zbys...@kemper.freedesktop.org) wrote: > > +int mkostemp_safe(char *pattern, int flags) { > > +char *s = pattern + strlen(pattern) - 6; > > I don't really like mixi

Re: [systemd-devel] [PATCH] [RFC] Remove installation of symlinks in /etc

2013-02-13 Thread Richard Maw
On Wed, Feb 13, 2013 at 03:00:46PM +, Colin Guthrie wrote: > 'Twas brillig, and Lennart Poettering at 13/02/13 00:21 did gyre and gimble: > > On Mon, 11.02.13 16:34, Auke Kok (auke-jan.h@intel.com) wrote: > > > >> Contrary to it's own packaging guidelines, these symlinks are created > >> i

Re: [systemd-devel] systemd-journald.service failed to start with systemd v189

2012-09-24 Thread Richard Maw
On Mon, Sep 24, 2012 at 05:04:11PM +0200, Nicolas Aguirre wrote: > 2012/9/24 Lennart Poettering : > Ok, > > I did what you said, and it appears that the problem is located in > journald.c, in system_journal_open function, when it tries to read the > machine-id, > it can't open /etc/machine-id. >

[systemd-devel] [PATCH] remount-fs: pass fstab options to mount

2012-06-25 Thread richard . maw
From: Richard Maw busybox's mount implementation doesn't re-read the options from the fstab, it uses the flags it has in mtab. This makes `mount -o remount $device` a no-op. Rather than do string concatenation, add another -o option to the list of parameters, since -o is cumulative