Re: [systemd-devel] Udev rules hardware database

2014-11-07 Thread Oliver Neukum
On Fri, 2014-11-07 at 08:26 +0100, Martin Pitt wrote: > Patrick Häcker [2014-11-05 16:55 +0100]: > > I you want to have permanent power saving activated for your devices, the > > recommended way is to use udev (e.g. > > https://wiki.archlinux.org/index.php/Power_saving#USB_autosuspend). Some > >

Re: [systemd-devel] remote-fs ordering, iSCSI and _netdev

2014-11-07 Thread Karel Zak
On Thu, Nov 06, 2014 at 09:10:51PM -0800, Chris Leech wrote: > > Not sure, maybe it's possible to detect this by scsi info in /sys. > > I took a look at what lsscsi is doing to guess at transport type. iSCSI > is kind of ugly, FCoE is really ugly, and for both of those there exists > a variety o

Re: [systemd-devel] [PATCH] shared/install: don't report 'static' when unit contains only Also=

2014-11-07 Thread Jan Synacek
Lennart Poettering writes: > On Thu, 06.11.14 10:49, Jan Synacek (jsyna...@redhat.com) wrote: > >> I think that this patch might be a bit ineffective, as it calls >> unit_file_load() again just to get an InstallContext. I wasn't sure >> how to get Also= targets in any other way. >> >> If such cha

[systemd-devel] Unexpecte behavior for timer with OnActiveSec

2014-11-07 Thread Paassen, Hiram van
Hi, We need to switch to a different target after 30 min of starting that target. Switching happens with isolate. So we have a timer with OnActiveSec=30min witch starts a service that calls systemctl isolate This works like a charm... the first time the target is activated. The second time we

Re: [systemd-devel] [PATCH] manager: Ensure user's systemd runtime directory exists.

2014-11-07 Thread Colin Guthrie
Lennart Poettering wrote on 07/11/14 01:06: > On Wed, 05.11.14 14:51, Colin Guthrie (gm...@colin.guthr.ie) wrote: > >> Colin Guthrie wrote on 03/11/14 08:02: >>> Zbigniew Jędrzejewski-Szmek wrote on 02/11/14 18:18: On Sun, Nov 02, 2014 at 02:04:20PM +, Colin Guthrie wrote: > This mirr

Re: [systemd-devel] Shutdown problems

2014-11-07 Thread Christian Seiler
Am 2014-11-07 04:07, schrieb Nikolaus Rath: $ cat /lib/systemd/system-shutdown/debug.sh #!/bin/sh exec > /shutdown.log exec 2>&1 mount -o remount,rw / Well, you need to mount / rewrite *before* redirecting output into a file. Try putting the 'mount -o remount,rw /' line to the top of the script

[systemd-devel] systemd user service when x is started

2014-11-07 Thread arnaud gaboury
I am starting my user services with systemctl --user as possible as I can. I log in my session on VT with startx. I thus defined a first target, called console.target, for services than do not need X (dbus,urxvtd, ssh-agent, gpg-agent, tmux). The default.target is symlinked to it. Unfortunately, I

[systemd-devel] Expected behavior when systemd cannot load SELinux policy

2014-11-07 Thread Jan Synáček
Hello, currently, when SELINUX=enforcing and SELINUXTYPE= are set in /etc/selinux/config, systemd refuses to boot with "Failed to load SELinux policy. Freezing." Is this really what should happen? If SELINUX is set to permissive or disabled, though, systemd happily continues booting. I think that

[systemd-devel] [PATCH 1/3] cryptsetup-generator: Split main() into more functions and use hasmaps

2014-11-07 Thread Jan Janssen
--- man/systemd-cryptsetup-generator.xml | 9 +- src/cryptsetup/cryptsetup-generator.c | 380 +- 2 files changed, 199 insertions(+), 190 deletions(-) diff --git a/man/systemd-cryptsetup-generator.xml b/man/systemd-cryptsetup-generator.xml index 3abb39d..ff94e88

[systemd-devel] [PATCH 3/3] cryptsetup-generator: Add support for naming luks devices on kernel cmdline

2014-11-07 Thread Jan Janssen
--- man/kernel-command-line.xml | 2 ++ man/systemd-cryptsetup-generator.xml | 19 +++ src/cryptsetup/cryptsetup-generator.c | 32 ++-- 3 files changed, 47 insertions(+), 6 deletions(-) diff --git a/man/kernel-command-line.xml b/man/kernel-c

[systemd-devel] [PATCH 2/3] cryptsetup-generator: Add support for UUID-specific key files on kernel command line

2014-11-07 Thread Jan Janssen
--- man/systemd-cryptsetup-generator.xml | 11 --- src/cryptsetup/cryptsetup-generator.c | 17 ++--- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/man/systemd-cryptsetup-generator.xml b/man/systemd-cryptsetup-generator.xml index ff94e88..d4a9cc7 100644 --- a

Re: [systemd-devel] Udev rules hardware database

2014-11-07 Thread Lennart Poettering
On Fri, 07.11.14 09:23, Oliver Neukum (oneu...@suse.de) wrote: > > By coincidence I recently noticed something interesting in sysfs: My > > USB devices seem to have an attribute "supports_autosuspend". These > > They are from the kernel and tell you that the drivers for the devices > support auto

Re: [systemd-devel] Shutdown problems

2014-11-07 Thread Lennart Poettering
On Thu, 06.11.14 19:07, Nikolaus Rath (nikol...@rath.org) wrote: > Hello, > > I'm having some trouble shutting down my system with systemd. What > happens is the following: > > * If I execute "systemctl reboot" while a text console is active, >everything works fine. > > * If I execute "sy

Re: [systemd-devel] [PATCH] shared/install: don't report 'static' when unit contains only Also=

2014-11-07 Thread Lennart Poettering
On Fri, 07.11.14 09:49, Jan Synacek (jsyna...@redhat.com) wrote: > Lennart Poettering writes: > > On Thu, 06.11.14 10:49, Jan Synacek (jsyna...@redhat.com) wrote: > > > >> I think that this patch might be a bit ineffective, as it calls > >> unit_file_load() again just to get an InstallContext. I

Re: [systemd-devel] Udev rules hardware database

2014-11-07 Thread Oliver Neukum
On Fri, 2014-11-07 at 12:55 +0100, Lennart Poettering wrote: > On Fri, 07.11.14 09:23, Oliver Neukum (oneu...@suse.de) wrote: > > It is inconsistent. That is at least partially to the inability to find > > general rules. > > So what would you recommend we do? > > Experiment with turning auto-sus

Re: [systemd-devel] systemd user service when x is started

2014-11-07 Thread Damien Robert
> My plan is to use after X is started a second target, let's call it > wm.target, with all services relevant to the X session. For now, I > have no idea how to define After= > It can't be right after the console.target as X need to be started first. I don't understand, if you start X manually, wh

Re: [systemd-devel] [PATCH] shared/install: don't report 'static' when unit contains only Also=

2014-11-07 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Nov 07, 2014 at 01:06:41PM +0100, Lennart Poettering wrote: > On Fri, 07.11.14 09:49, Jan Synacek (jsyna...@redhat.com) wrote: > > > Lennart Poettering writes: > > > On Thu, 06.11.14 10:49, Jan Synacek (jsyna...@redhat.com) wrote: > > > > > >> I think that this patch might be a bit ineffe

[systemd-devel] Tagging NVIDIA graphics devices (with proprietary drivers) as "master-of-seat"

2014-11-07 Thread Laércio de Sousa
Hi there! For anyone interested in tagging NVIDIA graphics devices with proprietary drivers as "master-of-seat" for use with logind, I suggest the following udev rule: SUBSYSTEM=="drm", KERNEL=="card[0-9]*", ATTRS{vendor}=="0x10de", DRIVERS=="nvidia", TAG+="master-of-seat" If no /dev/dri/card* k

Re: [systemd-devel] [systemd-commits] units/basic.target units/poweroff.target units/reboot.target

2014-11-07 Thread Patrick Häcker
On Thursday, 6. November 2014, 14:28:12 Lennart Poettering wrote: > Is "unattended-upgrades" a package of its own? Yes, it's a separate package (although it's obviously closely coupled with the apt package manager). > If so, I'd probably ask the packagers to include drop-ins for > reboot.target

