Re: [systemd-devel] [PATCH] sysv-generator: Handle .sh suffixes when translating Provides:

2015-01-28 Thread Martin Pitt
Hey Lennart, Lennart Poettering [2015-01-27 23:09 +0100]: > Hmm, we already had code that checks this in place, didn#t we? We only previously had this .sh stripping in sysv_translate_name(), but that translates and init script name like "foo.sh" to "foo.service". But that's not what we need in sy

Re: [systemd-devel] [systemd-commits] src/journal

2015-01-28 Thread Andrei Borzenkov
On Wed, Jan 28, 2015 at 6:04 AM, Zbigniew Jędrzejewski-Szmek wrote: > On Wed, Jan 28, 2015 at 03:50:42AM +0100, Lennart Poettering wrote: >> On Wed, 28.01.15 03:47, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) >> wrote: >> >> > On Wed, Jan 28, 2015 at 01:53:17AM +0100, Lennart Poettering wrote

Re: [systemd-devel] root= ignored

2015-01-28 Thread Felix Miata
Chris Murphy composed on 2015-01-27 23:29 (UTC-0700): > Felix Miata wrote: >> Lennart Poettering composed on 2015-01-28 02:03 (UTC+0100): >>> Hmm, Fedora doesn't obey root=? That sounds like a bug. > I'm not sure what it means, Fedora doesn't obey root=. Since a long > time it uses root=UUID= a

Re: [systemd-devel] network-online.target is not down when a physical network is down

2015-01-28 Thread Igor Bukanov
Just for references. With the the following script placed in /etc/NetworkManager/dispatcher.d/90-online-monitor everything works. As the service is started explicitly the unit file needs no Install section. #!/bin/sh status="$(nmcli -f STATE -t g)" if [ "_$status" = _connected -o "_$status" = "_co

[systemd-devel] full reset of reset network state with networkd

2015-01-28 Thread Igor Bukanov
If during the boot the network is configured with DHCP but later is configured with a static address with a new .network file, then systemctl restart networkd still keeps the old address obtained with DHCP. This is expected according to documentation. Is there a way to force with networkd to fully

Re: [systemd-devel] Unwants

2015-01-28 Thread Dimitri John Ledkov
On 27 January 2015 at 21:35, Zbigniew Jędrzejewski-Szmek wrote: > On Tue, Jan 27, 2015 at 10:30:48PM +0100, Lennart Poettering wrote: >> On Tue, 27.01.15 15:45, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) >> wrote: >> >> > Yes, I think attempting any kind of dependency removal *from loaded >>

Re: [systemd-devel] [PATCH] systemd-udevd.service: restore mount propagation

2015-01-28 Thread Martin Pitt
Lennart Poettering [2015-01-27 23:33 +0100]: > > That sounds good indeed! I can sit down at qemu tomorrow and simulate > > some CD insertions/removals, and come up with an udev rule for this. > > That would be great. It would really just be a matter of setting > SYSTEMD_READY=0 for block devices w

Re: [systemd-devel] [PATCH] systemd-udevd.service: restore mount propagation

2015-01-28 Thread Martin Pitt
Martin Pitt [2015-01-28 10:35 +0100]: > Turns out that there's no proper way to simulate that under QEMU -- > that has no "eject" button, and the "eject" monitor command blocks > as long as the OS is still accessing it (i. e. it's mounted). Lies! In fact "eject ide1-cd0" works rather well, it caus

Re: [systemd-devel] [PATCH] systemd-udevd.service: restore mount propagation

2015-01-28 Thread Martin Pitt
Martin Pitt [2015-01-28 10:35 +0100]: > # remove a medium/eject CD: disable corresponding .mount units > ENV{DISK_MEDIA_CHANGE}=="?*", ENV{ID_CDROM_MEDIA}!="?*", > ENV{SYSTEMD_READY}="0" > # insert a medium; undo the previous rule > ENV{DISK_MEDIA_CHANGE}=="?*", ENV{ID_CDROM_MEDIA}=="?*",

Re: [systemd-devel] [PATCH] Added UFD (Uplink failure detection) support to networkd

2015-01-28 Thread Rauta, Alin
Hi Tom, Lennart, Thanks for the answers. The UFD is not only about configuration. It's about run-time monitoring of interfaces. The Uplink failure detection daemon listens for RTM_NEWLINK and RTM_DELLINK events from kernel the same way networkd manager listens. Then by run-time monitoring the

Re: [systemd-devel] full reset of reset network state with networkd

2015-01-28 Thread poma
On 28.01.2015 10:23, Igor Bukanov wrote: > If during the boot the network is configured with DHCP but later is > configured with a static address with a new .network file, then > systemctl restart networkd still keeps the old address obtained with > DHCP. This is expected according to documentatio

Re: [systemd-devel] [PATCH] systemd-udevd.service: restore mount propagation

2015-01-28 Thread Martin Pitt
Martin Pitt [2015-01-28 11:04 +0100]: > > In udevadm I see that this has the intended effect -- as soon as I > > eject the CD, /dev/sr0 gets ENV{SYSTEMD_READY}="0". But there's still > > something missing, as merely adding this property doesn't yet tell > > systemd to stop the unit -- media-ubuntu-

Re: [systemd-devel] Swap gets activated twice (through fstab and gpt generators)

2015-01-28 Thread Martin Pitt
Lennart Poettering [2015-01-28 1:03 +0100]: > I implemented a different logic now: > > http://cgit.freedesktop.org/systemd/systemd/commit/?id=37cf8fee46025d704660a9fc1d1349fe7d0b139d > > With this change we'll now dispatch only one mkswap per device node, > regardless which symlinked alias is us

