chiark / gitweb /
elogind.git
11 years agoutil: split resolving of /dev/console into a new function
Michal Schmidt [Thu, 28 Feb 2013 00:30:38 +0000 (01:30 +0100)]
util: split resolving of /dev/console into a new function

11 years agocore/unit: use a temp variable for manager pointer in unit_notify()
Michal Schmidt [Wed, 27 Feb 2013 22:58:10 +0000 (23:58 +0100)]
core/unit: use a temp variable for manager pointer in unit_notify()

11 years agoutil, core: add support for ephemeral status lines
Michal Schmidt [Wed, 27 Feb 2013 21:52:43 +0000 (22:52 +0100)]
util, core: add support for ephemeral status lines

Ephemeral status lines do not end with a newline and they expect to be
overwritten by the next printed status line.

11 years agocore/transaction: replace a bare status_printf()
Michal Schmidt [Wed, 27 Feb 2013 22:31:35 +0000 (23:31 +0100)]
core/transaction: replace a bare status_printf()

Like other status messages, this one too should not be printed
unconditionally, but it should take the manager state into account.
unit_status_printf() does that.

11 years agocore: redefine unit_status_printf()
Michal Schmidt [Wed, 27 Feb 2013 21:54:14 +0000 (22:54 +0100)]
core: redefine unit_status_printf()

Take advantage of the fact that almost all callers want to pass unit
description as the last parameter. Those who don't can use the more
flexible manager_status_printf().

11 years agocore/manager: make a couple of functions static
Michal Schmidt [Wed, 27 Feb 2013 23:14:47 +0000 (00:14 +0100)]
core/manager: make a couple of functions static

They're not used outside manager.c anymore.

11 years agocore: add manager_status_printf()
Michal Schmidt [Wed, 27 Feb 2013 23:14:40 +0000 (00:14 +0100)]
core: add manager_status_printf()

unit_status_printf() checks the state of the manager, not of the unit
as such. Move it to manager.c and rename it to manager_status_printf().

Temporarily keep unit_status_printf as a wrapper macro.

11 years agocore: keep track of the number of JOB_RUNNING jobs
Michal Schmidt [Tue, 26 Feb 2013 11:09:41 +0000 (12:09 +0100)]
core: keep track of the number of JOB_RUNNING jobs

11 years agoman: document the new systemctl cgroup commands
Lennart Poettering [Wed, 27 Feb 2013 18:37:04 +0000 (19:37 +0100)]
man: document the new systemctl cgroup commands

11 years agosystemctl: fix minimal number of params for new cgroup commands
Lennart Poettering [Wed, 27 Feb 2013 17:58:56 +0000 (18:58 +0100)]
systemctl: fix minimal number of params for new cgroup commands

11 years agoupdate TODO
Lennart Poettering [Wed, 27 Feb 2013 17:56:25 +0000 (18:56 +0100)]
update TODO

11 years agounit: rework resource management API
Lennart Poettering [Wed, 27 Feb 2013 17:50:41 +0000 (18:50 +0100)]
unit: rework resource management API

This introduces a new static list of known attributes and their special
semantics. This means that cgroup attribute values can now be
automatically translated from user to kernel notation for command line
set settings, too.

This also adds proper support for multi-line attributes.

11 years agosystemctl: fix indentation
Lennart Poettering [Wed, 27 Feb 2013 14:01:06 +0000 (15:01 +0100)]
systemctl: fix indentation

11 years agoupdate TODO
Lennart Poettering [Wed, 27 Feb 2013 14:00:38 +0000 (15:00 +0100)]
update TODO

11 years agoman: clarify how to configure default control group hierarchies for services and...
Lennart Poettering [Wed, 27 Feb 2013 14:00:26 +0000 (15:00 +0100)]
man: clarify how to configure default control group hierarchies for services and sessions

