chiark / gitweb /
elogind.git
7 years agonspawn: use automatic cleanup for umask
Zbigniew Jędrzejewski-Szmek [Sun, 16 Sep 2012 14:14:11 +0000 (16:14 +0200)]
nspawn: use automatic cleanup for umask

7 years agonspawn: _cleanup_free_ more
Zbigniew Jędrzejewski-Szmek [Sun, 16 Sep 2012 13:21:48 +0000 (15:21 +0200)]
nspawn: _cleanup_free_ more

7 years agonspawn: use automatic cleanup
Zbigniew Jędrzejewski-Szmek [Sun, 16 Sep 2012 13:09:47 +0000 (15:09 +0200)]
nspawn: use automatic cleanup

This one actually clears up a (totally harmless) memleak.

7 years agonspawn: mount tmpfs on /dev/shm
Zbigniew Jędrzejewski-Szmek [Sun, 16 Sep 2012 12:58:51 +0000 (14:58 +0200)]
nspawn: mount tmpfs on /dev/shm

Most things seem to function fine without /dev/shm, but it is expected
to be there (quoting linux/Documentation/filesystems/tmpfs.txt:
glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for POSIX
shared memory (shm_open, shm_unlink)).

Since /tmp/ is already mounted as tmpfs, it would be enough to mkdir
/tmp/shm and chmod it. Mounting it separately has the advantage that
it can be easily remounted to change the quota.

7 years agoinstall: use automatic cleanup
Zbigniew Jędrzejewski-Szmek [Sun, 16 Sep 2012 10:55:28 +0000 (12:55 +0200)]
install: use automatic cleanup

7 years agoinstall: treat non-existent directory as empty
Zbigniew Jędrzejewski-Szmek [Sun, 16 Sep 2012 10:35:46 +0000 (12:35 +0200)]
install: treat non-existent directory as empty

When looking for symlinks, it doesn't make sense to error-out if
the directory is missing. The user might delete an empty directory.

This check caused test-unit-file to fail when run before installation.

7 years agologind: redefine idleness to start at last activity
Zbigniew Jędrzejewski-Szmek [Sun, 22 Jul 2012 13:39:37 +0000 (15:39 +0200)]
logind: redefine idleness to start at last activity

Before, after the timeout, a session would be timestamped as idle
since 'last activity' + 'idle timeout'. Now, it is timestamped as idle
since 'last activity'.

Before, after all sessions were idle, the seat would be marked with as
idle with the timestamp of the oldest idle session. Now it is
marked with the timestamp of the youngest idle session.

Both changes seem to me to be closer to natural understanding of
idleness: the time since last activity counts.

7 years agoupdate TODO
Lennart Poettering [Sat, 15 Sep 2012 05:38:38 +0000 (07:38 +0200)]
update TODO

7 years agoTODO: isolate items to fix before F18
Lennart Poettering [Sat, 15 Sep 2012 04:57:15 +0000 (06:57 +0200)]
TODO: isolate items to fix before F18

7 years agoupdate TODO
Lennart Poettering [Fri, 14 Sep 2012 18:50:24 +0000 (20:50 +0200)]
update TODO

7 years agoman: update localtime(5) a bit
Lennart Poettering [Fri, 14 Sep 2012 18:45:37 +0000 (20:45 +0200)]
man: update localtime(5) a bit

7 years agoman: mention journalctl in the systemd man page
Lennart Poettering [Fri, 14 Sep 2012 18:27:05 +0000 (20:27 +0200)]
man: mention journalctl in the systemd man page

7 years agotimedated: make /etc/timezone a Debian-only thing
Lennart Poettering [Fri, 14 Sep 2012 18:20:29 +0000 (20:20 +0200)]
timedated: make /etc/timezone a Debian-only thing

7 years agotimedate: assorted improvements
Lennart Poettering [Fri, 14 Sep 2012 18:02:52 +0000 (20:02 +0200)]
timedate: assorted improvements

- Make writing/reading of /etc/timezone dependendent of HAVE_SYSV_COMPAT

- Introduce symlink_atomic() after all, and use it

- Use relative symlink for /etc/localtime