Re: [systemd-devel] failing boot start jobs delay reboot

2015-01-28 Thread Lennart Poettering
On Tue, 27.01.15 22:00, Felix Miata (mrma...@earthlink.net) wrote: > Lennart Poettering composed on 2015-01-28 02:33 (UTC+0100): > > >>> Felix Miata wrote > ... > > So, I actually implemented this now. Or actually, I only implemented > > the part about C-A-D triggering a reboot. I picked 7x per 2

Re: [systemd-devel] root= ignored (was: failing boot start jobs delay reboot)

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 00:58, Felix Miata (mrma...@earthlink.net) wrote: > Lennart Poettering composed on 2015-01-28 02:03 (UTC+0100): > > > Felix Miata wrote: > > >> Both. When they occur during init they repeat during shutdown. Even when I > >> let init complete and succeed to fix the typo or oversi

Re: [systemd-devel] [systemd-commits] src/journal

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 04:04, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > On Wed, Jan 28, 2015 at 03:50:42AM +0100, Lennart Poettering wrote: > > On Wed, 28.01.15 03:47, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) > > wrote: > > > > > On Wed, Jan 28, 2015 at 01:53:17AM +0100, Lennart

Re: [systemd-devel] Swap gets activated twice (through fstab and gpt generators)

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 12:37, Martin Pitt (martin.p...@ubuntu.com) wrote: > Lennart Poettering [2015-01-28 1:03 +0100]: > > I implemented a different logic now: > > > > http://cgit.freedesktop.org/systemd/systemd/commit/?id=37cf8fee46025d704660a9fc1d1349fe7d0b139d > > > > With this change we'll now d

Re: [systemd-devel] [PATCH] systemd-udevd.service: restore mount propagation

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 12:06, Martin Pitt (martin.p...@ubuntu.com) wrote: > I. e. the .mount does not seem to be bound on the .device, and isn't > taken down automatically (stopping the mount manually works fine). In > "show" I don't see a BindsTo, and the Requires also doesn't mention > the /dev/sr1 de

Re: [systemd-devel] [PATCH] Added UFD (Uplink failure detection) support to networkd

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 10:13, Rauta, Alin (alin.ra...@intel.com) wrote: > Lennart, on a switch I should be able to configure more than one UFD > group. What precisely does this mean? WOuld those groups be orthogonal? I really would like to avoid introdcuing the "tags" concept for now. Would a solutio

Re: [systemd-devel] Swap gets activated twice (through fstab and gpt generators)

2015-01-28 Thread Martin Pitt
Lennart Poettering [2015-01-28 13:15 +0100]: > > I built a package with this for Debian and Ubuntu. The Debian reporter > > in https://bugs.debian.org/772182 confirmed that this is working, I > > think/hope the Ubuntu reporter in > > https://bugs.launchpad.net/bugs/1399595 is also usually very > >

Re: [systemd-devel] Swap gets activated twice (through fstab and gpt generators)

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 13:41, Martin Pitt (martin.p...@ubuntu.com) wrote: > Lennart Poettering [2015-01-28 13:15 +0100]: > > > I built a package with this for Debian and Ubuntu. The Debian reporter > > > in https://bugs.debian.org/772182 confirmed that this is working, I > > > think/hope the Ubuntu repo

Re: [systemd-devel] [PATCH] systemd-udevd.service: restore mount propagation

2015-01-28 Thread Martin Pitt
Lennart Poettering [2015-01-28 13:33 +0100]: > Hmm, yeah, we apparently only add that for file systems listed in > /etc/fstab... > > If you change the "get_mount_parameters_fragment()" invocation at the > beginning of mount_add_device_links() in src/core/mount.c to > "get_mount_parameters()", does

Re: [systemd-devel] Swap gets activated twice (through fstab and gpt generators)

2015-01-28 Thread Martin Pitt
Hey Lennart, Lennart Poettering [2015-01-28 14:06 +0100]: > Ah, thanks! That was helpful. > > I apparently fucked up the new linked list iteration macro I added for > this. I think this should make it work: > > http://cgit.freedesktop.org/systemd/systemd/commit/?id=cdda4aa8d20c2679cc937d40e793ab

[systemd-devel] [PATCH] Adding fsck integration to plymouth

2015-01-28 Thread Didier Roche
Hi, Here is a suite of patches up to review to add fsckd integration to plymouth. This work is mostly based on Lennart's suggestion on an email thread few years ago (http://lists.freedesktop.org/archives/systemd-devel/2011-April/002063.html) where the proposal was to add a systemd-fsckd daemo

Re: [systemd-devel] [PATCH] sysv-generator: Handle .sh suffixes when translating Provides:

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 09:05, Martin Pitt (martin.p...@ubuntu.com) wrote: > Hey Lennart, > > Lennart Poettering [2015-01-27 23:09 +0100]: > > Hmm, we already had code that checks this in place, didn#t we? > > We only previously had this .sh stripping in sysv_translate_name(), > but that translates and

[systemd-devel] [PATCH 01/12] fsckd daemon for inter-fsckd communication

2015-01-28 Thread Didier Roche
>From d0f49b4e0994b9a1dd2738da18c5a2a6708b444f Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Mon, 26 Jan 2015 15:35:50 +0100 Subject: [PATCH 01/12] fsckd daemon for inter-fsckd communication Add systemd-fsckd multiplexer which accept multiple systemd-fsck instances to connect to it and send

[systemd-devel] [PATCH 02/12] Factorize plymouth_running in plymouth.c