[systemd-devel] [PATCH] shared/install: when unit contains only Also=, report 'indirect'

2014-11-07 Thread Jan Synacek
Continuation of http://lists.freedesktop.org/archives/systemd-devel/2014-November/025041.html. Jan Synacek (1): shared/install: when unit contains only Also=, report 'indirect' man/systemctl.xml | 5 + src/shared/install.c | 45 +++--

[systemd-devel] [PATCH] shared/install: when unit contains only Also=, report 'indirect'

2014-11-07 Thread Jan Synacek
If a unit contains only Also=, with no Alias= or WantedBy=, it shouldn't be reported as static. New 'indirect' status shall be introduced. https://bugzilla.redhat.com/show_bug.cgi?id=864298 --- man/systemctl.xml | 5 + src/shared/install.c | 45 +++---

Re: [systemd-devel] [PATCH] shared/install: don't report 'static' when unit contains only Also=

2014-11-07 Thread Jan Synacek
Zbigniew Jędrzejewski-Szmek writes: > On Fri, Nov 07, 2014 at 01:06:41PM +0100, Lennart Poettering wrote: >> On Fri, 07.11.14 09:49, Jan Synacek (jsyna...@redhat.com) wrote: >> >> > Lennart Poettering writes: >> > > On Thu, 06.11.14 10:49, Jan Synacek (jsyna...@redhat.com) wrote: >> > > >> > >>