11 years agoRevert "log: fix fallbacks to kmsg"
Lennart Poettering [Wed, 27 Feb 2013 13:33:50 +0000 (14:33 +0100)]
Revert "log: fix fallbacks to kmsg"

This reverts commit 4a01181e460686d8b4a543b1dfa7f77c9e3c5ab8.

This patch broke LOG_TARGET_AUTO, i.e. automatic selection of STDERR if
it is a TTY with a fallback on the journal and kmsg otherwise.

The general rule should probably be:

log_open() -- open the "best" possible logging channel according to
log_target configuration.

log_dispatch() -- don't open any log channels ever, with the exception
of kmsg since that has no drawbacks. And do this only on true errors of
the better log channel, not just when it wasn't opened.

11 years agomount-setup: mount pstore filesystem
Kay Sievers [Wed, 27 Feb 2013 12:07:09 +0000 (13:07 +0100)]
mount-setup: mount pstore filesystem

11 years agolog-show: look at everything in /run/log/journal
Zbigniew Jędrzejewski-Szmek [Mon, 25 Feb 2013 04:51:41 +0000 (05:51 +0100)]
log-show: look at everything in /run/log/journal

Logs written by journald from the initramfs may be written to a
directory with the name created from a random machine-id. Afterwards,
when the root filesystem has been mounted and machine-id reinitalized,
logs will be written to the directory with a name created from the
proper machine-id. When logs are flushed to /var/log/journal,
everything is copied to one output directory.

When journalctl without '-m' is run after the logs have been flushed
to /var/log/journal, all messages are shown. However, when run while
logs are still in /run/log/journal, those stored under the random
machine-id will not be shown.

Make journalctl behave the same regardless whether persistent storage
has been enabled or not, and slurp all files from /run/log/journal
even without '-m'.

11 years agobash-completion: journalctl query by binary and device
Zbigniew Jędrzejewski-Szmek [Mon, 25 Feb 2013 14:24:10 +0000 (15:24 +0100)]
bash-completion: journalctl query by binary and device

The approach taken is different between the two:
- since there are many files in /usr, but messages appear
  only for a tiny subset, the completion is performed
  only for stuff shown by journalctl -F _EXE. This makes
  sense because the list is already in proper form.
- since it is hard to convert _KERNEL_DEVICE to device
  file name, simply all files in /dev/ are used as possible
  completions.

Unfortunately zsh completion requires more work and is not
covered by this commit.

11 years agoupdate TODO, hackfest edition
Lennart Poettering [Wed, 27 Feb 2013 01:24:10 +0000 (02:24 +0100)]
update TODO, hackfest edition

11 years agotest-util.c: added hexchar, unhexchar, octchar, unoctchar, decchar, undecchar tests
Daniel Buch [Tue, 26 Feb 2013 13:24:12 +0000 (14:24 +0100)]
test-util.c: added hexchar, unhexchar, octchar, unoctchar, decchar, undecchar tests

11 years agoTODO: update
Kay Sievers [Tue, 26 Feb 2013 15:17:54 +0000 (16:17 +0100)]
TODO: update

11 years agokernel-install: rename the loader entry filename
Harald Hoyer [Tue, 26 Feb 2013 13:58:38 +0000 (14:58 +0100)]
kernel-install: rename the loader entry filename

The wildcard matching the default loader entry should always be able to point to
the same machine.

So instead of sorting by <distribution>-<kernel-version>-<machine-id>
we better sort by <machine-id>-<kernel-version>.

11 years agokernel-install: create the loader entries with absolute paths relative to /boot
Harald Hoyer [Tue, 26 Feb 2013 09:56:07 +0000 (10:56 +0100)]
kernel-install: create the loader entries with absolute paths relative to /boot

11 years agokernel-install: replace URLs with man pages in the error messages
Harald Hoyer [Tue, 26 Feb 2013 07:56:45 +0000 (08:56 +0100)]
kernel-install: replace URLs with man pages in the error messages