7 years agoman: remove timezone(5) and add localtime(5)
Shawn Landden [Wed, 22 Aug 2012 06:11:27 +0000 (23:11 -0700)]
man: remove timezone(5) and add localtime(5)

7 years agotimedated: gather timezone from /etc/localtime sym target
Shawn Landden [Wed, 22 Aug 2012 06:11:26 +0000 (23:11 -0700)]
timedated: gather timezone from /etc/localtime sym target

/etc/localtime -> /usr/share/zoneinfo/...

or

/etc/localtime -> ../usr/share/zoneinfo/...

(note, ../usr is not the same if /etc is a symlink, as this isn't
using canonicalize_file_name())

keep other method for now, consider dropping later.

Supporting relative links here are problematic as timezones in
/usr/share/zoneinfo are often themselves symlinks (and symlinks to
symlinks), so this implamentation only supports absolute symlinks
"/usr/share/zoneinfo/" and relative symlinks starting with
"../usr/share/zoneinfo/"

>From TODO (kay sievers):
* kill /etc/timezone handling entirely? What does it provide?
  - /etc/localtime carries the same information already:
      $ ls -l /etc/localtime; cat /etc/timezone
      lrwxrwxrwx 1 root root 33 Jul 27 09:55 /etc/localtime -> /usr/share/zoneinfo/Europe/Berlin
      Europe/Berlin
  - systemd enforces /usr to be available at bootup, so we can
    enforce the use of the symlink

7 years agobuild-sys: Append -Werror when testing flags
Lucas De Marchi [Fri, 14 Sep 2012 14:18:41 +0000 (14:18 +0000)]
build-sys: Append -Werror when testing flags

Clang don't treat unknown warnings flags as an error, but rather as a
warning. The result is that the detection for whic CFLAGS are supported
by this compiler will not work, since the compilation will succeed.

With this patch we now successfully detect clang doesn't support
-Wlogical-op, as opposed to previous behavior:

checking if clang supports flag -Wlogical-op in envvar CFLAGS... no

We use this macro only for LDFLAGS and CFLAGS, so it's safe to stash
-Werror there.

7 years agonspawn: Fix minor typo in man page
Pierre Schmitz [Fri, 14 Sep 2012 15:19:23 +0000 (17:19 +0200)]
nspawn: Fix minor typo in man page

7 years agosystemctl: show unit name when a job fails
Lennart Poettering [Fri, 14 Sep 2012 13:11:07 +0000 (15:11 +0200)]
systemctl: show unit name when a job fails

https://bugzilla.redhat.com/show_bug.cgi?id=845028
https://bugzilla.redhat.com/show_bug.cgi?id=846483

7 years agoutil: more modernizations
Lennart Poettering [Fri, 14 Sep 2012 08:36:50 +0000 (10:36 +0200)]
util: more modernizations

7 years agoutil: various additional modernizations
Lennart Poettering [Fri, 14 Sep 2012 08:24:27 +0000 (10:24 +0200)]
util: various additional modernizations

7 years agoutil: modernize a few functions with automatic cleanup variables
Lennart Poettering [Fri, 14 Sep 2012 08:06:42 +0000 (10:06 +0200)]
util: modernize a few functions with automatic cleanup variables

Just trying to get the feel for it. And it's pretty cool.

7 years agotest: split of cryptsetup into its own test
Lennart Poettering [Thu, 13 Sep 2012 21:19:05 +0000 (23:19 +0200)]
test: split of cryptsetup into its own test

7 years agosystemctl: minor coding style fixes
Lennart Poettering [Thu, 13 Sep 2012 20:42:22 +0000 (22:42 +0200)]
systemctl: minor coding style fixes

7 years agoinstall: append .service when enable/disable... is called
Václav Pavlín [Thu, 13 Sep 2012 20:35:18 +0000 (22:35 +0200)]
install: append .service when enable/disable... is called

https://bugzilla.redhat.com/show_bug.cgi?id=856975

7 years agomacro: introduce _cleanup_free_ macro for automatic freeing of scoped vars and make...
Lennart Poettering [Thu, 13 Sep 2012 20:30:26 +0000 (22:30 +0200)]
macro: introduce _cleanup_free_ macro for automatic freeing of scoped vars and make use of it