Re: [systemd-devel] [PATCH] shared/install: don't report 'static' when unit contains only Also=

2014-11-07 Thread Jan Synacek
Lennart Poettering writes: > On Fri, 07.11.14 09:49, Jan Synacek (jsyna...@redhat.com) wrote: > >> Lennart Poettering writes: >> > On Thu, 06.11.14 10:49, Jan Synacek (jsyna...@redhat.com) wrote: >> > >> >> I think that this patch might be a bit ineffective, as it calls >> >> unit_file_load() aga

Re: [systemd-devel] [systemd-commits] units/basic.target units/poweroff.target units/reboot.target

2014-11-07 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Nov 07, 2014 at 03:02:49PM +0100, Patrick Häcker wrote: > That should be possible. Currently the package contains > /lib/systemd/system/unattended-upgrades.service which contains: > > [Unit] > > Description=Unattended Upgrades > > DefaultDependencies=no > > Before=shutdown.target reboot.ta

Re: [systemd-devel] [PATCH] rules: rerun vconsole-setup when switching from vgacon to fbcon

2014-11-07 Thread Ivan Shapovalov
On Thursday 06 November 2014 at 11:02:44, David Herrmann wrote: > Hi Ray > > On Thu, Nov 6, 2014 at 10:40 AM, David Herrmann wrote: > > On Wed, Nov 5, 2014 at 4:11 PM, Ray Strode wrote: > >>> So if you have no idea how to make that rule be generated only if > >>> ENABLE_VCONSOLE is set by confi

[systemd-devel] [PATCH] inhibit: allow filtering --list by mode

2014-11-07 Thread Mantas Mikulėnas
Usually there are a few delay inhibitors all the time (NetworkManager, Telepathy, etc.), but I'm only interested in the block ones. --- src/login/inhibit.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/login/inhibit.c b/src/login/inhibit.c index d5ea1d9..122c69d 10

Re: [systemd-devel] [PATCH] shared/install: don't report 'static' when unit contains only Also=

2014-11-07 Thread Lennart Poettering
On Fri, 07.11.14 14:24, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > On Fri, Nov 07, 2014 at 01:06:41PM +0100, Lennart Poettering wrote: > > On Fri, 07.11.14 09:49, Jan Synacek (jsyna...@redhat.com) wrote: > > > > > Lennart Poettering writes: > > > > On Thu, 06.11.14 10:49, Jan Synac

Re: [systemd-devel] Tagging NVIDIA graphics devices (with proprietary drivers) as "master-of-seat"

2014-11-07 Thread Lennart Poettering
On Fri, 07.11.14 11:41, Laércio de Sousa (laercioso...@sme-mogidascruzes.sp.gov.br) wrote: > Hi there! > > For anyone interested in tagging NVIDIA graphics devices with proprietary > drivers as "master-of-seat" for use with logind, I suggest the following > udev rule: > > SUBSYSTEM=="drm", KERN

