| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
https://bugs.debian.org/767267
|
|
|
|
| |
Reads the basename of the target of a symlink.
|
|
|
|
| |
CID# 1251163
|
|
|
|
| |
utf8_is_printable_newline()
|
|
|
|
| |
CID# 1251162
|
|
|
|
|
| |
Use the same robust logic of mkdir + unlink of any existing AF_UNIX
socket, ignoring the return value, right before bind().
|
| |
|
| |
|
|
|
|
| |
Also simplify the code a bit by moving mkdir to the common path.
|
| |
|
| |
|
|
|
|
| |
it static
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Also, make all parsing of the kernel cmdline non-fatal.
|
| |
|
|
|
|
|
| |
After all, this is about files, not arguments, hence EFBIG is more
appropriate than E2BIG
|
|
|
|
| |
sendfile_full() by it
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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").
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
endocode
|
|
|
|
|
| |
We do this in the clean shutdown path in shutdown.c, hence we should do
is for "reboot -f", too.
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
Now that we only have one file with condition implementations around, we
can drop the -util suffix and simplify things a bit.
|
|
|
|
|
|
|
| |
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].
|
|
|
|
| |
<!-- xml comments are useful! -->
|
|
|
|
| |
useful and simply confusing
|
|
|
|
| |
Yes, sometimes I develop OCD.
|
|
|
|
| |
fatal for a start job if not met
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Also, implement the negation check inside of condition_test() instead of
individually in each test function.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
unquote_first_word()
|