Commit Graph
57095 Commits
Author SHA1 Message Date
Ran Benita 8aea83c718 bash-completion: update with new verbs and arguments
Adds arguments --root= --runtime --no-legend.
Adds verbs link mask unmask reenable list-unit-files.
Also uses list-unit-files to make nicer enable and disable completions.

Rebased due to changes in systemctl.
2011-11-02 13:07:36 +01:00
Dexter Morgan 6fdae8a6a4 Add Mageia support
This patch adds support for the Mageia Linux distribution:
 http://www.mageia.org/

Mageia is a fork of Mandriva although some divergence has already occured
and thus inclusion of these changes upstream allow us to (hopefully)
migrate more rapidly to the new standard approaches systemd offers.
Indeed, we already use the preferred mechanism of OS identification via
the /etc/os-release file rather than a distro specific variation.

This patch mostly mirrors the patch added previously for Mandriva
support. In addition to those original authors, this patch was mostly
written by Dexter Morgan with help from Colin Guthrie and Eugeni Dodonov.
2011-11-02 02:16:39 +01:00
Kay Sievers 6dd19db57c replace AC_DISABLE_STATIC with LT_INIT([disable-static]) 2011-11-02 00:07:59 +01:00
Lennart Poettering 25d6283acf update TODO 2011-11-01 23:53:15 +01:00
Tom Gundersen 87e75fddbb cryptsetup-generator: avoid ordering cycle on swap
Devices with random keys (swap), should not be ordered before local-fs.target,
as this creates a cycle with systemd-load-random-seed.service (and also it
does not make sense, a swap device is not a local-fs).
2011-11-01 23:42:41 +01:00
Lennart Poettering fc8f0b5c9c units: drop [Install] section from remote-fs-pre.target
remote-fs-pre.target is not a unit a user should ever explicitly enable.
Instead services which need to hook before network mounts should pull it
in.
2011-11-01 22:29:48 +01:00
Lennart Poettering 7fc2a89a73 mount: order remote mounts after both network.target and remote-fs-pre.target
Since remote-fs-pre.target is optional we cannot count on it to order
remote mounts after network.target, so let's add that order explicitly
in addition to remote-fs-pre.target.

https://bugzilla.redhat.com/show_bug.cgi?id=749940
2011-11-01 22:28:59 +01:00
Lennart Poettering 6ddaf1ca4a cgroup: always recreate cgroup before we try to apply attributes
We might have trimmed the cgroup tree previously, hence don't trust our
own "realized" flag, always recreate cgroup tree before applying our
attributes to make sure this actually works out.

https://bugzilla.redhat.com/show_bug.cgi?id=749687
2011-11-01 22:02:36 +01:00
Lennart Poettering f632a6634d initctl: don't use dbus connection after PID 1 got respawned
After reexec PID 1 our bus connection is invalidated. Hence don't try to
reuse it, just terminate so that when we are spawned the next time we
just get a new one.

Spotted by Marti Raudsepp.
2011-11-01 18:21:32 +01:00
Thomas Jarosch 7670e5a2aa condition: Fix file descriptor leak in test_capability()
Detected by cppcheck.
2011-11-01 17:02:32 +01:00
Tom Gundersen 7c2ec00930 random-seed: convert poolsize from bits to bytes
The problem was first noted in a bug report against Arch's initscripts.

Reported-by: Taylan Ulrich Bayırlı <taylanbayirli@gmail.com>
Reported-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
2011-11-01 14:45:52 +01:00
Lennart Poettering bb53abeb8c plymouth: fix ply proto endianess issues
Plymouth enforces LE even for the local Ply proto, hence we should do
the conversion properly for BE arch compat.

Tracked down by Harald Hoyer.

https://bugzilla.redhat.com/show_bug.cgi?id=744415
2011-11-01 14:20:31 +01:00
Lennart Poettering b7f44df59a README: explain dependency on cgroups 2011-11-01 13:52:46 +01:00
Lennart Poettering a6eb9147a8 update TODO 2011-11-01 13:52:43 +01:00
Kay Sievers dbfb570586 do not skip /dev/{disk,char}/M:m removal when the device node is already gone 2011-11-01 13:33:33 +01:00
David Zeuthen 45197c02a5 gudev: Use g_ascii_strtoull() instead of strtoul()
This ensures that we get the same behavior on both 32- and
64-bit. Pointed out on the mailing list:

 http://permalink.gmane.org/gmane.linux.hotplug.devel/17145

Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-10-31 22:20:34 +01:00
David Zeuthen 39649a8b3a gudev: Use strtoul to parse unsigned 64-bit integers
Otherwise it will return 0x7fffffffffffffff instead of
0x8000000000000004 for e.g. this property

 ID_PART_ENTRY_FLAGS=0x8000000000000004

Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-10-31 13:47:22 +01:00
Martin Pitt 092a53bb92 keymap: Fix stuck keys on BenQ nScreen
https://launchpad.net/bugs/606599
2011-10-26 15:32:57 +02:00
Martin Pitt 18ba176189 keymap: Fix bluetooth key on Acer TravelMate 7720
https://launchpad.net/bugs/696671
2011-10-26 15:14:03 +02:00
Martin Pitt b3ffede4d9 keymap: Fix "internet" key on HP G62
https://launchpad.net/bugs/763525
2011-10-26 15:10:19 +02:00
Martin Pitt 6415f89732 keymap: More Asus module variants
https://launchpad.net/bugs/795694
2011-10-26 15:06:08 +02:00
Martin Pitt 23afb57f29 keymap: Fix stuck keys on GIGABYTE i1520M
Thanks Lukáš Mojžíš!