11 years agokernel-install: fixed paths in boot loader entry
Harald Hoyer [Tue, 26 Feb 2013 07:47:18 +0000 (08:47 +0100)]
kernel-install: fixed paths in boot loader entry

For the loader entry a relative path has to be used.

11 years agotests: add a few more tests to test-util.c
Thomas Hindoe Paaboel Andersen [Mon, 25 Feb 2013 22:41:55 +0000 (23:41 +0100)]
tests: add a few more tests to test-util.c

Add asserts on the resutls in FOREACH_WORD_QUOTED
Added tests for:
  FOREACH_WORD
  strstrip
  delete_chars
  in_charset

11 years agokernel-install: remove LANG=
Kay Sievers [Mon, 25 Feb 2013 22:18:57 +0000 (23:18 +0100)]
kernel-install: remove LANG=

11 years agonspawn: add --bind= and --bind-ro= to bind mount host paths into the container
Lennart Poettering [Mon, 25 Feb 2013 17:21:13 +0000 (18:21 +0100)]
nspawn: add --bind= and --bind-ro= to bind mount host paths into the container

11 years agokernel-install(8): add documentation about the configuration files used
Harald Hoyer [Mon, 25 Feb 2013 18:29:16 +0000 (19:29 +0100)]
kernel-install(8): add documentation about the configuration files used

11 years agokernel-install: add kernel-install tool
Harald Hoyer [Fri, 22 Feb 2013 16:18:47 +0000 (17:18 +0100)]
kernel-install: add kernel-install tool

11 years agoRevert "nspawn: catch config mistake of specifying -b and args"
Michal Schmidt [Mon, 25 Feb 2013 17:33:08 +0000 (18:33 +0100)]
Revert "nspawn: catch config mistake of specifying -b and args"

This reverts commit cb96a2c69a312fb089fef4501650f4fc40a1420b.

It is not a mistake to pass args when -b is specified. They will simply
be passed on to the container's init.

The manpage needs fixing, that's true.

11 years agodebug-shell: don't be picky, use /bin/sh rather than /bin/bash
Tom Gundersen [Fri, 22 Feb 2013 16:40:00 +0000 (17:40 +0100)]
debug-shell: don't be picky, use /bin/sh rather than /bin/bash

In a minimal initramfs, one might not always have the full bash available.
Typically if using busybox.

11 years agobuild: remove explicit -shared in LDFLAGS
Dave Reisner [Sun, 24 Feb 2013 21:39:25 +0000 (16:39 -0500)]
build: remove explicit -shared in LDFLAGS

This doesn't need to be passed, as it's handled by libtool. Since the
default for autoconf is --disable-static, this change is effectively a
noop. It only matters if you pass --enable-static, in which case the
static libs for systemd libraries will actually be built.

Nitpicky, but this only affects systemd libs. The override for the
other libs remains since these libs are always loaded dynamically and
never compiled staticly.

11 years agojournal: fix --until
Paul W. Frields [Sun, 24 Feb 2013 14:27:51 +0000 (15:27 +0100)]
journal: fix --until

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

11 years agonspawn: catch config mistake of specifying -b and args
Zbigniew Jędrzejewski-Szmek [Sun, 24 Feb 2013 13:10:51 +0000 (14:10 +0100)]
nspawn: catch config mistake of specifying -b and args

11 years agotest: test irreversible jobs
Michal Schmidt [Fri, 22 Feb 2013 17:59:07 +0000 (18:59 +0100)]
test: test irreversible jobs

11 years agobuild-sys: move systemd-analyze to /usr/bin
Kay Sievers [Fri, 22 Feb 2013 16:02:06 +0000 (17:02 +0100)]
build-sys: move systemd-analyze to /usr/bin

11 years agoTODO: drop two items
Zbigniew Jędrzejewski-Szmek [Fri, 22 Feb 2013 15:54:42 +0000 (16:54 +0100)]
TODO: drop two items