7 years agorpm: expose preset dir as rpm macro and in systemd.pc
Lennart Poettering [Thu, 13 Sep 2012 20:17:46 +0000 (22:17 +0200)]
rpm: expose preset dir as rpm macro and in systemd.pc

7 years agoload-fragment: Expand specifiers in conditions.
Auke Kok [Thu, 13 Sep 2012 19:34:25 +0000 (12:34 -0700)]
load-fragment: Expand specifiers in conditions.

Add specifier expansion to Path and String conditions.

Specifier expansion for conditions will help create instance
and user session units by allowing us to template conditions
based on the instance or user session parameters.

An example would be a system-wide user session service file
that conditionally runs based on whether a user has the
service configured through a configuration file in ~/.config/.

7 years agodaemon: Fix broken links to sd-daemon.c
Eelco Dolstra [Thu, 13 Sep 2012 17:44:47 +0000 (13:44 -0400)]
daemon: Fix broken links to sd-daemon.c

7 years agoman: reword logind.conf.xml a bit
Lennart Poettering [Thu, 13 Sep 2012 17:40:19 +0000 (19:40 +0200)]
man: reword logind.conf.xml a bit

7 years agodocs: typo fixes in pam_systemd.xml
Thomas Hindoe Paaboel Andersen [Tue, 11 Sep 2012 20:53:48 +0000 (22:53 +0200)]
docs: typo fixes in pam_systemd.xml

https://bugs.freedesktop.org/show_bug.cgi?id=54501

7 years agodocs: typo fixes in logind.conf.xml and os-release.xml
Thomas Hindoe Paaboel Andersen [Mon, 10 Sep 2012 17:41:37 +0000 (19:41 +0200)]
docs: typo fixes in logind.conf.xml and os-release.xml

https://bugs.freedesktop.org/show_bug.cgi?id=54501

7 years agoman: fix typos in halt.xml and journalctl.xml
Thomas Hindoe Paaboel Andersen [Wed, 5 Sep 2012 21:08:06 +0000 (23:08 +0200)]
man: fix typos in halt.xml and journalctl.xml

https://bugs.freedesktop.org/show_bug.cgi?id=54501

7 years agoman: fix a bunch of typos in docs
Thomas Hindoe Paaboel Andersen [Tue, 4 Sep 2012 17:24:16 +0000 (19:24 +0200)]
man: fix a bunch of typos in docs

https://bugs.freedesktop.org/show_bug.cgi?id=54501

7 years agopython: make gcc shut up
Lennart Poettering [Thu, 13 Sep 2012 17:34:09 +0000 (19:34 +0200)]
python: make gcc shut up

7 years agomanager: fix the build
Lennart Poettering [Thu, 13 Sep 2012 17:29:46 +0000 (19:29 +0200)]
manager: fix the build

7 years agomanager: extend performance measurement interface to include firmware/loader times
Lennart Poettering [Thu, 13 Sep 2012 16:54:32 +0000 (18:54 +0200)]
manager: extend performance measurement interface to include firmware/loader times

This only adds the fields to the D-Bus interfaces but doesn't fill them
in with anything useful yet. Gummiboot exposes the necessary bits of
information to use however and as soon as I get my fingers on a proper
UEFI laptop I'll hook up the remaining bits.

Since we want to stabilize the D-Bus interface soon and include it in
the stability promise we should get the last fixes in, hence this change
now.

7 years agojournal: fix 128bit IDs of unit reload entries
Lennart Poettering [Thu, 13 Sep 2012 16:22:17 +0000 (18:22 +0200)]
journal: fix 128bit IDs of unit reload entries

7 years agoupdate-utmp: Don't error out on runlevel updates if utmp doesn't exist
Colin Walters [Thu, 13 Sep 2012 14:51:30 +0000 (10:51 -0400)]
update-utmp: Don't error out on runlevel updates if utmp doesn't exist

Other parts of the code handle utmp not existing, so let's be
consistent.  At the moment my GNOME-OSTree builds don't have utmp.

7 years agoupdate TODO
Lennart Poettering [Thu, 13 Sep 2012 15:11:10 +0000 (17:11 +0200)]
update TODO

