Commit Graph
20913 Commits
Author SHA1 Message Date
Kay Sievers 1f5a5100f3 udevd: control - no not delete socket file when --daemon is used 2011-10-10 00:38:56 +02:00
Kay Sievers 5cc4112e6d udevadm: control - use /run/udev/control socket instead of abstract namespace one 2011-10-09 22:52:03 +02:00
Kay Sievers e5396fed3f test_virtualization: do not try to compare id in !virt context 2011-10-09 16:36:45 +02:00
Kay Sievers b011116d18 update TODO 2011-10-09 15:54:20 +02:00
Steve Langasek 7944a13a2b udevd: exit - process events before signals in worker
When a worker receives both a signal and a udev event in the same epoll_wait
run, the event must be processed first because the udev parent considers the
event already dispatched.  If we process the signal first and exit, udevd
times out after 60 seconds waiting for a response from an already-dead
worker.

Ref: https://bugs.launchpad.net/bugs/818177
Signed-off-by: Steve Langasek <steve.langasek@canonical.com>
2011-10-08 15:02:38 +02:00
Lennart Poettering cec736d21f journal: implement parallel traversal in client 2011-10-08 02:21:05 +02:00
Lennart Poettering f4b4781191 journal: split user logs into their own journal files 2011-10-07 23:03:07 +02:00
Lennart Poettering 260a2be455 journal: replace linked list by hashmap when merging files 2011-10-07 22:02:06 +02:00
Lennart Poettering dad503169b journal: store XOR combination of entry data object hashes to identify hash lines 2011-10-07 22:02:06 +02:00
Lennart Poettering 87d2c1ff6a journal: add preliminary incomplete implementation 2011-10-07 22:02:05 +02:00
Lennart Poettering 9a36607584 update TODO 2011-10-07 22:00:23 +02:00
Lennart Poettering 7dfe96eebc hashmap: use different version of DJB's hash algorithm that uses shifting instead of multiplication 2011-10-07 21:00:48 +02:00
Lennart Poettering 340047e95d update TODO 2011-10-07 20:50:59 +02:00
Kay Sievers dd2247464f systemd: update drop-in sd-daemon files 2011-10-06 03:14:50 +02:00
Kay Sievers f42ee4838d delete left-over files in extras/ 2011-10-06 03:11:33 +02:00
Kay Sievers ee9bf6bda9 systemd: no not start udev in a container 2011-10-06 01:49:36 +02:00
Kay Sievers 7eff39bcf3 systemd: no not start udev in a container 2011-10-06 01:40:44 +02:00
Kay Sievers 8ac5e7ebf2 update TODO 2011-10-06 01:30:55 +02:00
Kay Sievers 0bbe8838e7 libudev: export udev_util_encode_string() 2011-10-06 01:10:59 +02:00
Kay Sievers 289a1821a4 remove 'udevadm trigger --type=failed' and SYSFS, ID, BUS keys 2011-10-06 00:45:06 +02:00
Kay Sievers a13d90aec6 usb_id: can't use global variables when used as built-in 2011-10-05 14:57:21 +02:00
Lennart Poettering 3887b5abcb logind: properly generate session creation response on dbus
This fixes the various reported issues with dbus message parsing when
running su.
2011-10-04 02:28:22 +02:00
Kay Sievers fd736f3991 update NEWS 2011-10-03 14:01:33 +02:00
Kay Sievers 046d1bf731 keymap: add genius keymap to Makefile 2011-10-03 14:00:42 +02:00
Petr Uzel d800e8688a udevadm: settle - return failure if unknown option is given
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2011-10-03 13:57:18 +02:00
Michal Schmidt 798e258d30 systemctl: fix corrupted output of units
On some systems the list of units in systemctl output came out wrong,
all on one line and with missing descriptions.

It turns out printf() really attempts to mmap 2G memory when INT_MAX is
passed as the field width. On machines with small virtual memory
without overcommit the mmap inside printf() failed.

Do not use INT_MAX for unlimited width.
2011-09-29 21:25:50 +02:00
Lennart Poettering a0ccd2acab localed: handle multiple X11 kbd layouts
https://bugs.freedesktop.org/show_bug.cgi?id=41341
2011-09-29 19:44:34 +02:00
Lennart Poettering f176b5c296 systemctl: fix error message when no connection to systemd is available 2011-09-29 16:00:29 +02:00
Lennart Poettering 8185a5090a systemctl: fix detection whether the dbus connection is available 2011-09-29 15:32:10 +02:00
Lennart Poettering 652eb44a7f build-sys: fix build 2011-09-29 15:09:18 +02:00
Lennart Poettering e99fa3cba5 vconsole: don't parse Fedora's KEYMAP= kernel parameters anymore
KEYMAP are use to pass keymap configuration to initrd, but not to the
system itself. Since the initrd might get out of date we need to make
sure that changes made in userspace override the settings from the
cmdline, hence drpo any use of it all for these variables.
2011-09-28 04:34:17 +02:00
Lennart Poettering fb9de93dd3 localed: add SetX11Keyboard() and SetVConsoleKeyboard() bus calls 2011-09-28 04:34:17 +02:00
Kay Sievers 958ae0d751 analyze: always draw top kernel, initramfs, userspace bars
Based on Koen Kooi's patch. Renamed initrd to initramfs.
2011-09-27 12:57:28 +02:00
Michal Schmidt 4deb3b9391 systemctl: better width and alignment of fields
Provide nicer output by taking advantage of the available columns.

