summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* man: document --failedZbigniew Jędrzejewski-Szmek2014-11-081-0/+9
| | | | https://bugs.debian.org/767267
* shared: add readlink_valueTom Gundersen2014-11-072-0/+23
| | | | Reads the basename of the target of a symlink.
* sysusers: be nice and print a warning if futimens() failsLennart Poettering2014-11-071-1/+2
| | | | CID# 1251163
* utf8: when looking at the next unichar, honour the size parameter, in ↵Lennart Poettering2014-11-071-3/+5
| | | | utf8_is_printable_newline()
* log: explicitly ignore return value of parse_proc_cmdline()Lennart Poettering2014-11-071-1/+1
| | | | CID# 1251162
* core: unify how we create the notify and private dbus socketLennart Poettering2014-11-072-18/+4
| | | | | Use the same robust logic of mkdir + unlink of any existing AF_UNIX socket, ignoring the return value, right before bind().
* update TODOLennart Poettering2014-11-071-0/+4
|
* man: update bootup(7) for asynchronous timers.targetZbigniew Jędrzejewski-Szmek2014-11-071-1/+6
|
* manager: cast mkdir() result to (void) to make sure coverity is quietLennart Poettering2014-11-071-8/+6
| | | | Also simplify the code a bit by moving mkdir to the common path.
* update TODOLennart Poettering2014-11-071-0/+2
|
* util: simplify normalize_env_assignment() a bitLennart Poettering2014-11-071-18/+10
|
* util: file_is_priv_sticky() is used internally in util.c only nowadays, make ↵Lennart Poettering2014-11-072-15/+13
| | | | it static
* update TODOLennart Poettering2014-11-071-2/+2
|
* timer: reenable TIMER_ACTIVE timers when restartedMichael Chapman2014-11-071-0/+6
| | | | | | | | | A timer configured with OnActiveSec will start its associated unit again if the timer is stopped, then started. However, if the timer unit is restarted -- with "systemctl restart", say -- this does not occur. This commit ensures that TIMER_ACTIVE timers are re-enabled whenever the timer is started, even if that's within a restart job.
* util: rework /proc/cmdline parser to use unquote_first_word()Lennart Poettering2014-11-074-32/+72
|
* util: simplify proc_cmdline() to reuse get_process_cmdline()Lennart Poettering2014-11-0715-62/+54
| | | | Also, make all parsing of the kernel cmdline non-fatal.
* fileio: simplify write_string_file_atomic() by reusing write_string_stream()Lennart Poettering2014-11-071-13/+3
|
* copy: change error code when hitting copy limit to EFBIGLennart Poettering2014-11-072-2/+2
| | | | | After all, this is about files, not arguments, hence EFBIG is more appropriate than E2BIG
* copy: teach copy_bytes() sendfile() support, and then replace ↵Lennart Poettering2014-11-077-127/+91
| | | | sendfile_full() by it
* util: make use of isempty() where appropriateLennart Poettering2014-11-071-1/+1
|
* shutdown: fix arguments to /run/initramfs/shutdownMichal Schmidt2014-11-061-6/+11
| | | | | | | | | | | | | Our initrd interface specifies that the verb is in argv[1]. This is where systemd passes it to systemd-shutdown, but getopt permutes argv[]. This confuses dracut's shutdown script: Shutdown called with argument '--log-level'. Rebooting! getopt can be convinced to not permute argv[] by having '-' as the first character of optstring. Let's use it. This requires changing the way non-option arguments (in our case, the verb) are processed. This fixes a bug where the system would reboot instead of powering off.
* update TODOLennart Poettering2014-11-061-2/+0
|
* s/command-line/command line/gLennart Poettering2014-11-0610-12/+12
| | | | | | | | | | A follow-up to: commit 3f85ef0f05ffc51e19f86fb83a1c51e8e3cd6817 Author: Harald Hoyer <harald@redhat.com> Date: Thu Nov 6 15:33:48 2014 +0100 s/commandline/command line/g
* machined: reorder method calls in vtableLennart Poettering2014-11-061-1/+1
|
* switch-root: explain why we don't care about base_filesystem_create() failingLennart Poettering2014-11-061-0/+5
|
* shared: create files even if the SELinux policy has no context for themMichal Schmidt2014-11-061-2/+6
| | | | | | | | | | | | | The SELinux policy defines no context for some files. E.g.: $ matchpathcon /run/lock/subsys /dev/mqueue /run/lock/subsys <<none>> /dev/mqueue <<none>> We still need to be able to create them. In this case selabel_lookup_raw() returns ENOENT. We should then skip setfscreatecon(), but still return success. It was broken since c34255bdb2 ("label: unify code to make directories, symlinks").
* s/commandline/command line/gHarald Hoyer2014-11-0615-17/+17
|
* switch_root: do not fail, if base_filesystem_create() failedHarald Hoyer2014-11-061-6/+1
| | | | | | | | Not all switch roots are like base_filesystem_create() wants them to look like. They might even boot, if they are RO and don't have the FS layout. Just ignore the error and switch_root nevertheless. base_filesystem_create() should have logged, what went wrong.
* README: mention that engineering services for systemd are available from ↵Lennart Poettering2014-11-061-0/+5
| | | | endocode
* systemctl: when invokes as "reboot -f", sync()Lennart Poettering2014-11-061-2/+7
| | | | | We do this in the clean shutdown path in shutdown.c, hence we should do is for "reboot -f", too.
* hostnamed: introduce new "embedded" chassis typeLennart Poettering2014-11-064-4/+6
| | | | | | | We really don't want to get lost in adding fridge, car, plane, drone, or whatever else, hence add a generic term "embedded" cover all the cases where the computer is just part of something bigger, and not at the focus of things.
* update TODOLennart Poettering2014-11-061-2/+0
|
* shared: rename condition-util.[ch] to condition.[ch]Lennart Poettering2014-11-0612-18/+16
| | | | | Now that we only have one file with condition implementations around, we can drop the -util suffix and simplify things a bit.
* core: get rid of condition.c and move the remaining call into util.cLennart Poettering2014-11-067-100/+52
| | | | | | | That way only one file with condition code remaining, in src/shared/, rather than src/core/. Next step: dropping the "-util" suffix from condition-util.[ch].
* man: document that we don't document .include on purposeLennart Poettering2014-11-061-0/+4
| | | | <!-- xml comments are useful! -->
* man: don't document ConditionNull=/AssertNull= as the are not particularly ↵Lennart Poettering2014-11-061-11/+5
| | | | useful and simply confusing
* condition: order condition types the same way in man page, enum, tablesLennart Poettering2014-11-062-29/+29
| | | | Yes, sometimes I develop OCD.
* core: introduce the concept of AssertXYZ= similar to ConditionXYZ=, but ↵Lennart Poettering2014-11-0614-119/+309
| | | | fatal for a start job if not met
* condition: record test state internally and beef it up to be a full enumLennart Poettering2014-11-064-18/+38
|
* condition: add more test casesLennart Poettering2014-11-062-1/+59
|
* journal: adjust audit log messages a bitLennart Poettering2014-11-061-2/+2
|
* condition: internalize condition test functionsLennart Poettering2014-11-064-60/+60
| | | | | Also, implement the negation check inside of condition_test() instead of individually in each test function.
* condition: unify condition logic in one fileLennart Poettering2014-11-066-237/+275
|
* condition: properly allow passing back errors from condition checksLennart Poettering2014-11-067-53/+70
|
* units: restore job timeouts for poweroff and rebootZbigniew Jędrzejewski-Szmek2014-11-062-0/+4
| | | | | | | | It seems that there actually aren't any long running tasks which are performed at shutdown. If it turns out that there actually are, this should be revisited. This reverts most of commit 038193efa6.
* login: rerun vconsole-setup when switching from vgacon to fbconRay Strode2014-11-062-0/+14
| | | | | | | | | | | | | | | | | The initialization performed by systemd-vconsole-setup is reset when changing console drivers (say from vgacon to fbcon), so we need to run it in that case. See http://lists.freedesktop.org/archives/systemd-devel/2014-October/023919.html http://lists.freedesktop.org/archives/systemd-devel/2014-October/024423.html http://lists.freedesktop.org/archives/systemd-devel/2014-November/024881.html This commit adds a udev rule to make systemd-vconsole-setup get run when the fbcon device becomes available. (david: moved into new file 90-vconsole.rules instead of 71-seats.rules; build-failures are on me, not on Ray)
* units: disable job timeoutsZbigniew Jędrzejewski-Szmek2014-11-063-7/+0
| | | | | | | | | | | | | For boot, we might kill fsck in the middle, with likely catastrophic consequences. On shutdown there might be other jobs, like downloading of updates for installation, and other custom jobs. It seems better to schedule an individual timeout on each one separately, when it is known what timeout is useful. Disable the timeouts for now, until we have a clearer picture of how we can deal with long-running jobs.
* udev hwdb: Change error message regarding missing hwdb.bin back to debug.Colin Guthrie2014-11-051-1/+1
| | | | | | | | | When used in an initramfs, it's expected that the hwdb.bin file is not present (it makes for a very large initramfs otherwise). While it's nice to tell the user about this, as it's not strictly speaking an error we really shouldn't be so forceful in our reporting.
* util: minor modernisationsLennart Poettering2014-11-051-3/+6
|
* condition: rewrite condition_test_kernel_command_line() based on ↵Lennart Poettering2014-11-052-29/+35
| | | | unquote_first_word()