7 years agojournal: never assert directly on data read from the journal
Lennart Poettering [Thu, 13 Sep 2012 15:10:46 +0000 (17:10 +0200)]
journal: never assert directly on data read from the journal

7 years agojournald: don't reposition window if we don't have to
Lennart Poettering [Thu, 13 Sep 2012 15:06:04 +0000 (17:06 +0200)]
journald: don't reposition window if we don't have to

7 years agopython: fix error handling, and allocate argument array on the stack
Lennart Poettering [Thu, 13 Sep 2012 02:25:59 +0000 (04:25 +0200)]
python: fix error handling, and allocate argument array on the stack

7 years agopython: reindent to follow coding style
Lennart Poettering [Thu, 13 Sep 2012 02:16:10 +0000 (04:16 +0200)]
python: reindent to follow coding style

7 years agopython: change license to LGPL 2.1
Lennart Poettering [Thu, 13 Sep 2012 02:05:28 +0000 (04:05 +0200)]
python: change license to LGPL 2.1

The original license has been MIT for this code, but David Strauss (its
original author) agreed to relicense it to LGPL 2.1 for inclusion in
systemd.

7 years agopython: integrate David Strauss' python-systemd package
Lennart Poettering [Thu, 13 Sep 2012 02:01:18 +0000 (04:01 +0200)]
python: integrate David Strauss' python-systemd package

7 years agotmpfiles: plug file descriptor leak.
Dave Reisner [Wed, 12 Sep 2012 20:21:00 +0000 (16:21 -0400)]
tmpfiles: plug file descriptor leak.

Introduced in d4e9eb91.

7 years agoreadahead: use 20K instead of 16K as temporary request nr bump
Lennart Poettering [Wed, 12 Sep 2012 22:06:30 +0000 (00:06 +0200)]
readahead: use 20K instead of 16K as temporary request nr bump

7 years agoupdate TODO
Kay Sievers [Wed, 12 Sep 2012 19:28:52 +0000 (21:28 +0200)]
update TODO

7 years agoupdate TODO
Kay Sievers [Wed, 12 Sep 2012 19:07:26 +0000 (21:07 +0200)]
update TODO

7 years agojournalctl: print QR code only if we are running on an UTF-8 system
Lennart Poettering [Wed, 12 Sep 2012 07:23:38 +0000 (09:23 +0200)]
journalctl: print QR code only if we are running on an UTF-8 system

7 years agosystemctl: direct the user to list-unit-files from the list-units output
Lennart Poettering [Wed, 12 Sep 2012 06:56:57 +0000 (08:56 +0200)]
systemctl: direct the user to list-unit-files from the list-units output

7 years agotmpfiles: support globbing for w option
Dave Reisner [Mon, 3 Sep 2012 21:13:18 +0000 (17:13 -0400)]
tmpfiles: support globbing for w option

Break out the write logic into a separate function and simply use it as
a callback to glob_item.

This allows users to consolidate writes to sysfs with multiple similar
pathnames, e.g.

  w /sys/class/block/sd[a-z]/queue/read_ahead_kb - - - - 1024

7 years agotest: extend unit-name test a bit
Lennart Poettering [Wed, 12 Sep 2012 06:31:08 +0000 (08:31 +0200)]
test: extend unit-name test a bit

7 years agologin: reshuffle meaning of require_active parameter
Lennart Poettering [Wed, 12 Sep 2012 06:30:35 +0000 (08:30 +0200)]
login: reshuffle meaning of require_active parameter

7 years agologind: Avoid unnecesary rewrite of user file when switching sessions of the same...
Colin Guthrie [Tue, 4 Sep 2012 00:37:28 +0000 (01:37 +0100)]
logind: Avoid unnecesary rewrite of user file when switching sessions of the same user.

7 years agologind: Ensure the user, seat and session files are updated when the session is closing.
Colin Guthrie [Tue, 4 Sep 2012 00:37:27 +0000 (01:37 +0100)]
logind: Ensure the user, seat and session files are updated when the session is closing.

7 years agologind: Add a two new variables to the user session tracking file.
Colin Guthrie [Mon, 3 Sep 2012 22:57:58 +0000 (23:57 +0100)]
logind: Add a two new variables to the user session tracking file.