Expand UNIT and DESCRIPTION if possible. Economize the space:
 - never give UNIT more width than it can use.
 - if there's a shortage of space, give 25 columns to UNIT, even
   if it would result in overflowing the total columns. The field would not
   be useful below width 25.
 - then if possible, assign up to 25 columns to DESCRIPTION.
 - then split any remaining space evenly between UNIT and DESCRIPTION.

Keep the columns aligned even with '--full'.
2011-09-27 12:10:33 +02:00
Michal Schmidt ebed32bfe8 systemctl: print the legend regardless of stdout type, add --no-legend
Print the legend (the column headers and the footer with hints) by
default even to non-tty output. People seem to get confused by the
difference when they redirect the output.

Add a parameter to suppress the printing of the legend.

Related-to: https://bugzilla.redhat.com/show_bug.cgi?id=713567
2011-09-27 12:10:27 +02:00
Michal Schmidt 4a8e40ebd0 pager: add a trivial internal pager
In the very unlikely scenario where none of the external pagers is
available, use an internal implementation to pass stdin to stdout.

Don't bother with trying 'cat', because it's no more useful than the
internal pager.

https://bugzilla.redhat.com/show_bug.cgi?id=713707
2011-09-27 11:57:24 +02:00
Kay Sievers fe9e1a0d4e rules: fuse: do not mount fusectl from udev rules
All mounting is done by systemd now. Non-systemd systems
need to ship their own rules if they want fusefs be auto-mounted.
2011-09-26 21:37:23 +02:00
Kay Sievers a3321f687b libudev: fix typo in documentation 2011-09-26 21:36:32 +02:00
Lennart Poettering 7c83341a59 build-sys: bump release 2011-09-23 18:30:02 +02:00
Lennart Poettering a966a504e8 readahead: opt out of bridge logging for readahead in order not to delay things unnecessarily 2011-09-23 17:42:54 +02:00
Lennart Poettering 4e2b0f9b14 service: fix up std output/error before we add dependencies to the bridge socket 2011-09-23 17:42:21 +02:00
Lennart Poettering 5dc4c17fd5 virt: add missing header inclusion 2011-09-23 17:20:45 +02:00
Lennart Poettering 8095200d05 condition: optionally test against type of virtualization (vm vs. container) 2011-09-23 17:09:49 +02:00
Lennart Poettering b52aae1d93 util: move virtualization detection into its own files, and extend return codes 2011-09-23 17:00:33 +02:00
Koen Kooi f2b33002cd analyze: report startup time in plot mode as well
It now prints something like "Startup finished in 1507ms (kernel) + 850ms (userspace) = 2357ms" below the legend.
2011-09-23 16:28:28 +02:00
Koen Kooi 70daa62332 analyze: always draw 1s marker for scale
In situations like this:

root@omap4430-panda:~# systemd-analyze
Startup finished in 1499ms (kernel) + 916ms (userspace) = 2416ms

The svg plot will only have the 0s marker and no subsequent markers for scale. This patch forces the 1s marker to always be drawn.
2011-09-23 16:28:27 +02:00
Michal Schmidt a65cb51f29 unit: fix complementing of requirement deps with After deps for targets
'man systemd.target' says:
  Unless DefaultDependencies= is set to false, target units will
  implicitly complement all configured dependencies of type
  Wants=, Requires=, RequiresOverridable= with dependencies of type
  After=  if the units in question also have DefaultDependencies=true.

It did not work because of a forgotten negation.
2011-09-23 16:28:27 +02:00
Lennart Poettering 799f46d36f util: don't fail if no id was passed to detect_container() 2011-09-23 16:28:27 +02:00
Lennart Poettering 65bc2c2114 util: detect systemd-nspawn without relying on ns cgroup tree 2011-09-23 16:28:27 +02:00
Lennart Poettering 3bb1c6b04f nspawn: set env var container=systemd-nspawn, following the scheme lxc introduced 2011-09-23 16:28:27 +02:00