Re: [systemd-devel] [PATCH] shared/install: don't report 'static' when unit contains only Also=

2014-11-07 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Nov 07, 2014 at 03:25:11PM +0100, Jan Synacek wrote: > Zbigniew Jędrzejewski-Szmek writes: > > On Fri, Nov 07, 2014 at 01:06:41PM +0100, Lennart Poettering wrote: > >> On Fri, 07.11.14 09:49, Jan Synacek (jsyna...@redhat.com) wrote: > >> > >> > Lennart Poettering writes: > >> > > On Thu,

Re: [systemd-devel] [PATCH] inhibit: allow filtering --list by mode

2014-11-07 Thread Lennart Poettering
On Fri, 07.11.14 16:45, Mantas Mikulėnas (graw...@gmail.com) wrote: > Usually there are a few delay inhibitors all the time (NetworkManager, > Telepathy, etc.), but I'm only interested in the block ones. Applied! Thanks! Lennart -- Lennart Poettering, Red Hat __

Re: [systemd-devel] [PATCH] rules: rerun vconsole-setup when switching from vgacon to fbcon

2014-11-07 Thread Lennart Poettering
On Fri, 07.11.14 17:45, Ivan Shapovalov (intelfx...@gmail.com) wrote: > On Thursday 06 November 2014 at 11:02:44, David Herrmann wrote: > > Hi Ray > > > > On Thu, Nov 6, 2014 at 10:40 AM, David Herrmann > > wrote: > > > On Wed, Nov 5, 2014 at 4:11 PM, Ray Strode wrote: > > >>> So if you

Re: [systemd-devel] Expected behavior when systemd cannot load SELinux policy

2014-11-07 Thread Lennart Poettering
On Fri, 07.11.14 11:30, Jan Synáček (jsyna...@redhat.com) wrote: > Hello, > > currently, when SELINUX=enforcing and SELINUXTYPE= are > set in /etc/selinux/config, systemd refuses to boot with > "Failed to load SELinux policy. Freezing." > > Is this really what should happen? If SELINUX is set to

Re: [systemd-devel] [PATCH] manager: Ensure user's systemd runtime directory exists.

2014-11-07 Thread Lennart Poettering
On Fri, 07.11.14 09:38, Colin Guthrie (gm...@colin.guthr.ie) wrote: > Lennart Poettering wrote on 07/11/14 01:06: > > On Wed, 05.11.14 14:51, Colin Guthrie (gm...@colin.guthr.ie) wrote: > > > >> Colin Guthrie wrote on 03/11/14 08:02: > >>> Zbigniew Jędrzejewski-Szmek wrote on 02/11/14 18:18: > >>

Re: [systemd-devel] [PATCH] shared/install: when unit contains only Also=, report 'indirect'

