summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-11-10vconsole: support additional keymap for toggling layoutsAndrey Borzenkov
At least Mandriva offers configuring characters to toggle keyboard layout independently from main keymap. This functions much the same as XkbOptions for X11 and actually is configured together. The patch adds support for additional keymap, KEYMAP_TOGGLE, to /etc/vconsole.conf, that is intended to be used for the same purpose.
2010-11-10main: warn if /etc/mtab is not a symlinkLennart Poettering
2010-11-10add bash completion for systemctl --systemRan Benita
I've been playing recently with systemd on Arch, and had much fun. But soon, alas, my fingers started to ache from repeatedly writing systemctl restart some-long-service.service. So, I wrote a completion script. I figured other people may want to use it, so I prepared a patch against systemd-git (attached). There are some notes/disclaimers, however: - It requires bash>=4.0, sed, grep and awk. A bash-completion package is not strictly needed; sourcing the file is enough. - It wouldn't work properly with --session, as I had no way to test it. - It uses the output of systemctl list-units directly when that's enough, but also runs systemctl show when completing on some verbs (for example, to check for AllowIsolate=yes). This /may/ be somewhat slow once there are many units, since it calls a dbus method on each one. Is there a faster way to have that information? - The code is perhaps a bit long and messy; honestly, I blame the tool ;) One way to improve on the situation is to integrate some completion code in systemctl itself, the way e.g. gdbus, gsettings and django do it. This will allow for finer grained and faster completions, and it won't be necessary to keep the verb/option tables in sync with some other file. But it does mean adding all of this code in C. If this is acceptable, I'll try to have a go at it. Finally, a couple of completion tips I run into: - If you alias systemctl to, say, sctl, you get completions on that too by running to following command: complete -F _systemctl sctl - Add the following line to your .inputrc, to have the completion show after only a single tab press: set show-all-if-ambiguous on It makes the shell quite more pleasant. Hope it's good enough! Ran
2010-11-10main: rename process on startup to 'systemd' to avoid confusionLennart Poettering
2010-11-10unit: add ConditionNull= conditionLennart Poettering
2010-11-10ac-power: make ac-power a proper binary that scripts can callLennart Poettering
2010-11-10manager: parse RD_TIMESTAMP passed from initrdLennart Poettering
2010-11-10modules-load: fix minor raceLennart Poettering
2010-11-10label: use internal utility functions wher epossibleLennart Poettering
2010-11-10cryptsetup: minimal cryptsetup unit generatorLennart Poettering
2010-11-10selinux: relabel /dev after loading policyLennart Poettering
2010-11-10log: downgrade syslog connection failure message since it might happen ↵Lennart Poettering
during normal operation
2010-11-10service: delay automatic restart if job is pendingLennart Poettering
2010-11-10manager: when isolating undo all pending jobs, tooLennart Poettering
2010-11-10manager: only minimize impact if we are in fail modeLennart Poettering
2010-11-02do not overwrite other udev tagsAndrey Borzenkov
Systemd was unconditionally replacing all tags with own. The net effect was udev-acl tag was lost and devices were not given proper ACLs, making them inaccessible. Before: {pts/0}% udevadm info --query property --name sr0 DEVNAME=/dev/sr0 [...] TAGS=:systemd: {pts/0}% getfacl /dev/sr0 getfacl: Removing leading '/' from absolute path names # file: dev/sr0 # owner: root # group: cdrom user::rw- group::rw- other::--- After: {pts/0}% udevadm info --query property --name sr0 DEVNAME=/dev/sr0 [...] TAGS=:udev-acl:systemd: {pts/0}% getfacl /dev/sr0 getfacl: Removing leading '/' from absolute path names # file: dev/sr0 # owner: root # group: cdrom user::rw- user:bor:rw- group::rw- mask::rw- other::--- Signed-off-by: Andrey Borzenkov <arvidjaar@gmail.com>
2010-10-31Revert "fsck: add new -l switch to fsck mount options"Michael Biebl
The '-l' option is already taken by fsck.ext[234]: "-l bad_blocks_file Add to badblocks list" This reverts commit cf1a105550766d2251bc10240b6058a37babd600 but keeps the string changes.
2010-10-31fsck: add new -l switch to fsck mount optionsLennart Poettering
2010-10-29fsck: return SUCCESS when we skip the checkKay Sievers
2010-10-29fsck: skip checking / if it is writableKay Sievers
2010-10-29mount: don't pull in nofail mounts by default, but use them if they are aroundLennart Poettering
2010-10-29job: recursively fail BoundBy dependenciesLennart Poettering
2010-10-29fsck: fix target name to check forLennart Poettering
2010-10-29units: order units by default before appropriate targets in case they are ↵Lennart Poettering
pulled indirectly
2010-10-29unit: get rid of gnoreDependencyFailure= instead treat ConflictedBy= as ↵Lennart Poettering
weaker counterpart of Conflicts=, similar to Wants= vs. Requires=
2010-10-29unit: replace StopRetroactively= by BindTo= dependenciesLennart Poettering
The property StopRetroactively= needs to be per-dependency, not per-unit, in order to properly express dependencies between .mount units and its .device and fsck .service units. If the .device unit is unplugged the mount should go away, but if the fsck process terminates the .mount should stay.
2010-10-28automount: show who's triggering an automountLennart Poettering
2010-10-28systemctl: always show what and where for mount units in status outputLennart Poettering
2010-10-28shutdown: reword a few messages a littleLennart Poettering
2010-10-28manager: show which jobs are actually installed after a transactionLennart Poettering
2010-10-28timer: when deserializing timer state stay elapsed when we are elapsedLennart Poettering
2010-10-28unit: replace recursive_stop by stop_retroactively to simplify things a littleLennart Poettering
2010-10-28service: unify tstamp serialization codeLennart Poettering
2010-10-28device: set recursive_stop=true by defaultLennart Poettering
2010-10-28unit: suppress incorrect deserialization errorsLennart Poettering
2010-10-28swap: there's no reason not order swap after sysinit, so drop itLennart Poettering
2010-10-28socket: fix IPv6 availability detectionAndrey Borzenkov
If IPv6 is loaded with disable=1, any IPv6 functionality is completely disabled until the ipv6 module is reloaded. Do not assume IPv6 is available just because the module is present. Fixes startup error: Oct 27 20:58:02 cooker kernel: IPv6: Loaded, but administratively disabled, reboot required to enable Oct 27 20:58:02 cooker kernel: systemd[1]: Set hostname to <cooker>. Oct 27 20:58:02 cooker kernel: systemd[1]: Netlink failure for request 2: Operation not supported Oct 27 20:58:02 cooker kernel: systemd[1]: Failed to configure loopback device: Operation not supported
2010-10-27mounts: automatically create /dev/stderr and friends early on boot so that ↵Lennart Poettering
they are around when we run shell scripts before udevd
2010-10-27selinux: automatically load policy if the initrd hasn't done this for us yetLennart Poettering
2010-10-27main: move make_null_stdio() to util.cLennart Poettering
2010-10-27service: when after startup only one process is in a service's cgroup, ↵Lennart Poettering
assume it is the main process
2010-10-27unit: serialize active timestampsLennart Poettering
2010-10-26swap: add only swaps listed in /etc/fstab automatically to swap.target, ↵Lennart Poettering
others should be added via .wants/ links
2010-10-26errors: refer to systemctl status when usefulLennart Poettering
2010-10-26swap: add default cgroup to swap exec envLennart Poettering
2010-10-26swap: expose swap exec env proprties via dbusLennart Poettering
2010-10-26readahead: bump a device's request_nr when enabling readaheadLennart Poettering
2010-10-26shutdown: properly handle sigtimedwait() timing outLennart Poettering
2010-10-26exec: fix dbus exposure of UtmpIdentifier fieldLennart Poettering
2010-10-26main: fix typo in kernel cmdline parameters helpAndrey Borzenkov