2015-01-28 Thread Didier Roche
>From 0ef3127531c95ad9a740cb997a1f94ef257dd4f0 Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Mon, 26 Jan 2015 15:45:46 +0100 Subject: [PATCH 02/12] Factorize plymouth_running in plymouth.c Add plymouth.c/h facility which will contains all plymouth related functionalities. This is part of th

[systemd-devel] [PATCH 03/12] systemd-fsck: always connect to systemd-fsckd

2015-01-28 Thread Didier Roche
>From feb8f332313c3ac2542f618028f8a6a6a36daf50 Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Mon, 26 Jan 2015 16:01:11 +0100 Subject: [PATCH 03/12] systemd-fsck: always connect to systemd-fsckd Remove the plymouth running or show-status checks from systemd-fsck. Instead, always connect to s

[systemd-devel] [PATCH 05/12] Connect and send to plymouth progress report

2015-01-28 Thread Didier Roche
>From c60d4f41e279dd5ed7134d97d95549aac1f38e69 Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Mon, 26 Jan 2015 16:29:30 +0100 Subject: [PATCH 05/12] Connect and send to plymouth progress report Try to connect and send to plymouth (if running) some check report progress, using libplymouth. U

[systemd-devel] [PATCH 04/12] Add some plymouth functionality to connect and send, messages

2015-01-28 Thread Didier Roche
>From 7afe9270e3210668053089caaff8a1dd790a48f5 Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Mon, 26 Jan 2015 17:07:32 +0100 Subject: [PATCH 04/12] Add some plymouth functionality to connect and send messages Connect to plymouth (if running). Automatic reconnect if plymouth was disconnecte

[systemd-devel] [PATCH 06/12] Support cancellation of fsck in progress

2015-01-28 Thread Didier Roche
>From 104cf82ba28941e907f277a713f834ceb3d909f0 Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Mon, 26 Jan 2015 16:40:52 +0100 Subject: [PATCH 06/12] Support cancellation of fsck in progress Grab in fsckd plymouth watch key for C or c, and propagate this cancel request to systemd-fsck which w

[systemd-devel] [PATCH 07/12] Add gettext support

2015-01-28 Thread Didier Roche
>From a56e70d026565b4da79acfdad1d83d6521ec42f5 Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Mon, 26 Jan 2015 16:51:05 +0100 Subject: [PATCH 07/12] Add gettext support --- configure.ac | 1 + src/shared/util.c | 8 src/shared/util.h | 2 ++ 3 files changed, 11 insertions(+)

[systemd-devel] [PATCH 08/12] Translate fsckd messages for plymouth

2015-01-28 Thread Didier Roche
>From cb822ca631b8cddfe03930ef68a12c97372bb8c1 Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Mon, 26 Jan 2015 17:12:54 +0100 Subject: [PATCH 08/12] Translate fsckd messages for plymouth For plymouth themes not supporting i18n (like .script), send translated messages to display to user, whic

Re: [systemd-devel] Swap gets activated twice (through fstab and gpt generators)

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 14:16, Martin Pitt (martin.p...@ubuntu.com) wrote: > Hey Lennart, > > Lennart Poettering [2015-01-28 14:06 +0100]: > > Ah, thanks! That was helpful. > > > > I apparently fucked up the new linked list iteration macro I added for > > this. I think this should make it work: > > >

[systemd-devel] [PATCH 10/12] Add fsckd service and socket, retarget systemd-fsck

2015-01-28 Thread Didier Roche
>From 000f1b6ff4f5f80a2a13309590d255de6d6526ec Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Mon, 26 Jan 2015 17:30:00 +0100 Subject: [PATCH 10/12] Add fsckd service and socket, retarget systemd-fsck systemd-fsckd can be socket-activated by systemd-fsck process. Reflect that in the differen

[systemd-devel] [PATCH 12/12] Add mock fsck process

2015-01-28 Thread Didier Roche
>From aefe0667ed62d5d7e17193c0f5ae302ed57e4727 Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Mon, 26 Jan 2015 17:46:36 +0100 Subject: [PATCH 12/12] Add mock fsck process --- test/mocks/fsck | 27 +++ 1 file changed, 27 insertions(+) create mode 100755 test/mocks/fs

Re: [systemd-devel] [PATCH] sysv-generator: Handle .sh suffixes when translating Provides:

2015-01-28 Thread Martin Pitt
Hello Lennart, Lennart Poettering [2015-01-28 14:19 +0100]: > I really don't follow. Why do we need the add_alias() equality check > now? I mean, if sysv_translate_facility() now detects if we translate > facilities listed in Provides: as pointing to the script itself, and > handles .sh properly,

[systemd-devel] [PATCH 11/12] Add man page and references to it.

2015-01-28 Thread Didier Roche
>From 6b13d8fb248bf4176f1ad7e1d4736683462bf196 Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Mon, 26 Jan 2015 17:34:59 +0100 Subject: [PATCH 11/12] Add man page and references to it. Add man page explaining the plymouth theme protocol, usage of the daemon as well as the socket activation pa

Re: [systemd-devel] [PATCH] systemd-udevd.service: restore mount propagation

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 14:09, Martin Pitt (martin.p...@ubuntu.com) wrote: > From 0cc891bcd8d3fa9967dd733292caf86a43dd3503 Mon Sep 17 00:00:00 2001 > From: Martin Pitt > Date: Wed, 28 Jan 2015 13:57:47 +0100 > Subject: [PATCH 2/2] rules: clean up stale CD drive mounts after ejection > > Ejecting a CD w

Re: [systemd-devel] [systemd-commits] src/journal

2015-01-28 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Jan 28, 2015 at 01:11:55PM +0100, Lennart Poettering wrote: > On Wed, 28.01.15 04:04, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > > On Wed, Jan 28, 2015 at 03:50:42AM +0100, Lennart Poettering wrote: > > > On Wed, 28.01.15 03:47, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.p