This counts 'online sessions' in addition to 'active sessions' and 'sessions'.

In this context, an 'online session' covers all session in the 'active' state
in addition to the explicit 'online' state.

This provides an easy machanism to determin all relevant sessions easily
(i.e. those that are not 'closing') and adds new semantics to the sd-login.c
APIs sd_uid_get_sessions() and sd_uid_get_seats() where the require_active
argument can be supplied as a value 2 which only lists sessions which are
'online'.

This functionality should allow client applications to avoid deadlocks where
they only exit when all sessions are complete, such as a the problem where
PulseAudio will not exit until all sessions are gone, but in itself prevents
the session from exiting.

7 years agologind: Properly list the ACTIVE_SEATS in the user session tracking file.
Colin Guthrie [Mon, 3 Sep 2012 22:47:02 +0000 (23:47 +0100)]
logind: Properly list the ACTIVE_SEATS in the user session tracking file.

Prevsiouly the first active seat for a user would never be listed and
any subsequent seats would be concatenated on without any spaces.

7 years agologind: If all user sessions are in closing state, set the overall status to closing.
Colin Guthrie [Mon, 3 Sep 2012 22:47:01 +0000 (23:47 +0100)]
logind: If all user sessions are in closing state, set the overall status to closing.

PulseAudio for example will keep a client connection open provided
at least one session exists. However, if all sessions are currently
in the process of closing, we should flag that as the overall state
appropriately to better reflect what is happening.

Although this does better reflect the status for any given user, it does
not actually solve the overall problem of PulseAudio still finding some
sessions active and thus not exiting and therefore actually preventing
the session from closing. Future commits will extend sd-login to cope
with this situation.

7 years agopam: Add session class to the debug log.
Colin Guthrie [Mon, 3 Sep 2012 22:47:00 +0000 (23:47 +0100)]
pam: Add session class to the debug log.

7 years agounit-name: rework unit_name_replace_instance function()
Lennart Poettering [Wed, 12 Sep 2012 02:46:38 +0000 (04:46 +0200)]
unit-name: rework unit_name_replace_instance function()

https://bugzilla.redhat.com/show_bug.cgi?id=855863

7 years agojournal: don't set seal flag if we don't have gcrypt built-in
Lennart Poettering [Tue, 11 Sep 2012 01:03:36 +0000 (03:03 +0200)]
journal: don't set seal flag if we don't have gcrypt built-in

7 years agojournal: don't try to compress without XZ
Michael Olbrich [Mon, 3 Sep 2012 13:46:44 +0000 (15:46 +0200)]
journal: don't try to compress without XZ

otherwise the header contains the HEADER_INCOMPATIBLE_COMPRESSED
flag even though the data is not compressed and reading the journal
fails.

7 years agoutil: rm_rf_children_dangerous: delete all descendants dangerously
Tom Gundersen [Mon, 3 Sep 2012 13:40:37 +0000 (15:40 +0200)]
util: rm_rf_children_dangerous: delete all descendants dangerously

Call rm_rf_children_dangerous() recursively rather than falling back to
rm_rf_children(). This fixes a bug in systemd-tmpfiles.

The problem can easily be reproduced by:

  # mount /dev/sda1 /mnt
  # mkdir /mnt/test
  # echo "D /mnt" > /root/test.conf
  # systemd-tmpfiles --remove /root/test.conf
  Attempted to remove disk file system, and we can't allow that.
  rm_rf(/root/test): Operation not permitted

Reported-by: Lukas Jirkovsky <l.jirkovsky@gmail.com>
7 years agoupdate TODO
Lennart Poettering [Mon, 10 Sep 2012 23:45:27 +0000 (01:45 +0200)]
update TODO

7 years agobuild-sys: perform autodetection of quota-tools binaries
Dave Reisner [Sun, 2 Sep 2012 21:28:30 +0000 (17:28 -0400)]
build-sys: perform autodetection of quota-tools binaries

Use AC_PATH_PROG to try and locate the quotaon and quotacheck binaries,
falling back on hardcoded defaults when they can't be found.

7 years agocondition: add ConditionFileNotEmpty=
Lennart Poettering [Mon, 10 Sep 2012 23:29:46 +0000 (01:29 +0200)]
condition: add ConditionFileNotEmpty=

