summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-04-16manager: pass correct errno to strerror()v217-stableMichael Biebl1-1/+1
have_ask_password contains negative error values which have to be negated when being passed to strerror().
2014-11-06timer: reenable TIMER_ACTIVE timers when restartedMichael Chapman1-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. (cherry picked from commit 779042e772d2459f7649b34a164902dc456f1bab)
2014-11-06shutdown: fix arguments to /run/initramfs/shutdownMichal Schmidt1-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. (cherry picked from commit 4b5d8d0f22ae61ceb45a25391354ba53b43ee992)
2014-11-06switch-root: explain why we don't care about base_filesystem_create() failingLennart Poettering1-0/+5
(cherry picked from commit 64e18fd626838c3500e28b4dbf86ed62206fff47)
2014-11-06shared: create files even if the SELinux policy has no context for themMichal Schmidt1-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"). (cherry picked from commit 2d58aa4692e9fc47911bff5d064ba3e328c35369)
2014-11-06switch_root: do not fail, if base_filesystem_create() failedHarald Hoyer1-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. (cherry picked from commit 6d0f91bf551464c57bc12f99deccd515fb3f628d)
2014-11-06systemctl: when invokes as "reboot -f", sync()Lennart Poettering1-2/+7
We do this in the clean shutdown path in shutdown.c, hence we should do is for "reboot -f", too. (cherry picked from commit 4a3ad39957399c4a30fc472a804e72907ecaa4f9)
2014-11-06hostnamed: introduce new "embedded" chassis typeLennart Poettering4-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. (cherry picked from commit 25fa306ed58b0b7fe30ca9be37c66a7b3b2de70e)
2014-11-06login: rerun vconsole-setup when switching from vgacon to fbconRay Strode2-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) (cherry picked from commit f6ba8671d83f9fce9a00045d8fa399a1c07ba7fc)
2014-11-06units: disable job timeoutsZbigniew Jędrzejewski-Szmek3-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. (cherry picked from commit 038193efa6c00e852110f17383ef2786136f4f81) https://bugzilla.redhat.com/show_bug.cgi?id=1152220
2014-11-06manager: Ensure user's systemd runtime directory exists.Colin Guthrie1-4/+8
This mirrors code in dbus.c when creating the private socket and avoids error messages like: systemd[1353]: bind(/run/user/603/systemd/notify) failed: No such file or directory systemd[1353]: Failed to fully start up daemon: No such file or directory (cherry picked from commit 0c3f25e0c1f028d4da9cc5253abf0322230e6835)
2014-11-06udev: avoid magic constants in kernel-cmdline parsersDavid Herrmann1-12/+12
Lets recognize the fact that startswith() returns a pointer to the tail on success. Use it instead of hard-coding string-lengths as magic constants. (cherry picked from commit cfe2061add5479710f6597899d632e64c54e62ef)
2014-11-06udev: Fix parsing of udev.event-timeout kernel parameter.Richard W.M. Jones1-2/+2
(cherry picked from commit f671774f52838d35d78e62ddcb781b5b65b3373f)
2014-11-06buildsys: test-util needs -lm for fabs()Cristian Rodríguez1-0/+1
(cherry picked from commit 01acf6c3b7390e8c47b7a5cd7cae4bcbd2846634)
2014-11-06units: make systemd-journald.service Type=notifyMichal Schmidt1-0/+1
It already calls sd_notify(), so it looks like an oversight. Without it, its ordering to systemd-journal-flush.service is non-deterministic and the SIGUSR1 from flushing may kill journald before it has its signal handlers set up. https://bugs.freedesktop.org/show_bug.cgi?id=85871 https://bugzilla.redhat.com/show_bug.cgi?id=1159641 (cherry picked from commit a87a38c20196a4aeb56b6ba71d688eefd0b21c30) Conflicts: units/systemd-journald.service.in
2014-11-06man/tmpfiles.d: fix typoJan Synacek1-2/+2
(cherry picked from commit ff8d1aba5378949c352147cf348aaeafd7221716)
2014-11-06localectl: fix localectl set-x11-keymap syntax descriptionJan Synacek1-1/+1
This complements the fix in: commit cd4c6fb12598435fe24431f1dd616f9582f0e3bd Author: Jan Synacek <jsynacek@redhat.com> Date: Mon Oct 20 12:43:39 2014 +0200 man: fix localectl set-x11-keymap syntax description (cherry picked from commit 31cf921abbeafc9dae2d5c777f3e2285e6f4c19d)
2014-11-06journal: when dumping log data with missing COMM fields, show "unknown" insteadLennart Poettering1-1/+1
A small readability improvement... (cherry picked from commit 1248e84008028ae54326c565fcc65dcbce3556ad)
2014-11-06journald: fix memory leak on error pathLennart Poettering1-1/+5
(cherry picked from commit 26d8ff04914a5208d029e899682cd314b7714bf0)
2014-11-06journald: fix minor memory leakLennart Poettering1-0/+1
(cherry picked from commit 99d0966e75a984bed4f117c888ecc93e16e7b7b6)
2014-11-06man: sd_event_add_post - fix typoTom Gundersen1-1/+1
(cherry picked from commit f49481d0ca170ea567b46fde6c1c089b1dbb49cb)
2014-11-06units: order sd-journal-flush after sd-remount-fsZbigniew Jędrzejewski-Szmek1-0/+1
Otherwise we could attempt to flush the journal while /var/log/ was still ro, and silently skip journal flushing. The way that errors in flushing are handled should still be changed to be more transparent and robust. (cherry picked from commit 1f1926aa5e836caa3bd6df43704aecd606135103)
2014-11-06unit: do not order timers.target before basic.targetZbigniew Jędrzejewski-Szmek2-1/+7
Since commit 19f8d037833f2 'timer: order OnCalendar units after timer-sync.target if DefaultDependencies=no' timers might get a dependency on time-sync.target, which does not really belong in early boot. If ntp is enabled, time-sync.target might be delayed until a network connection is established. It turns out that majority of timer units found in the wild do not need to be started in early boot. Out of the timer units available in Fedora 21, only systemd-readahead-done.timer and mdadm-last-resort@.timer should be started early, but they both have DefaultDependencies=no, so are not part of timers.target anyway. All the rest look like they will be fine with being started a bit later (and the majority even much later, since they run daily or weekly). Let timers.target be pulled in by basic.target, but without the temporal dependency. This means timer units are started on a "best effort" schedule. https://bugzilla.redhat.com/show_bug.cgi?id=1158206 (cherry picked from commit 3b0217036040a6013faeab4eb9da7469e3bbcfb3)
2014-11-06manager: do not print timing when running in test modeZbigniew Jędrzejewski-Szmek1-38/+46
(cherry picked from commit 56dacdbc1ca95cef8bf8c97c0d7af761a71eaab3)
2014-11-06Raise level of 'Found dependency...' linesZbigniew Jędrzejewski-Szmek1-3/+3
This way they always show up together with 'Found ordering cycle...'. Ordering cycles are a serious error and a major pain to debug. If quiet is enabled, only the first and the last line of output are shown: systemd[1]: Found ordering cycle on basic.target/start systemd[1]: Breaking ordering cycle by deleting job timers.target/start systemd[1]: Job timers.target/start deleted to break ordering cycle starting with basic.target/start which isn't particularly enlightening. So just show the whole message at the same level. https://bugzilla.redhat.com/show_bug.cgi?id=1158206 (cherry picked from commit 14fe721b5f6d8457cc8737fa75f2ed79e7fa534b)
2014-11-06libudev: Use correct free functionColin Walters1-1/+1
FILE * wants cleanup_fclose(). Spotted by udev hwdb segfaulting in gnome-continuous' buildroot construction. (cherry picked from commit ea55caa60c6860e33fa4f1a216c003ff666e9c68)
2014-11-06scsi_id: fix usage spellingJoe Lawrence1-2/+2
s/threat/treat/g (cherry picked from commit 85f13fce322e6303e7e4e55cb43104f81827f36b)
2014-11-06kernel-install/90-loaderentry.install: fix cmdline parsingMichael Chapman1-1/+1
A recent commit (2f3a215) changed the parsing of /proc/cmdline to use a shell array. Unfortunately, this introduced a bug: "read -ar line" populates the shell variable $r, not $line. This breaks installation of new loader entries: # kernel-install add 3.17.1-304.fc21.x86_64 \ /boot/vmlinuz-3.17.1-304.fc21.x86_64 Could not determine the kernel command line parameters. Please specify the kernel command line in /etc/kernel/cmdline! This commit alters the read command to correctly populate the $line array instead. (cherry picked from commit c008f6ee8df9aa36782378d1a3767543b3635a54) https://bugzilla.redhat.com/show_bug.cgi?id=1158035
2014-11-06systemd-journal-flush.service: remove "trigger" from descriptionZbigniew Jędrzejewski-Szmek2-4/+5
This service is now synchronous, so "trigger" is misleading. (cherry picked from commit a65b82457735df2ef58736a55846f400124a8dc0)
2014-11-06man: explain journalctl --flush correctlyUmut Tezduyar Lindskog2-2/+6
(cherry picked from commit 2a97b03b3b087e724867e7501ae0c1535ee35031)
2014-11-06core: improve error message when machine id is missingJan Synacek1-5/+12
(cherry picked from commit 86fb9ca7ae49790880d4b3ce523988b01b13d9ae)
2014-11-06sd-dhcp6-client: fix off-by-two error in DUID lengthDan Williams1-5/+5
The duid data passed by the caller does not include the DUID type, but sd_dhcp6_client_set_duid() was treating it like it did. (cherry picked from commit 393b6f28ecec537f05567c4ec8af8c499d0ea226)
2014-11-06man: describe all log levels in udevadm(8)Zbigniew Jędrzejewski-Szmek1-3/+8
https://bugs.freedesktop.org/show_bug.cgi?id=85657 (cherry picked from commit e03234a16047dc635d13f7118fc9fcf243744b51)
2014-11-06libudev: do not accept invalid log levelsZbigniew Jędrzejewski-Szmek2-6/+23
Invalid log levels lead to a assert failure later on. https://bugs.freedesktop.org/show_bug.cgi?id=85657 (cherry picked from commit ee7122c0ec6aa11f02e9e8d94254b353f12d2c14)
2014-11-06libudev: modernizationZbigniew Jędrzejewski-Szmek1-5/+4
This brings udev logging style a bit closer to normal systemd convention. (cherry picked from commit fe756ed9ec2c0fa33c30b1d9a33d745dc1593aed)
2014-11-06hwdb: Update database of Bluetooth company identifiersMarcel Holtmann1-0/+57
(cherry picked from commit 5d20fde4a5c4dff4d7c737b545fbd13582d544c1)
2014-11-06units: don't order journal flushing afte remote-fs.targetLennart Poettering2-23/+18
Instead, only depend on the actual file systems we need. This should solve dep loops on setups where remote-fs.target is moved into late boot. (cherry picked from commit 919699ec301ea507edce4a619141ed22e789ac0d)
2014-11-06nspawn: don't make up -1 as error codeLennart Poettering1-16/+11
(cherry picked from commit fddbb89c46ea5d39e52e361b390ea34a06cbb67c)
2014-11-06shared/install: avoid prematurely rejecting "missing" unitsDave Reisner1-5/+3
f7101b7368df copied some logic to prevent enabling masked units, but also added a check which causes attempts to enable templated units to fail. Since we know the logic beyond this check will properly handle units which truly do not exist, we can rely on the unit file state comparison to suffice for expressing the intent of f7101b7368df. ref: https://bugs.archlinux.org/task/42616 (cherry picked from commit 0ffce503cd6e5a5ff5ba5cd1cc23684cfb8bb9e3)
2014-11-06shared: fix typoRonny Chevalier1-2/+2
(cherry picked from commit d3774a1b15ea86f6156269e7ed813830f0c4abb8)
2014-11-06shared: add missing includesRonny Chevalier2-0/+7
(cherry picked from commit 81a12ba6ec2f8514b7d35f0c39a96cc74bb14019)
2014-11-06remove references of readaheadRonny Chevalier3-9/+0
(cherry picked from commit cb607ecb84b3cb7299438ca6f7fab705b0a6de45)
2014-11-06sd-dhcp-client: clean up raw socket sd_event_source when creating new UDP socketDan Williams1-0/+3
The raw socket sd_event_source used for DHCP server solicitations was simply dropped on the floor when creating the new UDP socket after a lease has been acquired. Clean it up properly so we're not still listening and responding to events on it. (cherry picked from commit affaa94fc38a980a70534f70f6a6c58a4129b062)
2014-11-06snapshot: return error when snapshot existsZbigniew Jędrzejewski-Szmek1-1/+1
(cherry picked from commit 7cabba07745b388497e8c0fc19b61984167fd474)
2014-11-06sysusers: Preserve ownership and mode on /etc/passwd and friendsColin Guthrie1-20/+41
When running sysusers we would clobber file ownership and permissions on the files /etc/passwd, /etc/group and /etc/[g]shadow. This simply preserves the ownership and mode if existing files are found. (cherry picked from commit e3c72c21d62aadabf4df436c3e2c7219eeeccc1c)
2014-11-06keymap: Ignore brightness keys on Dell Inspiron 1520 to avoid double eventsHans de Goede1-0/+5
On the Dell Inspiron 1520 both the atkbd and acpi-video input devices report an event for pressing the brightness up / down key-combos, resulting in user space seeing double events and increasing / decreasing the brightness 2 steps for each keypress. This hwdb snippet suppresses the atkbd events, making the Inspiron 1520 work like most modern laptops which emit brightness up / down events through acpi-video only. Reported by Pavel Malyshev <p.malishev@gmail.com> https://bugzilla.redhat.com/show_bug.cgi?id=1141525 (cherry picked from commit aba248ee6b1eb10baf3d89eca2ad7569459af6ab)
2014-11-06zsh-completion: update start/restart completionsZbigniew Jędrzejewski-Szmek1-7/+21
Now zsh should behave the same for those two subcommands as bash. (cherry picked from commit 81333ecf9d5497f8aa95f7fec23c67b869d5abf9)
2014-11-06bash-completion: use improved filtering to make things fasterZbigniew Jędrzejewski-Szmek1-5/+11
(cherry picked from commit 372b221166eb586c4f767969f442ed940e21f353)
2014-11-06systemctl: obey --state in list-unit-filesZbigniew Jędrzejewski-Szmek1-0/+5
(cherry picked from commit fec1530e6b5b8d6dc352c7338010357126e84621)
2014-11-06systemctl: let list-{units,unit-files } honour --typeZbigniew Jędrzejewski-Szmek1-11/+37
The docs don't clarify what is expected, but I don't see any reason why --type should be ignored. Also restucture the compund conditions into separate clauses for easier reading. (cherry picked from commit 6c71341aeecc3d092ed90f66e1b2c481b8e260ff)