Re: [systemd-devel] [PATCH] Added UFD (Uplink failure detection) support to networkd

2015-01-28 Thread Andrei Borzenkov
On Wed, Jan 28, 2015 at 3:40 PM, Lennart Poettering wrote: > On Wed, 28.01.15 10:13, Rauta, Alin (alin.ra...@intel.com) wrote: > >> Lennart, on a switch I should be able to configure more than one UFD >> group. > > What precisely does this mean? WOuld those groups be orthogonal? > No. You have tw

Re: [systemd-devel] [PATCH] Added UFD (Uplink failure detection) support to networkd

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 16:48, Andrei Borzenkov (arvidj...@gmail.com) wrote: > On Wed, Jan 28, 2015 at 3:40 PM, Lennart Poettering > wrote: > > On Wed, 28.01.15 10:13, Rauta, Alin (alin.ra...@intel.com) wrote: > > > >> Lennart, on a switch I should be able to configure more than one UFD > >> group. > >

Re: [systemd-devel] [PATCH] sysv-generator: Replace Provides: symlinks with real units

2015-01-28 Thread Michael Biebl
2015-01-28 1:44 GMT+01:00 Lennart Poettering : > I am not a fan of this stuff either. I really don't like the TOCTOU > behaviour I must say... > > If this is really just about ".bak", then we can add it to the list of > suffixes in hidden_files()... Martin already committed an update [1] to at lea

Re: [systemd-devel] [PATCH] sysv-generator: Replace Provides: symlinks with real units

2015-01-28 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Jan 28, 2015 at 02:56:17PM +0100, Michael Biebl wrote: > 2015-01-28 1:44 GMT+01:00 Lennart Poettering : > > I am not a fan of this stuff either. I really don't like the TOCTOU > > behaviour I must say... > > > > If this is really just about ".bak", then we can add it to the list of > > suff

Re: [systemd-devel] failing boot start jobs delay reboot

2015-01-28 Thread Michael Biebl
2015-01-28 2:05 GMT+01:00 Lennart Poettering : > On Tue, 20.01.15 11:24, Andrei Borzenkov (arvidj...@gmail.com) wrote: >> - stop in emergency shell when mount fails >> - fix /etc/fstab >> - ^D to continue boot >> >> no more works, because /etc/fstab is not reevaluated so systemd will >> still try t

Re: [systemd-devel] [PATCH] sysv-generator: Handle .sh suffixes when translating Provides:

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 14:25, Martin Pitt (martin.p...@ubuntu.com) wrote: > Hello Lennart, > > Lennart Poettering [2015-01-28 14:19 +0100]: > > I really don't follow. Why do we need the add_alias() equality check > > now? I mean, if sysv_translate_facility() now detects if we translate > > facilities l

Re: [systemd-devel] failing boot start jobs delay reboot

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 15:12, Michael Biebl (mbi...@gmail.com) wrote: > 2015-01-28 2:05 GMT+01:00 Lennart Poettering : > > On Tue, 20.01.15 11:24, Andrei Borzenkov (arvidj...@gmail.com) wrote: > >> - stop in emergency shell when mount fails > >> - fix /etc/fstab > >> - ^D to continue boot > >> > >> no m

Re: [systemd-devel] [PATCH 01/12] fsckd daemon for inter-fsckd communication

2015-01-28 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Jan 28, 2015 at 02:20:40PM +0100, Didier Roche wrote: > > From d0f49b4e0994b9a1dd2738da18c5a2a6708b444f Mon Sep 17 00:00:00 2001 > From: Didier Roche > Date: Mon, 26 Jan 2015 15:35:50 +0100 > Subject: [PATCH 01/12] fsckd daemon for inter-fsckd communication > > Add systemd-fsckd multipl

Re: [systemd-devel] [PATCH 04/12] Add some plymouth functionality to connect and send, messages

2015-01-28 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Jan 28, 2015 at 02:22:04PM +0100, Didier Roche wrote: > > From 7afe9270e3210668053089caaff8a1dd790a48f5 Mon Sep 17 00:00:00 2001 > From: Didier Roche > Date: Mon, 26 Jan 2015 17:07:32 +0100 > Subject: [PATCH 04/12] Add some plymouth functionality to connect and send > messages > > Conn

Re: [systemd-devel] [PATCH 05/12] Connect and send to plymouth progress report

2015-01-28 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Jan 28, 2015 at 02:22:30PM +0100, Didier Roche wrote: > > From c60d4f41e279dd5ed7134d97d95549aac1f38e69 Mon Sep 17 00:00:00 2001 > From: Didier Roche > Date: Mon, 26 Jan 2015 16:29:30 +0100 > Subject: [PATCH 05/12] Connect and send to plymouth progress report > > Try to connect and send

Re: [systemd-devel] [PATCH 06/12] Support cancellation of fsck in progress

2015-01-28 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Jan 28, 2015 at 02:22:54PM +0100, Didier Roche wrote: > > From 104cf82ba28941e907f277a713f834ceb3d909f0 Mon Sep 17 00:00:00 2001 > From: Didier Roche > Date: Mon, 26 Jan 2015 16:40:52 +0100 > Subject: [PATCH 06/12] Support cancellation of fsck in progress > > Grab in fsckd plymouth watc

Re: [systemd-devel] [PATCH 10/12] Add fsckd service and socket, retarget systemd-fsck

2015-01-28 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Jan 28, 2015 at 02:24:32PM +0100, Didier Roche wrote: > > From 000f1b6ff4f5f80a2a13309590d255de6d6526ec Mon Sep 17 00:00:00 2001 > From: Didier Roche > Date: Mon, 26 Jan 2015 17:30:00 +0100 > Subject: [PATCH 10/12] Add fsckd service and socket, retarget systemd-fsck > > systemd-fsckd ca