11 years agosystemctl: generalize action table to be usable in more action<->verb mappings
Michal Schmidt [Fri, 22 Feb 2013 12:37:57 +0000 (13:37 +0100)]
systemctl: generalize action table to be usable in more action<->verb mappings

Should be no functional change.

11 years agosystemctl: make shutdown operations use irreversible jobs
Michal Schmidt [Fri, 22 Feb 2013 10:21:47 +0000 (11:21 +0100)]
systemctl: make shutdown operations use irreversible jobs

Occasionally people report problem with reboot/poweroff operations hanging in
the middle. One known cause is when a new transaction to start a unit is
enqueued while the shutdown is going on. The start of the unit conflicts with
the shutdown jobs, so they get cancelled. The failure case can be quite unpleasant,
becase getty and sshd may already be stopped.

Fix it by using irreversible jobs for shutdown (reboot/poweroff/...) actions.
This applies to commands like "reboot", "telinit 6", "systemctl reboot". Should
someone desire to use reversible jobs, they can say "systemctl start reboot.target".`

11 years agocore, systemctl: add support for irreversible jobs
Michal Schmidt [Fri, 22 Feb 2013 10:21:37 +0000 (11:21 +0100)]
core, systemctl: add support for irreversible jobs

Add a new job mode: replace-irreversibly. Jobs enqueued using this mode
cannot be implicitly canceled by later enqueued conflicting jobs.
They can however still be canceled with an explicit "systemctl cancel"
call.

11 years agosystemctl: make "systemctl default" use "isolate" job mode
Michal Schmidt [Fri, 22 Feb 2013 08:56:16 +0000 (09:56 +0100)]
systemctl: make "systemctl default" use "isolate" job mode

"systemctl default" should behave identically to "telinit N" (where N is the
corresponding runlevel target number), therefore it should use isolate job mode
too.

11 years agojournal: sd_journal_get_cursor should return 0 on success
Zbigniew Jędrzejewski-Szmek [Fri, 22 Feb 2013 10:18:46 +0000 (11:18 +0100)]
journal: sd_journal_get_cursor should return 0 on success

Documentation states that 0 is correct, and all other
similar functions return 0 on success.

Pointed-out-by: Steven Hiscocks <steven-systemd@hiscocks.me.uk>
11 years agoTODO: removed ratelimit
Harald Hoyer [Thu, 21 Feb 2013 09:30:14 +0000 (10:30 +0100)]
TODO: removed ratelimit

11 years agofstab-generator: change kernel command line mount path for root
Harald Hoyer [Thu, 21 Feb 2013 09:23:58 +0000 (10:23 +0100)]
fstab-generator: change kernel command line mount path for root

Use /sysroot instead of /new_root to mount the real root in the
initramfs.

11 years agoman: be even more clear about ExecStart's first argument.
Max F. Albrecht [Wed, 20 Feb 2013 21:49:57 +0000 (13:49 -0800)]
man: be even more clear about ExecStart's first argument.

11 years agotests: more tests for util.c
Thomas Hindoe Paaboel Andersen [Wed, 20 Feb 2013 21:34:06 +0000 (22:34 +0100)]
tests: more tests for util.c

tests for:
  test_parse_pid
  test_parse_uid
  test_safe_atolli
  test_safe_atod

11 years agoman: document %%
Zbigniew Jędrzejewski-Szmek [Wed, 20 Feb 2013 10:17:43 +0000 (11:17 +0100)]
man: document %%

11 years agotest-strv.c: ported test_specifier_printf() to _cleanup_free_ + assert_se + cleanup
Daniel Buch [Sun, 17 Feb 2013 19:15:52 +0000 (20:15 +0100)]
test-strv.c: ported test_specifier_printf() to _cleanup_free_ + assert_se + cleanup

11 years agotest-strv.c: added OOM check for current tests
Daniel Buch [Mon, 18 Feb 2013 15:48:12 +0000 (16:48 +0100)]
test-strv.c: added OOM check for current tests

New OOM check patch:

I do assert_se() before variable is used to do correct check.

11 years agotest-strv.c: added strv_split_nulstr() test
Daniel Buch [Mon, 18 Feb 2013 22:53:33 +0000 (23:53 +0100)]
test-strv.c: added strv_split_nulstr() test

11 years agotests: add test of memdup_multiply
Thomas Hindoe Paaboel Andersen [Mon, 18 Feb 2013 22:49:04 +0000 (23:49 +0100)]
tests: add test of memdup_multiply

11 years agoman: Add reason for disk model info not working
William Giokas [Sun, 17 Feb 2013 04:04:29 +0000 (22:04 -0600)]
man: Add reason for disk model info not working

In systemd-bootchart, the disk model information will not be found
unless the root device is specified using `root=/dev/sdxY` on the kernel
line. Just add a note as to why this doesn't happen.

11 years agobootctl: show "n/a" for empty boot option labels
Kay Sievers [Sun, 17 Feb 2013 21:28:21 +0000 (22:28 +0100)]
bootctl: show "n/a" for empty boot option labels

11 years agoudev: usb_id: parse only 'size' bytes of the 'descriptors' buffer
Kay Sievers [Sun, 17 Feb 2013 20:16:56 +0000 (21:16 +0100)]
udev: usb_id: parse only 'size' bytes of the 'descriptors' buffer

11 years agoudev: usb_id - ignore non-ASCII serial numbers
Kay Sievers [Sun, 17 Feb 2013 18:55:15 +0000 (19:55 +0100)]
udev: usb_id - ignore non-ASCII serial numbers

On Thu, Feb 7, 2013 at 3:52 PM, Robert Milasan <rmilasan@suse.com> wrote:
> Hi, seems that using some strange usb devices with really bogus serial
> numbers usb_id creates links with junk strings in it:
>
> /dev/disk/by-id/usb-TSSTcorp_BDDVDW_SE-506AB_㡒䍌䜶䉗ぁㄴ㌴†ँ-0:0
>
> Initially was believed that usb_id is to blame, then the kernel, but it
> turns out that really the usb cd/dvd drive has this bogus serial number:
>
> output from dmesg:
> [  538.200160] usb 1-2: new high-speed USB device number 5 using
> ehci_hcd [  538.335067] usb 1-2: New USB device found, idVendor=0e8d,
> idProduct=1956 [  538.335080] usb 1-2: New USB device strings: Mfr=1,
> Product=2, SerialNumber=3 [  538.335089] usb 1-2: Product: MT1956
> [  538.335097] usb 1-2: Manufacturer: MediaTek Inc
> [  538.335105] usb 1-2: SerialNumber:
> \xffffffe3\xffffffa1\xffffff92\xffffffe4\xffffff8d\xffffff8c ...
> [  538.337540] scsi6 : usb-storage 1-2:1.0 [  539.341385] scsi 6:0:0:0:
> CD-ROM            TSSTcorp BDDVDW SE-506AB  TS00 PQ: 0 ANSI: 0
> [  539.354240] sr0: scsi3-mmc drive: 0x/24x writer dvd-ram cd/rw
> xa/form2 cdda tray [  539.354777] sr 6:0:0:0: Attached scsi CD-ROM sr0
> [  539.355122] sr 6:0:0:0: Attached scsi generic sg2 type 5

11 years agoefi: compare by substraction
Kay Sievers [Sun, 17 Feb 2013 18:54:29 +0000 (19:54 +0100)]
efi: compare by substraction

11 years agoudev: expose new ISO9660 properties from libblkid
Zeeshan Ali (Khattak) [Sun, 17 Feb 2013 01:21:27 +0000 (03:21 +0200)]
udev: expose new ISO9660 properties from libblkid

11 years agoTODO
Auke Kok [Sun, 17 Feb 2013 00:40:02 +0000 (16:40 -0800)]
TODO

11 years agosystemctl: allow comma sepearted property lists
Zbigniew Jędrzejewski-Szmek [Sat, 16 Feb 2013 22:20:28 +0000 (17:20 -0500)]
systemctl: allow comma sepearted property lists

11 years agoman: prettify systemctl(1)
Zbigniew Jędrzejewski-Szmek [Sat, 16 Feb 2013 21:28:21 +0000 (16:28 -0500)]
man: prettify systemctl(1)

- reindent with two spaces, otherwise everything is squeezed near
  the right margin,
- mark only optional arguments as optional,
- some typos, etc.

11 years agobootchart: rename --filter to --no-filter
Zbigniew Jędrzejewski-Szmek [Sat, 16 Feb 2013 20:16:24 +0000 (15:16 -0500)]
bootchart: rename --filter to --no-filter

Turning off filtering with --filter is just too confusing.
Config option "Filter" doesn't have to be changed, here
"Filter=yes" already meant to filter.

11 years agobootchart: provide better error messages
Zbigniew Jędrzejewski-Szmek [Sat, 16 Feb 2013 18:29:28 +0000 (13:29 -0500)]
bootchart: provide better error messages

11 years agoman: move bootchart README to manpage, docbooksify
Zbigniew Jędrzejewski-Szmek [Sat, 16 Feb 2013 17:40:33 +0000 (12:40 -0500)]
man: move bootchart README to manpage, docbooksify

11 years agosystemctl: Don't give re-activation warning if unit is masked
Jan Janssen [Fri, 15 Feb 2013 15:10:36 +0000 (16:10 +0100)]
systemctl: Don't give re-activation warning if unit is masked

11 years agosystemctl: allow status with no units
Zbigniew Jędrzejewski-Szmek [Thu, 14 Feb 2013 21:55:24 +0000 (16:55 -0500)]
systemctl: allow status with no units

This makes 'status' behave like 'list-units':
systemctl status -> status of all units
systemctl -t error status -> status of error units
systemctl -t mount status -> etc.

11 years agounit: don't Require systemd-journald.socket from units
Michal Schmidt [Fri, 15 Feb 2013 21:42:26 +0000 (22:42 +0100)]
unit: don't Require systemd-journald.socket from units

It is not really necessary to have a hard requirement dependency on
systemd-journald.socket in almost every unit. The socket gets pulled
into boot via at least two ways:
 sockets.target -> systemd-journald.socket
 sysinit.target -> systemd-journald.service -> systemd-journald.socket

So just assume something pulled the socket in and drop the automatic
requirement dependencies on it.

"systemctl stop systemd-journald.socket" will now not take the whole
system down with it.

11 years agoexecute: increase severity of journal connect failure message
Michal Schmidt [Fri, 15 Feb 2013 23:34:12 +0000 (00:34 +0100)]
execute: increase severity of journal connect failure message

journald is supposed to work. Failure to connect to its socket implies
losing messages. It should be a very unusual event. Log the failure with
LOG_CRIT.

Just because this unit's stdout/stderr failed to connect to the journal
does not necessarily mean that we shouldn't try to log the failure using
a structured entry, so let's use log_struct_unit.

11 years agoexecute: unify setup_{output,error}
Michal Schmidt [Fri, 15 Feb 2013 22:36:23 +0000 (23:36 +0100)]
execute: unify setup_{output,error}

The functions are quite similar. Unify them into one.

The source gets shorter, the binary gets slightly smaller.

11 years agoexecute: robustness against journald failures
Michal Schmidt [Fri, 15 Feb 2013 21:43:23 +0000 (22:43 +0100)]
execute: robustness against journald failures

Almost every unit logs to the journal. If journald gets a permanent
failure, units would not be able to start (exit code 209/STDOUT).

Add a fallback to /dev/null to avoid making the system entirely
unusable in such a case.

11 years agolog: fix fallbacks to kmsg
Michal Schmidt [Fri, 15 Feb 2013 21:41:19 +0000 (22:41 +0100)]
log: fix fallbacks to kmsg

write_to_journal() returns 0 if journal_fd is closed and nothing is
written. We need to make sure we'll try log_open_kmsg() then to make the
fallback work for "journal-or-kmsg".

11 years agoman: Update bootchart.conf(5)
William Giokas [Thu, 14 Feb 2013 22:59:48 +0000 (16:59 -0600)]
man: Update bootchart.conf(5)

Recent changes in config options makes almost eveny variable in the man
page obsolete.

11 years agobootchart: if "root=/dev" is not matched, don't try to read /sys
Harald Hoyer [Thu, 14 Feb 2013 10:26:06 +0000 (11:26 +0100)]
bootchart: if "root=/dev" is not matched, don't try to read /sys

11 years agoupdate TODO
Thomas Hindoe Paaboel Andersen [Thu, 14 Feb 2013 21:16:58 +0000 (22:16 +0100)]
update TODO

11 years agobootchart: stricter checks of cli input
Thomas Hindoe Paaboel Andersen [Thu, 14 Feb 2013 21:03:40 +0000 (22:03 +0100)]
bootchart: stricter checks of cli input

11 years agobootchart: use conf-parser & CamelCase names in .conf
Thomas Hindoe Paaboel Andersen [Thu, 14 Feb 2013 20:32:49 +0000 (21:32 +0100)]
bootchart: use conf-parser & CamelCase names in .conf

11 years agocore: do not overwrite existing units source
Umut Tezduyar [Thu, 7 Feb 2013 08:06:20 +0000 (09:06 +0100)]
core: do not overwrite existing units source

Only set source for freshly created .mounts coming from
mountinfo file.

11 years agosystemctl: print wall message only if successful
Zbigniew Jędrzejewski-Szmek [Thu, 14 Feb 2013 19:08:09 +0000 (14:08 -0500)]
systemctl: print wall message only if successful

systemctl would write to the wall even if unsuccessful.

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

11 years agosystemctl: use automatic cleanup
Zbigniew Jędrzejewski-Szmek [Thu, 14 Feb 2013 18:32:19 +0000 (13:32 -0500)]
systemctl: use automatic cleanup

11 years agonspawn: fail if unable to close pipe
Zbigniew Jędrzejewski-Szmek [Thu, 14 Feb 2013 16:02:02 +0000 (11:02 -0500)]
nspawn: fail if unable to close pipe

11 years agoman: Add even more to the bootchart man page
William Giokas [Thu, 14 Feb 2013 06:13:54 +0000 (00:13 -0600)]
man: Add even more to the bootchart man page

Essentially transfer the 'README' file in src/bootchart to the man page
for easier reading by users.

Moved the 'History' section to the bottom, before the 'See Also' section.

 man/systemd-bootchart.xml | 100 ++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 83 insertions(+), 17 deletions(-)

11 years agobootchart: parse /etc/os-release rather than system-release
Harald Hoyer [Thu, 14 Feb 2013 10:26:07 +0000 (11:26 +0100)]
bootchart: parse /etc/os-release rather than system-release

Also parse it early, so that we can get it in the initramfs.

11 years agobootchart: more fixes for bootchart in the initramfs
Harald Hoyer [Thu, 14 Feb 2013 10:26:05 +0000 (11:26 +0100)]
bootchart: more fixes for bootchart in the initramfs

11 years agonspawn: print PID and show how to enter the namespace
Zbigniew Jędrzejewski-Szmek [Sat, 12 Jan 2013 21:55:04 +0000 (16:55 -0500)]
nspawn: print PID and show how to enter the namespace

systemd-nspawn will now print the PID of the child.
An example showing how to enter the container is added
to the man page.

Support for nsenter without an explicit command was
added in https://github.com/karelzak/util-linux/commit/5758069
(post v2.22.2). So this example requires both a new kernel
and the latest util-linux.

11 years agoadded some missing include for a5c32cff1f56afe6f0c6c70d91a88a7a8238b2d7
Harald Hoyer [Thu, 14 Feb 2013 15:37:31 +0000 (16:37 +0100)]
added some missing include for a5c32cff1f56afe6f0c6c70d91a88a7a8238b2d7

11 years agohonor SELinux labels, when creating and writing config files
Harald Hoyer [Thu, 14 Feb 2013 11:26:13 +0000 (12:26 +0100)]
honor SELinux labels, when creating and writing config files

Also split out some fileio functions to fileio.c and provide a SELinux
aware pendant in fileio-label.c

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

11 years agobootchart items
Auke Kok [Thu, 14 Feb 2013 04:22:12 +0000 (20:22 -0800)]
bootchart items

11 years agoman: use <replaceable> in various places
Zbigniew Jędrzejewski-Szmek [Thu, 14 Feb 2013 03:46:37 +0000 (22:46 -0500)]
man: use <replaceable> in various places

11 years agoman: add filenames to the index
Zbigniew Jędrzejewski-Szmek [Thu, 14 Feb 2013 02:51:31 +0000 (21:51 -0500)]
man: add filenames to the index

Limiting the addition to filenames from <refsynopsis>
seems to give a good enough S/N ratio.

11 years agoman: bootchart: change /var/log to /run/log
William Giokas [Wed, 13 Feb 2013 20:49:24 +0000 (14:49 -0600)]
man: bootchart: change /var/log to /run/log

As of [1], bootchart stores files in /run/log, not /var/log, by default.

[1] f2f85884caac671da84256acb44148df9a4dca70

11 years agoAdd systemd-analyze to .gitignore
Auke Kok [Wed, 13 Feb 2013 22:51:12 +0000 (14:51 -0800)]
Add systemd-analyze to .gitignore

11 years agoMove systemctl dot to systemd-analyze dot
Simon Peeters [Wed, 13 Feb 2013 22:17:28 +0000 (14:17 -0800)]
Move systemctl dot to systemd-analyze dot

11 years agosystemd-analyze: rewrite in C.
Simon Peeters [Wed, 6 Feb 2013 14:21:03 +0000 (15:21 +0100)]
systemd-analyze: rewrite in C.

Written by Peeters Simon <peeters.simon@gmail.com>.
Makefile stuff and cleaned up a bit by Auke Kok <auke-jan.h.kok@intel.com>.
Some code inspired by Marc-Antoine Perennou <Marc-Antoine@Perennou.com>.

11 years agosystemctl: use parse_unit_info
Marc-Antoine Perennou [Thu, 31 Jan 2013 08:57:25 +0000 (09:57 +0100)]
systemctl: use parse_unit_info

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
11 years agodbus: introduce parse_unit_info
Marc-Antoine Perennou [Thu, 31 Jan 2013 08:50:21 +0000 (09:50 +0100)]
dbus: introduce parse_unit_info

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
11 years agodbus: import struct unit_info from systemctl
Marc-Antoine Perennou [Thu, 31 Jan 2013 08:49:35 +0000 (09:49 +0100)]
dbus: import struct unit_info from systemctl

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
11 years agoupdate TODO
Lennart Poettering [Wed, 13 Feb 2013 22:08:52 +0000 (23:08 +0100)]
update TODO

11 years agobuild-sys: make EFI support build-time optional
Lennart Poettering [Wed, 13 Feb 2013 22:07:59 +0000 (23:07 +0100)]
build-sys: make EFI support build-time optional

11 years agobuild-sys: make PolicyKit support compile-time optional (was runtime-optional already)
Lennart Poettering [Wed, 13 Feb 2013 21:56:43 +0000 (22:56 +0100)]
build-sys: make PolicyKit support compile-time optional (was runtime-optional already)