https://launchpad.net/bugs/770680
2011-10-26 14:30:26 +02:00
Martin Pitt 6882949d7a findkeyboards: Consistently use spaces instead of tabs 2011-10-26 11:11:15 +02:00
Martin Pitt 8ab7a9be03 extras/keymap/findkeyboards: Filter out non-event devices
This avoids running udevadm info --query=name against a non-existing devnode,
which aborts the script early.
2011-10-26 11:03:21 +02:00
Martin Pitt 3aa3be179f check-keymaps.sh: Allow running separately
Provide default arguments for SRCDIR and KEYLIST, so that you can just run this
from the root of the source tree, separately from make distcheck.
2011-10-26 07:38:06 +02:00
Jerone Young 7796af6ae6 keymap: Fix micmute remap for Lenovo Thinkpads
Linux Kernel 3.1 now has proper support for a mic mute button:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=33009557bd

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2011-10-26 07:34:53 +02:00
Zbigniew Jędrzejewski-Szmek 1c0a113fd3 systemctl: make list-unit-files output more economical
The first column is given the width of the widest entry,
if possible, otherwise all entries are ellipsized to fit
in ($COLUMNS - (width of second column)).

[ Added a few fixes, calculate state_cols too, respect '--no-legend',
  better handling of '--full' -- michich ]
2011-10-24 19:40:05 +02:00
Kay Sievers 9569148736 ignore entire rules line if unknown keys are used 2011-10-22 20:50:23 +02:00
Kay Sievers af9cfc1190 make: add gpg signing bits 2011-10-20 00:01:02 +02:00
Kay Sievers b3eccdce81 release 174 2011-10-19 20:49:35 +02:00
Kay Sievers 09637f7434 rules: do not load sg module 2011-10-19 20:42:10 +02:00
Jerone Young 6ac6c3a04c Add mic mute keycode support for Lenovo Thinkpad USB keyboard
This patch adds mic mute keycode support for the Lenovo Thinkpad USB
keyboard. Support for this keycode was introduced upstream, and will be
defined in upcoming 3.1 Linux Kernel input.h header:

  http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=33009557bd

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2011-10-19 20:29:07 +02:00
Dave Reisner 74eeab044e systemctl-completion: always invoke with --no-legend
In the case of completion for the 'restart' verb, passing the invalid
unit name (the colums header) causes completion to cease functioning
entirely, with the error:

  Failed to issue method call: Unit name UNIT is not valid.

This adds a small wrapper function for systemctl which can have common
options added to it.
2011-10-19 08:14:13 +02:00
Jonathan Nieder 5a8d081c58 audit: do not complain if kernel lacks audit
When running on a kernel without audit support, systemd currently
writes a mysterious-sounding error to its log:

	systemd[1]: Failed to connect to audit log: Protocol not supported

Better to suppress the audit_open() failure message when (and only
when) it is due to running on a kernel without audit support, since in
this case the admin probably does not mind systemd not writing to the
audit log.  This way, more serious errors like ENOMEM and EACCES will
stand out more.
2011-10-17 21:04:59 +02:00
Tollef Fog Heen e51db373c2 service: Drop rcN.d runlevels from SysV services that also exist in rcS.d
Services which claim to start in both rcN.d and rcS.d generate
loops which for some reason seems to usually end up with dbus not
starting and the whole machine being quite unhappy. We now rather
assume that if a service can be started in rcS, it should not also
start in rcN.d.

Fixes Debian bug #637037
2011-10-17 21:02:42 +02:00
Michal Schmidt 563ba9ea6e manager: fix a crash in isolating
HASHMAP_FOREACH is safe against the removal of the current entry, but
not against the removal of other entries. job_finish_and_invalidate()
can recursively remove other entries.

It triggered an assertion failure:
  Assertion 'j->installed' failed at src/manager.c:1218, function
  transaction_apply(). Aborting.

Fix the crash by iterating from the beginning when there is a
possibility that the iterator could be invalid.

It is O(n^2) in the worst case, but that's better than a crash.

https://bugzilla.redhat.com/show_bug.cgi?id=717325
2011-10-17 11:29:27 +02:00
Lennart Poettering 8f9b6cd9eb journal: automaticall reset location when the set of matches changes 2011-10-15 02:53:04 +02:00
Lennart Poettering 8725d60ae4 journal: implement seek to head/tail 2011-10-15 02:45:58 +02:00
Lennart Poettering e892bd1797 journal: unify code for up and for down traversal 2011-10-15 01:38:44 +02:00
Lennart Poettering de7b95cdc3 journal: properly implement matching with multiple matches 2011-10-15 01:13:37 +02:00
Lennart Poettering 1cc101f1e5 journal: if two entries match with everything but seqnums, they are still identical 2011-10-14 16:52:42 +02:00
Lennart Poettering 7210bfb370 journal: move field index from file into journal object 2011-10-14 05:38:40 +02:00
Lennart Poettering ae2cc8efc1 journal: when the same entry is in two files, skip over them in sync 2011-10-14 05:34:19 +02:00
Lennart Poettering c2373f848d journal: synchronize seqnum across files 2011-10-14 05:12:58 +02:00
Lennart Poettering 161e54f871 journal: fix field retrieval by name 2011-10-14 04:52:56 +02:00
Lennart Poettering 3fbf9cbb02 journal: implement parallel file traversal 2011-10-14 04:44:50 +02:00
Lennart Poettering 0ac38b7072 journal: implementation rotation 2011-10-13 05:19:35 +02:00
Lennart Poettering 250d54b5be journalctl: find journal files in right path 2011-10-12 05:29:08 +02:00
Lennart Poettering 69e5d42db0 journal: add cgroup path to entries 2011-10-12 05:28:39 +02:00
Lennart Poettering ed49ef3f34 journal: place machin journals in machine specific subdirectories 2011-10-12 05:06:09 +02:00