Re: [systemd-devel] [PATCH 11/12] Add man page and references to it.

2015-01-28 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Jan 28, 2015 at 02:24:55PM +0100, Didier Roche wrote: > > From 6b13d8fb248bf4176f1ad7e1d4736683462bf196 Mon Sep 17 00:00:00 2001 > From: Didier Roche > Date: Mon, 26 Jan 2015 17:34:59 +0100 > Subject: [PATCH 11/12] Add man page and references to it. > > Add man page explaining the plymo

Re: [systemd-devel] [PATCH 12/12] Add mock fsck process

2015-01-28 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Jan 28, 2015 at 02:25:17PM +0100, Didier Roche wrote: > > From aefe0667ed62d5d7e17193c0f5ae302ed57e4727 Mon Sep 17 00:00:00 2001 > From: Didier Roche > Date: Mon, 26 Jan 2015 17:46:36 +0100 > Subject: [PATCH 12/12] Add mock fsck process > > --- > test/mocks/fsck | 27 ++

Re: [systemd-devel] [PATCH 06/12] Support cancellation of fsck in progress

2015-01-28 Thread Dimitri John Ledkov
On 28 January 2015 at 14:53, Zbigniew Jędrzejewski-Szmek wrote: > > On Wed, Jan 28, 2015 at 02:22:54PM +0100, Didier Roche wrote: > > > > > From 104cf82ba28941e907f277a713f834ceb3d909f0 Mon Sep 17 00:00:00 2001 > > From: Didier Roche > > Date: Mon, 26 Jan 2015 16:40:52 +0100 > > Subject: [PATCH 0

Re: [systemd-devel] [PATCH] systemd-udevd.service: restore mount propagation

2015-01-28 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Jan 28, 2015 at 02:09:37PM +0100, Martin Pitt wrote: > Lennart Poettering [2015-01-28 13:33 +0100]: > > Hmm, yeah, we apparently only add that for file systems listed in > > /etc/fstab... > > > > If you change the "get_mount_parameters_fragment()" invocation at the > > beginning of mount_a

Re: [systemd-devel] [PATCH 06/12] Support cancellation of fsck in progress

2015-01-28 Thread Martin Pitt
Dimitri John Ledkov [2015-01-28 15:21 +]: > Hm? an interactive message with key-binding is usually shown and then > plymouth reacts to such a key prompt. > This is how it has always worked on plymouth prompts since forever... > thus this would not be a surprise to most plymouth users (~ 5+ year

Re: [systemd-devel] [PATCH 06/12] Support cancellation of fsck in progress

2015-01-28 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Jan 28, 2015 at 03:21:27PM +, Dimitri John Ledkov wrote: > On 28 January 2015 at 14:53, Zbigniew Jędrzejewski-Szmek > wrote: > > > > On Wed, Jan 28, 2015 at 02:22:54PM +0100, Didier Roche wrote: > > > > > > > > From 104cf82ba28941e907f277a713f834ceb3d909f0 Mon Sep 17 00:00:00 2001 > >

Re: [systemd-devel] [PATCH 06/12] Support cancellation of fsck in progress

2015-01-28 Thread Dimitri John Ledkov
On 28 January 2015 at 15:31, Zbigniew Jędrzejewski-Szmek wrote: > On Wed, Jan 28, 2015 at 03:21:27PM +, Dimitri John Ledkov wrote: >> On 28 January 2015 at 14:53, Zbigniew Jędrzejewski-Szmek >> wrote: >> > >> > On Wed, Jan 28, 2015 at 02:22:54PM +0100, Didier Roche wrote: >> > > >> > >> > > F

Re: [systemd-devel] [PATCH] systemd-udevd.service: restore mount propagation

2015-01-28 Thread Martin Pitt
Zbigniew Jędrzejewski-Szmek [2015-01-28 16:29 +0100]: > > | Where=/media/martin/Ubuntu 15.04 amd64 > > | What=/dev/sr0 > > | [...] > > | Id=media-martin-Ubuntu\x5cx2015.04\x5cx20amd64.mount > > | Names=media-martin-Ubuntu\x5cx2015.04\x5cx20amd64.mount > > | Requires=-.mount > > | Wants=system.slice

Re: [systemd-devel] initializing _cleanup_* variables [was: [PATCH 01/12] fsckd daemon for inter-fsckd communication]

2015-01-28 Thread Martin Pitt
Hey Zbyszek, Zbigniew Jędrzejewski-Szmek [2015-01-28 15:37 +0100]: > > +static int handle_requests(int socket_fd) { > > +Clients *first = NULL; > > +usec_t last_activity = 0; > > +int numdevices = 0, clear = 0; > > +double percent = 100; > > +_cleanup_fclose

Re: [systemd-devel] initializing _cleanup_* variables [was: [PATCH 01/12] fsckd daemon for inter-fsckd communication]

2015-01-28 Thread Dimitri John Ledkov
On 28 January 2015 at 15:47, Martin Pitt wrote: > Hey Zbyszek, > > Zbigniew Jędrzejewski-Szmek [2015-01-28 15:37 +0100]: >> > +static int handle_requests(int socket_fd) { >> > +Clients *first = NULL; >> > +usec_t last_activity = 0; >> > +int numdevices = 0, clear = 0; >> >

Re: [systemd-devel] [PATCH] systemd-udevd.service: restore mount propagation

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 14:09, Martin Pitt (martin.p...@ubuntu.com) wrote: > Lennart Poettering [2015-01-28 13:33 +0100]: > > Hmm, yeah, we apparently only add that for file systems listed in > > /etc/fstab... > > > > If you change the "get_mount_parameters_fragment()" invocation at the > > beginning of

Re: [systemd-devel] [PATCH 12/12] Add mock fsck process

2015-01-28 Thread Martin Pitt
Zbigniew Jędrzejewski-Szmek [2015-01-28 16:08 +0100]: > > +#!/bin/bash > I think you can change this to /bin/sh, I don't see any bashisms. > > > +declare -a maxpass=(30 5 2 30 60) I do :-) POSIX shell doesn't have arrays AFAIK, and declare -a definitively doesn't work in e. g. dash. > > +for pas

Re: [systemd-devel] [PATCH] systemd-udevd.service: restore mount propagation

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 16:29, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > On Wed, Jan 28, 2015 at 02:09:37PM +0100, Martin Pitt wrote: > > Lennart Poettering [2015-01-28 13:33 +0100]: > > > Hmm, yeah, we apparently only add that for file systems listed in > > > /etc/fstab... > > > > > > If

Re: [systemd-devel] Jenkins Failing and Not Updating Github Mirror

2015-01-28 Thread Chris Atkinson
On Wed, 28 Jan 2015 03:42:33 +0100 Lennart Poettering wrote: > On Sun, 18.01.15 01:58, Simon Peeters (peeters.si...@gmail.com) wrote: > > > 2015-01-18 1:28 GMT+01:00 Chris Atkinson : > > > It looks like Jenkins has been failing to build for the last > > > three days and hasn't updated the Github

Re: [systemd-devel] [PATCH 1/2] networkd: accept a trailing '.' on the end of domains

2015-01-28 Thread Lennart Poettering
On Thu, 15.01.15 13:24, Michael Marineau (michael.marin...@coreos.com) wrote: > While not common outside of BIND configs the implied top level '.' in > domains is commonly accepted and crops up in random places. Starting > with commit 784d9b9c networkd began validating domains as hostnames > which

Re: [systemd-devel] initializing _cleanup_* variables [was: [PATCH 01/12] fsckd daemon for inter-fsckd communication]

2015-01-28 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Jan 28, 2015 at 04:06:30PM +, Dimitri John Ledkov wrote: > On 28 January 2015 at 15:47, Martin Pitt wrote: > > Hey Zbyszek, > > > > Zbigniew Jędrzejewski-Szmek [2015-01-28 15:37 +0100]: > >> > +static int handle_requests(int socket_fd) { > >> > +Clients *first = NULL; > >> > +

Re: [systemd-devel] systemd-networkd quietly ignores DHCPv6 leases

2015-01-28 Thread Lennart Poettering
On Thu, 15.01.15 12:50, Barbara Lazarowicz-Steube (scriptkid...@wp.pl) wrote: > On 2015-01-15 09:58, Patrik Flykt wrote: > > > Indeed. I so thought I had a patch applied that set the DHCPv6 address > > for the interface. Apparently such functionality has gone into /dev/null > > instead, and as a

Re: [systemd-devel] initializing _cleanup_* variables [was: [PATCH 01/12] fsckd daemon for inter-fsckd communication]

2015-01-28 Thread Dimitri John Ledkov
On 28 January 2015 at 16:51, Zbigniew Jędrzejewski-Szmek wrote: > On Wed, Jan 28, 2015 at 04:06:30PM +, Dimitri John Ledkov wrote: >> On 28 January 2015 at 15:47, Martin Pitt wrote: >> > Hey Zbyszek, >> > >> > Zbigniew Jędrzejewski-Szmek [2015-01-28 15:37 +0100]: >> (or is my compiler old and

Re: [systemd-devel] [PATCH] systemd-udevd.service: restore mount propagation

2015-01-28 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Jan 28, 2015 at 05:24:19PM +0100, Lennart Poettering wrote: > On Wed, 28.01.15 16:29, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > > On Wed, Jan 28, 2015 at 02:09:37PM +0100, Martin Pitt wrote: > > > Lennart Poettering [2015-01-28 13:33 +0100]: > > > > Hmm, yeah, we apparentl

Re: [systemd-devel] [PATCH] Added UFD (Uplink failure detection) support to networkd

2015-01-28 Thread Rauta, Alin
Hi Lennart, Tom, We should also be able to add virtual devices to UFD groups, like Andrei mentioned in his email. In this case, do you think "BindCarrier=" and "Tag=" in .network files would still work ? If we think about LAG (link aggregation) and if I am right, it's mapped to the kernel as a

[systemd-devel] [PATCH] logind: handle closing sessions over daemon restarts

2015-01-28 Thread Martin Pitt
Hello, We restart logind in our systemd package on package upgrades, as that should generally be safe and our policy is to do that whenever possible to avoid reboots and apply security and other fixes immediately. We got several reports (https://launchpad.net/bugs/1415104) about users losing thei

Re: [systemd-devel] [PATCH 1/2] networkd: accept a trailing '.' on the end of domains

2015-01-28 Thread Michael Marineau
On Wed, Jan 28, 2015 at 8:49 AM, Lennart Poettering wrote: > On Thu, 15.01.15 13:24, Michael Marineau (michael.marin...@coreos.com) wrote: > >> While not common outside of BIND configs the implied top level '.' in >> domains is commonly accepted and crops up in random places. Starting >> with comm

Re: [systemd-devel] [PATCH] Added UFD (Uplink failure detection) support to networkd

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 17:18, Rauta, Alin (alin.ra...@intel.com) wrote: > Hi Lennart, Tom, > > We should also be able to add virtual devices to UFD groups, like > Andrei mentioned in his email. In this case, do you think > "BindCarrier=" and "Tag=" in .network files would still work ? Again, my lates

Re: [systemd-devel] [PATCH] logind: handle closing sessions over daemon restarts

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 18:42, Martin Pitt (martin.p...@ubuntu.com) wrote: > Hello, > > We restart logind in our systemd package on package upgrades, as that > should generally be safe and our policy is to do that whenever > possible to avoid reboots and apply security and other fixes > immediately. >

Re: [systemd-devel] bug 88401 / daemon-reload causes Type=oneshot services to be re-started / path_coldplug() is non-deserialization-aware

2015-01-28 Thread Lennart Poettering
On Sun, 18.01.15 04:21, Ivan Shapovalov (intelfx...@gmail.com) wrote: > Hi folks, > > I'm trying to fix this bug: > https://bugs.freedesktop.org/show_bug.cgi?id=88401 > > The initial problem (as reported) looks following: performing a reload > (maybe implicitly) re-starts alsa-restore.service if

Re: [systemd-devel] bug 88401 / daemon-reload causes Type=oneshot services to be re-started / path_coldplug() is non-deserialization-aware

2015-01-28 Thread Ivan Shapovalov
On 2015-01-28 at 20:15 +0100, Lennart Poettering wrote: > On Sun, 18.01.15 04:21, Ivan Shapovalov (intelfx...@gmail.com) wrote: > > > Hi folks, > > > > I'm trying to fix this bug: > > https://bugs.freedesktop.org/show_bug.cgi?id=88401 > > > > The initial problem (as reported) looks following: pe

Re: [systemd-devel] logind: lid switch action not executed on small open/close delays

2015-01-28 Thread Lennart Poettering
On Sat, 17.01.15 18:36, David Herrmann (dh.herrm...@gmail.com) wrote: > I think it's reasonable to allow setting the base-timeout in > /etc/systemd/logind.conf, but I want to know Lennart's opinion first. > Preferably, this timeout was a kernel-timeout on the bus-probe itself. > But we don't have

Re: [systemd-devel] How to speed up journalctl -n foo ?

2015-01-28 Thread Lennart Poettering
On Wed, 14.01.15 09:05, Ben Greear (gree...@candelatech.com) wrote: > I would like to grab the last 2000 or so system log lines after > some event happens. I tried this on Fedora-20 (systemd version 208). > > It seems unreasonable slow: > > [root@ath10k lanforge]# time journalctl -n 2000 > /tmp

Re: [systemd-devel] [PATCH] sysv-generator: only allow regular files in enumerate_sysv()

2015-01-28 Thread Lennart Poettering
On Thu, 22.01.15 07:31, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > On Wed, Jan 14, 2015 at 02:51:41AM -0300, Cristian Rodríguez wrote: > > Otherwise, if the directory contains other directories we fail > > at fopen in load_sysv() with EISDIR. > > --- > > src/sysv-generator/sysv-gene

Re: [systemd-devel] [PATCH] os-release: Add PRIVACY_POLICY_URL

2015-01-28 Thread Lennart Poettering
On Tue, 13.01.15 17:20, Bastien Nocera (had...@hadess.net) wrote: This was applied by Martin Pitt in the meantime. Martin! Please always reply to the patches on the ML when merging them, with a short "Applied" or so, so that the next one reading through the mails knows that the message is already

Re: [systemd-devel] [PATCH] os-release: Add PRIVACY_POLICY_URL

2015-01-28 Thread Martin Pitt
Lennart Poettering [2015-01-28 20:44 +0100]: > Martin! Please always reply to the patches on the ML when merging > them, with a short "Applied" or so, so that the next one reading > through the mails knows that the message is already processed! Thanks! Ouch, forgot that, sorry about that. Will rem

Re: [systemd-devel] [PATCH 01/12] fsckd daemon for inter-fsckd communication

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 14:20, Didier Roche (didier.ro...@canonical.com) wrote: > static int process_progress(int fd) { > -_cleanup_fclose_ FILE *console = NULL, *f = NULL; > +_cleanup_fclose_ FILE *f = NULL; > usec_t last = 0; > -bool locked = false; > -int clea

Re: [systemd-devel] initializing _cleanup_* variables [was: [PATCH 01/12] fsckd daemon for inter-fsckd communication]

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 16:47, Martin Pitt (martin.p...@ubuntu.com) wrote: > Hey Zbyszek, > > Zbigniew Jędrzejewski-Szmek [2015-01-28 15:37 +0100]: > > > +static int handle_requests(int socket_fd) { > > > +Clients *first = NULL; > > > +usec_t last_activity = 0; > > > +int numdevi

Re: [systemd-devel] initializing _cleanup_* variables [was: [PATCH 01/12] fsckd daemon for inter-fsckd communication]

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 16:06, Dimitri John Ledkov (dimitri.j.led...@intel.com) wrote: > On 28 January 2015 at 15:47, Martin Pitt wrote: > > Hey Zbyszek, > > > > Zbigniew Jędrzejewski-Szmek [2015-01-28 15:37 +0100]: > >> > +static int handle_requests(int socket_fd) { > >> > +Clients *first = NUL

Re: [systemd-devel] [PATCH 04/12] Add some plymouth functionality to connect and send, messages

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 14:22, Didier Roche (didro...@ubuntu.com) wrote: > # > -- > +have_plymouth=no > +AC_ARG_ENABLE(plymouth, AS_HELP_STRING([--disable-plymouth], [disable > plymouth integration])) > +if test "x$enable_plym

Re: [systemd-devel] [PATCH 05/12] Connect and send to plymouth progress report

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 14:22, Didier Roche (didro...@ubuntu.com) wrote: > > +#ifdef HAVE_PLYMOUTH > +asprintf(&fsck_message, "fsckd:%d:%3.1f:%s", > numdevices, percent, console_message); > +#endif OOM check. The communcaition here with plymouth still looks simple enough to ju

Re: [systemd-devel] [PATCH 06/12] Support cancellation of fsck in progress

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 14:22, Didier Roche (didro...@ubuntu.com) wrote: > src/fsck/fsck.c | 29 + > src/fsckd/fsckd.c | 43 +++ > src/fsckd/fsckd.h | 5 + > 3 files changed, 69 insertions(+), 8 deletions(-) > > diff --git a/src

Re: [systemd-devel] Fwd: journald doesn't forward messages to syslog w/o CAP_SYS_ADMIN (LXC)

2015-01-28 Thread Lennart Poettering
On Tue, 13.01.15 12:05, Martin Pitt (mp...@debian.org) wrote: > Hello all, > > I'm forwarding a bug report about journal forwarding in containers > without CAP_SYS_ADMIN. I adjusted Christian's patch for current git > master and to be in git am format. For completeness' sake: this apparently got

[systemd-devel] [PATCH] backlight: let udev properties override clamping

2015-01-28 Thread Topi Miettinen
On my computer, the minimum brightness enforced by clamping in backlight is too bright. Let udev property ID_BACKLIGHT_CLAMP control whether the brightness is clamped or not. --- man/systemd-backli...@.service.xml | 11 ++- src/backlight/backlight.c | 5 - 2 files changed, 1

[systemd-devel] Odp: Re: BUG: several bugs in core/main.c (v218)

2015-01-28 Thread Tomasz Pawlak
On Mon, 26.01.15 00:33, Tomasz Pawlak (tomazzi at wp.pl) wrote: First of all, Iv'e disabled automatic replies from systemd-devel, because my e-mail account gets flooded with hundreds of e-mails. The side effect was, that I haven't been informed about this reply. > You are right, but it's not as

[systemd-devel] BUG: several bugs in core/main.c (v218)

2015-01-28 Thread Tomasz Pawlak
On Sun, 25.01.15 03:37, Tomasz Pawlak (tomazzi at wp.pl) wrote: ---> Unfortunatelly, due to my mistake this thread was splitted, The other part is here: http://lists.freedesktop.org/archives/systemd-devel/2015-January/027648.html ---< > core/main.c:1519 > /* Make sure we leave a core dump

Re: [systemd-devel] [PATCH] backlight: let udev properties override clamping

2015-01-28 Thread Lennart Poettering
On Wed, 28.01.15 23:51, Topi Miettinen (toiwo...@gmail.com) wrote: > diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c > index 1271a66..df53b75 100644 > --- a/src/backlight/backlight.c > +++ b/src/backlight/backlight.c > @@ -373,6 +373,7 @@ int main(int argc, char *argv[]) { > >

Re: [systemd-devel] Running system services required for certain filesystems

2015-01-28 Thread Lennart Poettering
On Mon, 12.01.15 10:37, Colin Guthrie (gm...@colin.guthr.ie) wrote: > Hi, > > On a related note to my previous message (subject "systemctl status not > showing still running processes in inactive .mount unit cgroups (NFS > specifically)"), when mount.nfs runs to mount NFS filesystems, it shells >

Re: [systemd-devel] systemctl status not showing still running processes in inactive .mount unit cgroups (NFS specifically)

2015-01-28 Thread Lennart Poettering
On Thu, 15.01.15 09:39, Colin Guthrie (gm...@colin.guthr.ie) wrote: > Ross Lagerwall wrote on 14/01/15 22:41: > > On Mon, Jan 12, 2015 at 09:04:35PM +0300, Andrei Borzenkov wrote: > >> В Mon, 12 Jan 2015 10:34:07 + > >> Colin Guthrie пишет: > >> > >>> > >>> Anyway, assuming the process is in

Re: [systemd-devel] [PATCH] Break JobNew signal dbus signature by adding JobType.

2015-01-28 Thread Lennart Poettering
On Sun, 11.01.15 18:08, Dimitri John Ledkov (dimitri.j.led...@intel.com) wrote: > At the moment JobNew and JobRemoved signals are not useful for > tracking streams of events. JobType is missing from both of them, and > thus one can only track that "something" is happening and to which > units (And

Re: [systemd-devel] BUG: several bugs in core/main.c (v218)

2015-01-28 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Jan 27, 2015 at 01:57:58AM +0100, Lennart Poettering wrote: > On Mon, 26.01.15 23:45, Tomasz Pawlak (toma...@wp.pl) wrote: > > > > Actually it *is* protected, see kill(2). Signals are ignored for PID 1 > > > unless it installed handlers for them. Nevertheless, we probably want to > > > abo

[systemd-devel] [PATCH] hwdb: add a touchpad hwdb

2015-01-28 Thread Peter Hutterer
Currently used to tag devices in the new Lenovo *50 series and the X1 Carbon 3rd. These laptops re-introduced the physical trackpoint buttons that were missing from the *40 series but those buttons are now wired up to the touchpad. The touchpad now sends BTN_0, BTN_1 and BTN_2 for the trackpoint.

Re: [systemd-devel] bug: offline update fails due to separate /var volume mounting too late

2015-01-28 Thread Lennart Poettering
On Thu, 08.01.15 23:49, Chris Murphy (li...@colorremedies.com) wrote: > The gist is that when fstab specifies a separate volume to mount at > /var, this happens too late for /var/.updated to get picked up and so > offline updates aren't applied. > > systemd-216-12.fc21.x86_64 > > https://bugzill

  1   2   >