[systemd-devel] [PATCH] Updates in bash autocompletions

2015-01-09 Thread Carlos Morata Castillo
Hi, I did ./check-undocumented.sh -b (my script just submitted) and checked the results. Cheers. --- shell-completion/bash/coredumpctl | 2 +- shell-completion/bash/hostnamectl | 2 +- shell-completion/bash/journalctl | 11 ++- shell-completion/bash/localectl | 2 +

[systemd-devel] Autocompletion by default in containers and typo on systemctl.in

2015-01-09 Thread Carlos Morata Castillo
Hi, 1- It'll be nice if when you "nspawn" a container it'll have autocompletion enabled by default. Just need to execute this line: . /usr/share/bash-completion/bash_completion 2- Rename shell-completion/bash/systemctl.in to systemctl in repo and update Makefile.am properly. (This file is /usr/

Re: [systemd-devel] Second (erroneous) check of rootfs?

2015-01-09 Thread Chris Murphy
On Fri, Jan 9, 2015 at 3:27 AM, Mantas Mikulėnas wrote: > I might be missing something, but what's wrong with the existing "root=... > rootfstype=... rootflags=... rw" options? Why is the remount even necessary? Seems to be distro specific. I see rw for opensuse or Ubuntu, and ro for Fedora. Th

[systemd-devel] [TOOL] Check-undocumented arguments and bash autocompletions

2015-01-09 Thread Carlos Morata Castillo
Hi, I've been working in this tool today for the tools dir: ./check-undocumented.sh -m #Uncompleted MANPAGES # #

Re: [systemd-devel] Questions regarding dbus started via systemd --user

2015-01-09 Thread Cameron Norman
On Fri, Jan 9, 2015 at 2:18 AM, Colin Guthrie wrote: > Cameron Norman wrote on 09/01/15 02:24: >> On Thu, Jan 8, 2015 at 9:42 AM, Dimitri John Ledkov >> wrote: >>> On 8 January 2015 at 17:24, Simon McVittie >>> wrote: On 08/01/15 16:03, Dimitri John Ledkov wrote: * I'm in an X11 sessio

Re: [systemd-devel] Questions regarding dbus started via systemd --user

2015-01-09 Thread Tomasz Torcz
On Fri, Jan 09, 2015 at 09:56:27AM +, Colin Guthrie wrote: > You don't really need to use abstract sockets here, you can use known > socket paths in $XDG_RUNTIME_DIR these days as we can rely on it. > > As pam_systemd will set XDG_RUNTIME_DIR to /run/user/$UID/ we can easily > just mandate tha

Re: [systemd-devel] [PATCH] Add detect_userns to detect uid/gid shifts (V2)

2015-01-09 Thread Stéphane Graber
On Fri, Jan 09, 2015 at 11:08:26AM +0100, David Herrmann wrote: > Hi > > On Fri, Jan 9, 2015 at 12:07 AM, Stéphane Graber wrote: > > This adds a new detect_userns function in virt.c which will check > > whether systemd is running in the host user namespace (single map of all > > available uids an

Re: [systemd-devel] [PATCH 1/2] Add detect_userns to detect uid/gid shifts

2015-01-09 Thread Lennart Poettering
On Fri, 09.01.15 01:16, Tom Gundersen (t...@jklm.no) wrote: > On Fri, Jan 9, 2015 at 12:55 AM, Stéphane Graber wrote: > > I expect we'll run into some more problems when dealing with units that > > start with their own view of /dev since mknod in a userns isn't allowed > > but I haven't run into

Re: [systemd-devel] [PATCH 1/2] Add detect_userns to detect uid/gid shifts

2015-01-09 Thread Lennart Poettering
On Thu, 08.01.15 18:55, Stéphane Graber (stgra...@ubuntu.com) wrote: > On Fri, Jan 09, 2015 at 12:39:23AM +0100, Lennart Poettering wrote: > > On Thu, 08.01.15 15:33, Stéphane Graber (stgra...@ubuntu.com) wrote: > > > > > As far as I know there's no obvious way to detect this case (well, > > > sh

Re: [systemd-devel] Long waiting for swap device

2015-01-09 Thread Nikolai Zhubr
Hi, 09.01.2015 15:23, Peter Mattern: Similar findings can result from running systemd ≥ 209 on a kernel compiled without CONFIG_FHANDLE. You may want to check this on your system. I now tend to think the reason was different, but still I'll also try your suggestion as well (and then report my

Re: [systemd-devel] Long waiting for swap device

2015-01-09 Thread Peter Mattern
Similar findings can result from running systemd ≥ 209 on a kernel compiled without CONFIG_FHANDLE. You may want to check this on your system. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listin

Re: [systemd-devel] Questions regarding dbus started via systemd --user

2015-01-09 Thread Colin Guthrie
Mantas Mikulėnas wrote on 09/01/15 10:31: > > I guess you could use KillMode= for this? I don't think so. This would mean the unit would still be alive even although the main process died and when I next tried to open a gnome-terminal, it would try and speak to the dbus service again and then dbu

Re: [systemd-devel] Questions regarding dbus started via systemd --user

2015-01-09 Thread Mantas Mikulėnas
I guess you could use KillMode= for this? Or, actually, dbus.service doesn't stop on logout, does it?... For tmux, I have a tmux.service that runs: ExecStart=/usr/bin/tmux start-server \x3B wait-for systemd ExecStop=/usr/bin/tmux wait-for -S systemd \x3B kill-server screen has no equivalent th

Re: [systemd-devel] Second (erroneous) check of rootfs?

2015-01-09 Thread Mantas Mikulėnas
On Fri, Jan 9, 2015, 11:43 Nikolai Zhubr wrote: Hi all, 08.01.2015 23:32, Harald Hoyer: [...] >> Yes, I was about to suggest the same at the end. Where I fill uneasy is >> hardcoding /dev/root inside of systemd-fsck. In case of dracut this is >> basically the only thing that we know for sure. Doe

Re: [systemd-devel] Questions regarding dbus started via systemd --user

2015-01-09 Thread Colin Guthrie
Colin Guthrie wrote on 08/01/15 11:55: > I "solved" this by adding a user unit for gnome-termnial-server and > making dbus use systemd activation for it, but that just moves it to a > different cgroup. I guess it's OK like this. Just as a minor curiosity related to this bit... I discovered today

Re: [systemd-devel] Questions regarding dbus started via systemd --user

2015-01-09 Thread Colin Guthrie
Cameron Norman wrote on 09/01/15 02:24: > On Thu, Jan 8, 2015 at 9:42 AM, Dimitri John Ledkov > wrote: >> On 8 January 2015 at 17:24, Simon McVittie >> wrote: >>> On 08/01/15 16:03, Dimitri John Ledkov wrote: >>> * I'm in an X11 session and my GUI locks up. I use Ctrl+Alt+F1 >>> and log in at t

Re: [systemd-devel] [PATCH] Add detect_userns to detect uid/gid shifts (V2)

2015-01-09 Thread David Herrmann
Hi On Fri, Jan 9, 2015 at 12:07 AM, Stéphane Graber wrote: > This adds a new detect_userns function in virt.c which will check > whether systemd is running in the host user namespace (single map of all > available uids and gids) or is using a uid/gid map. > > The check makes sure that uid_map and

Re: [systemd-devel] Questions regarding dbus started via systemd --user

2015-01-09 Thread Colin Guthrie
Dimitri John Ledkov wrote on 08/01/15 17:48: > On 8 January 2015 at 17:15, Andrei Borzenkov wrote: >> В Thu, 8 Jan 2015 16:03:43 + >> Dimitri John Ledkov пишет: >> >>> On 8 January 2015 at 15:37, Simon McVittie >>> wrote: On 08/01/15 14:36, Colin Guthrie wrote: > Lennart Poettering

Re: [systemd-devel] Second (erroneous) check of rootfs?

2015-01-09 Thread Nikolai Zhubr
Hi all, 08.01.2015 23:32, Harald Hoyer: [...] Yes, I was about to suggest the same at the end. Where I fill uneasy is hardcoding /dev/root inside of systemd-fsck. In case of dracut this is basically the only thing that we know for sure. Does every initrd implementation use it? Alternative is to