2014-11-07 Thread Lennart Poettering
On Fri, 07.11.14 15:18, Jan Synacek (jsyna...@redhat.com) wrote: > } > if (!isempty(state)) > log_syntax(unit, LOG_ERR, filename, line, EINVAL, > @@ -1043,7 +1049,8 @@ static int unit_file_load( > const char *path, > const char *

Re: [systemd-devel] [PATCH] Allow PID 1 systemd --user instances to exit

2014-11-07 Thread Lennart Poettering
On Thu, 06.11.14 18:32, Michael Marineau (michael.marin...@coreos.com) wrote: > On Thu, Nov 6, 2014 at 6:02 PM, Lennart Poettering > wrote: > > On Thu, 06.11.14 17:48, Michael Marineau (michael.marin...@coreos.com) > > wrote: > > > >> > So, what's the real usecase for all of this? Can you elabor

Re: [systemd-devel] [PATCH] smack: introduce new SmackLabelExec option

2014-11-07 Thread Lennart Poettering
On Fri, 07.11.14 15:43, WaLyong Cho (walyong@samsung.com) wrote: > On 11/07/2014 09:35 AM, Lennart Poettering wrote: > > On Fri, 07.11.14 04:17, WaLyong Cho (walyong@gmail.com) wrote: > > > >> SMACK64 > >>Used to make access control decisions. In almost all cases > >>the label giv

Re: [systemd-devel] Udev rules hardware database

2014-11-07 Thread Lennart Poettering
On Fri, 07.11.14 13:07, Oliver Neukum (oneu...@suse.de) wrote: > On Fri, 2014-11-07 at 12:55 +0100, Lennart Poettering wrote: > > On Fri, 07.11.14 09:23, Oliver Neukum (oneu...@suse.de) wrote: > > > > It is inconsistent. That is at least partially to the inability to find > > > general rules. > >

Re: [systemd-devel] [PATCH] smack: introduce new SmackLabelExec option

2014-11-07 Thread Casey Schaufler
On 11/7/2014 8:36 AM, Lennart Poettering wrote: > On Fri, 07.11.14 15:43, WaLyong Cho (walyong@samsung.com) wrote: > >> On 11/07/2014 09:35 AM, Lennart Poettering wrote: >>> On Fri, 07.11.14 04:17, WaLyong Cho (walyong@gmail.com) wrote: >>> SMACK64 Used to make access control d

Re: [systemd-devel] Poor man's reboot doesn't work

2014-11-07 Thread Thomas Meyer
Am Freitag, den 07.11.2014, 01:59 +0100 schrieb Lennart Poettering: > On Sun, 02.11.14 12:48, Thomas Meyer (tho...@m3y3r.de) wrote: > > > Hi, > > > > I tried to switch to the emergency target and back to the graphical target, > > but this doesn't seem to work. > > > > Should this work, i.e.? > >

Re: [systemd-devel] user environment variables

2014-11-07 Thread arnaud gaboury
> > We could probably at least open up DefaultEnvironment= to specifier > expansion, so that %t would work the same way as in unit files. I > added a TODO list item for this now. > Thank you so much < This refers to the recent flame about systemd. As a newbie, I can testify the dev team is doi

[systemd-devel] generator logging during daemon-reload

2014-11-07 Thread Alexandre Detiste
Hi, I know that generators should log to /dev/kmsg during early boot. But, when they are restarted later by systemcl daemon-reload; is it better to write to the journal instead, by using systemd-cat for example ? Or is it racy/forbidden ? Greetings, Alexandre Detiste ___

Re: [systemd-devel] systemd user service when x is started

2014-11-07 Thread arnaud gaboury
> > I don't understand, if you start X manually, why don't you launch > systemctl --user wm.target from your .xprofile or an equivalent file? > I maybe was not explicit enough. I have a bunch of user services started as soon as I log in. --

Re: [systemd-devel] [PATCH] shared/install: when unit contains only Also=, report 'indirect'

2014-11-07 Thread Jan Synacek
Lennart Poettering writes: > On Fri, 07.11.14 15:18, Jan Synacek (jsyna...@redhat.com) wrote: > >> } >> if (!isempty(state)) >> log_syntax(unit, LOG_ERR, filename, line, EINVAL, >> @@ -1043,7 +1049,8 @@ static int unit_file_load( >> const char *p

[systemd-devel] [PATCH v2] shared/install: when unit contains only Also=, report 'indirect'

2014-11-07 Thread Jan Synacek
If a unit contains only Also=, with no Alias= or WantedBy=, it shouldn't be reported as static. New 'indirect' status shall be introduced. https://bugzilla.redhat.com/show_bug.cgi?id=864298 --- Changes in version 2 - don't pass the whole strv to the higher level calls, use bool instead man/syst

[systemd-devel] remount

2014-11-07 Thread Fisher, Charles J. (Top Echelon)
When I start a container like this: [root@limsdev ~]# systemd-nspawn -bD /home/limsbox --bind-ro=/usr/lib64 --bind-ro=/home/oracle/Ora12c/db Is there any way I can stop the container root from being able to do this?: ~ # mount -o remount,rw /usr/lib64 ___

Re: [systemd-devel] Expected behavior when systemd cannot load SELinux policy

2014-11-07 Thread Daniel J Walsh
On 11/07/2014 11:09 AM, Lennart Poettering wrote: > On Fri, 07.11.14 11:30, Jan Synáček (jsyna...@redhat.com) wrote: > >> Hello, >> >> currently, when SELINUX=enforcing and SELINUXTYPE= are >> set in /etc/selinux/config, systemd refuses to boot with >> "Failed to load SELinux policy. Freezing." >>