https://bugs.freedesktop.org/show_bug.cgi?id=54448

7 years agowhen determining unit file list, include invalid unit names in an "invalid" state
Lennart Poettering [Mon, 10 Sep 2012 23:11:32 +0000 (01:11 +0200)]
when determining unit file list, include invalid unit names in an "invalid" state

7 years agoupdate TODO
Lennart Poettering [Mon, 10 Sep 2012 22:23:05 +0000 (00:23 +0200)]
update TODO

7 years agoupdate TODO
Lennart Poettering [Mon, 10 Sep 2012 20:45:20 +0000 (22:45 +0200)]
update TODO

7 years agoman: document that assignemnts of devices to seats are persistent
Lennart Poettering [Mon, 10 Sep 2012 11:20:45 +0000 (13:20 +0200)]
man: document that assignemnts of devices to seats are persistent

7 years agojournald: don't do debug logging by default
Lennart Poettering [Mon, 10 Sep 2012 11:18:39 +0000 (13:18 +0200)]
journald: don't do debug logging by default

7 years agojournald: don't complain if fss key does not exist
Lennart Poettering [Mon, 10 Sep 2012 11:18:22 +0000 (13:18 +0200)]
journald: don't complain if fss key does not exist

7 years agoselinux: close stdin/stdout/stderr before loading selinux policy
Lennart Poettering [Mon, 10 Sep 2012 11:14:56 +0000 (13:14 +0200)]
selinux: close stdin/stdout/stderr before loading selinux policy

Let's make sure libselinux doesn't spew to stderr

7 years agojournald: detect invalid header pointers correctly
Lennart Poettering [Mon, 10 Sep 2012 09:58:00 +0000 (11:58 +0200)]
journald: detect invalid header pointers correctly

7 years agounit: don't allow units to be gc'ed that still are referenced via UnitRef
Lennart Poettering [Mon, 10 Sep 2012 08:12:10 +0000 (10:12 +0200)]
unit: don't allow units to be gc'ed that still are referenced via UnitRef

7 years agoinhibit: close all fds when invoking inhibited tool
Lennart Poettering [Mon, 10 Sep 2012 07:45:55 +0000 (09:45 +0200)]
inhibit: close all fds when invoking inhibited tool

7 years agodbus: minor coding style fixes
Lennart Poettering [Mon, 10 Sep 2012 07:38:49 +0000 (09:38 +0200)]
dbus: minor coding style fixes

7 years agoMake systemd-inhibit --list work
Matthias Clasen [Sat, 8 Sep 2012 02:56:35 +0000 (22:56 -0400)]
Make systemd-inhibit --list work

The code in the print_inhibitors function had an unintended
unconditional early exit, causing it to never print any
inhibitors.

7 years agobuild-sys: add libsystemd-id128-internal.la as dep to libsystemd-core.la
Lennart Poettering [Mon, 10 Sep 2012 07:28:42 +0000 (09:28 +0200)]
build-sys: add libsystemd-id128-internal.la as dep to libsystemd-core.la

condition.c makes use of sd_id128_get_machine() after all.

Spotted by Khem Raj.

7 years agopath-util: fall back to stat() if kernel does not support name_to_handle_at()
Mantas Mikulėnas [Sun, 9 Sep 2012 12:16:19 +0000 (15:16 +0300)]
path-util: fall back to stat() if kernel does not support name_to_handle_at()

Fixes instant hang on kernels that do not have CONFIG_FHANDLE enabled.

7 years agopath-util: do not fail in path_is_mountpoint() if path doesn't exist
Mantas Mikulėnas [Sun, 9 Sep 2012 12:16:18 +0000 (15:16 +0300)]
path-util: do not fail in path_is_mountpoint() if path doesn't exist

This was accidentally lost in commit 1640a0b6b05b.

7 years agojournald: make splitting up of journal files per-user configurable
Lennart Poettering [Fri, 7 Sep 2012 21:40:00 +0000 (23:40 +0200)]
journald: make splitting up of journal files per-user configurable

7 years agojournal: add call to determine current journal file disk usage
Lennart Poettering [Fri, 7 Sep 2012 21:20:28 +0000 (23:20 +0200)]
journal: add call to determine current journal file disk usage

7 years agomain: fix syntax of net_prio cgroup controller
Lennart Poettering [Fri, 7 Sep 2012 20:22:15 +0000 (22:22 +0200)]
main: fix syntax of net_prio cgroup controller

7 years agojournald: avoid logging to kmsg in the normal paths
Lennart Poettering [Thu, 6 Sep 2012 07:32:51 +0000 (00:32 -0700)]
journald: avoid logging to kmsg in the normal paths

7 years agolocaled: system-setup-keyboard is no more on fedora
Lennart Poettering [Thu, 6 Sep 2012 06:54:09 +0000 (23:54 -0700)]
localed: system-setup-keyboard is no more on fedora

7 years agoman: document that ExecStart= doesn't understand shell command lines
Lennart Poettering [Thu, 6 Sep 2012 06:51:19 +0000 (23:51 -0700)]
man: document that ExecStart= doesn't understand shell command lines

7 years agotmpfiles: don't attempt creation of device nodes when we run in a container
Lennart Poettering [Thu, 6 Sep 2012 06:39:55 +0000 (23:39 -0700)]
tmpfiles: don't attempt creation of device nodes when we run in a container

7 years agosystemctl: properly build flags for show_journal_by_unit()
Lennart Poettering [Thu, 6 Sep 2012 00:05:04 +0000 (17:05 -0700)]
systemctl: properly build flags for show_journal_by_unit()

7 years agojournalctl: show "Reboot" markers in output only when showing local-only entries
Lennart Poettering [Wed, 5 Sep 2012 23:52:46 +0000 (16:52 -0700)]
journalctl: show "Reboot" markers in output only when showing local-only entries

7 years agojournalctl: replace --local by --merge, i.e. don't interleave remote journals by...
Lennart Poettering [Wed, 5 Sep 2012 23:49:00 +0000 (16:49 -0700)]
journalctl: replace --local by --merge, i.e. don't interleave remote journals by default

7 years agonspawn: handle poweroff/reboot nicely in containers
Lennart Poettering [Wed, 5 Sep 2012 23:23:41 +0000 (16:23 -0700)]
nspawn: handle poweroff/reboot nicely in containers

7 years agoshutdown: in containers, invoke reboot(2), too. Then fallback to exit() if CAP_SYS_BO...
Lennart Poettering [Wed, 5 Sep 2012 22:37:18 +0000 (15:37 -0700)]
shutdown: in containers, invoke reboot(2), too. Then fallback to exit() if CAP_SYS_BOOT is missing

The kernel's PID namespaces support reboot(2) just fine, so let's make
use of it if possible.

7 years agoshutdown: remove explicit sync() invocations
Lennart Poettering [Wed, 5 Sep 2012 22:32:57 +0000 (15:32 -0700)]
shutdown: remove explicit sync() invocations

The kernel implicitly does sync() anyway, hence there is no need to do
that in userspace explicitly. This makes the "-n" switch to halt(8) a
noop.

7 years agonspawn: don't provide /dev/rtc0 in the container
Lennart Poettering [Wed, 5 Sep 2012 22:27:07 +0000 (15:27 -0700)]
nspawn: don't provide /dev/rtc0 in the container

Since RTCs are hardware devices and are very much shared resources we
should avoid to provide them in each container.

7 years agojournalctl: rework JSON output mode
Lennart Poettering [Wed, 5 Sep 2012 22:25:32 +0000 (15:25 -0700)]
journalctl: rework JSON output mode

This splits the JSON output mode into different modes: json and
json-pretty. The former printing one entry per line, the latter showing
JSON objects nicely indented and in multiple lines to make it easier to
read for humans.

7 years agonspawn: generate a new randomized boot ID for each container
Lennart Poettering [Wed, 5 Sep 2012 21:39:16 +0000 (14:39 -0700)]
nspawn: generate a new randomized boot ID for each container

7 years agonspawn: if a file system comes pre-mounted, still do the read-only remounts
Lennart Poettering [Wed, 5 Sep 2012 21:16:41 +0000 (14:16 -0700)]
nspawn: if a file system comes pre-mounted, still do the read-only remounts