systemd/.git
7 years agoresolved: create /etc/resolv.conf symlink at runtime v239-8
Zbigniew Jędrzejewski-Szmek [Fri, 11 Mar 2016 22:06:17 +0000 (17:06 -0500)]
resolved: create /etc/resolv.conf symlink at runtime

If the symlink doesn't exists, and we are being started, let's
create it to provie name resolution.

If it exists, do nothing. In particular, if it is a broken symlink,
we cannot really know if the administator configured it to point to
a location used by some service that hasn't started yet, so we
don't touch it in that case either.

https://bugzilla.redhat.com/show_bug.cgi?id=1313085

7 years agojournal: change support URL shown in the catalog entries
Michal Sekletar [Mon, 15 Oct 2018 10:55:50 +0000 (10:55 +0000)]
journal: change support URL shown in the catalog entries

Resolves: #1550548

7 years agotests: backport test_setup_logging()
Michal Sekletar [Mon, 15 Oct 2018 10:54:11 +0000 (10:54 +0000)]
tests: backport test_setup_logging()

Related: #1635428

7 years agoIntroduce free_and_strndup and use it in bus-message.c
Zbigniew Jędrzejewski-Szmek [Mon, 9 Jul 2018 05:03:01 +0000 (07:03 +0200)]
Introduce free_and_strndup and use it in bus-message.c

v2: fix error in free_and_strndup()

When the orignal and copied message were the same, but shorter than specified
length l, memory read past the end of the buffer would be performed. A test
case is included: a string that had an embedded NUL ("q\0") is used to replace
"q".

v3: Fix one more bug in free_and_strndup and add tests.

v4: Some style fixed based on review, one more use of free_and_replace, and
make the tests more comprehensive.

(cherry picked from commit 7f546026abbdc56c453a577e52d57159458c3e9c)

Resolves: #1635428

7 years agobus-message: do not crash on message with a string of zero length
Zbigniew Jędrzejewski-Szmek [Mon, 9 Jul 2018 11:21:44 +0000 (13:21 +0200)]
bus-message: do not crash on message with a string of zero length

We'd calculate the "real" length of the string as 'item_size - 1', which does
not work out well when item_size == 0.

(cherry picked from commit 81b6e63029eefcb0ec03a3a7c248490e38106073)

Resolves: #1635439

7 years agounits: don't enable per-service IP firewall by default
Michal Sekletar [Fri, 12 Oct 2018 14:50:09 +0000 (14:50 +0000)]
units: don't enable per-service IP firewall by default

Resolves: #1630219

7 years agocryptsetup: do not define arg_sector_size if libgcrypt is v1.x (#9990)
Yu Watanabe [Sat, 1 Sep 2018 14:47:46 +0000 (23:47 +0900)]
cryptsetup: do not define arg_sector_size if libgcrypt is v1.x (#9990)

Follow-up for #9936.

(cherry picked from commit 645461f0cf6ec91e5b0b571559fb4cc4898192bc)

Related: #1572563

7 years agocryptsetup: add support for sector-size= option (#9936)
Dimitri John Ledkov [Wed, 29 Aug 2018 14:38:09 +0000 (15:38 +0100)]
cryptsetup: add support for sector-size= option (#9936)

Bug-Ubuntu: https://launchpad.net/bugs/1776626

Closes #8881.

(cherry picked from commit a9fc640671ef60ac949f1ace6fa687ff242fc233)

Resolves: #1572563

7 years agorandom-seed: raise POOL_SIZE_MIN constant to 1024
Michal Sekletar [Fri, 12 Oct 2018 13:58:34 +0000 (13:58 +0000)]
random-seed: raise POOL_SIZE_MIN constant to 1024

Resolves: #1619268

7 years agobus: move BUS_DONT_DESTROY calls after asserts
Zbigniew Jędrzejewski-Szmek [Wed, 18 Jul 2018 10:16:33 +0000 (12:16 +0200)]
bus: move BUS_DONT_DESTROY calls after asserts

It's not useful to bump the reference count before checking if the object is
NULL. Thanks to d40f5cc498 we can do this ;).

Related to https://bugzilla.redhat.com/show_bug.cgi?id=1576084,
https://bugzilla.redhat.com/show_bug.cgi?id=1575340,
https://bugzilla.redhat.com/show_bug.cgi?id=1575350. I'm not sure why those two
people hit this code path, while most people don't. At least we won't abort.

(cherry picked from commit 7ae8edcd03f74da123298330b76c3fc5425042ef)

Resolves: #1610397

7 years agojournal: remove journal audit socket
Michal Sekletar [Thu, 9 Aug 2018 21:23:00 +0000 (23:23 +0200)]
journal: remove journal audit socket

Resolves: #1614554

7 years agounits: drop DynamicUser=yes from systemd-resolved.service
Michal Sekletar [Thu, 9 Aug 2018 13:28:44 +0000 (15:28 +0200)]
units: drop DynamicUser=yes from systemd-resolved.service

We don't really need DynamicUser since we add systemd-resolve user
from rpm script

7 years agonet_setup_link: allow renaming interfaces that were renamed previously
Michal Sekletar [Tue, 7 Aug 2018 08:38:33 +0000 (10:38 +0200)]
net_setup_link: allow renaming interfaces that were renamed previously

7 years agoRevert "udev: remove WAIT_FOR key"
Michal Sekletar [Thu, 2 Aug 2018 11:16:49 +0000 (13:16 +0200)]
Revert "udev: remove WAIT_FOR key"

This reverts commit f2b8052fb648b788936dd3e85be6a9aca90fbb2f.

Resolves: #1523213

7 years agorules: introduce old-style by-path symlinks for FCP based SCSI devices
Michal Sekletar [Wed, 28 Mar 2018 15:22:30 +0000 (17:22 +0200)]
rules: introduce old-style by-path symlinks for FCP based SCSI devices

Related: #1523227

7 years agorules: disable auto-online of hot-plugged memory on IBM z Systems
Michal Sekletar [Fri, 16 Sep 2016 12:45:01 +0000 (14:45 +0200)]
rules: disable auto-online of hot-plugged memory on IBM z Systems

Related: #1523227

7 years agorules: don't hoplug memory on s390x
Lukas Nykryn [Tue, 13 Sep 2016 11:18:38 +0000 (13:18 +0200)]
rules: don't hoplug memory on s390x

Related: #1523227

7 years agorules: load sg driver also when scsi_target appears (#45)
Lukáš Nykrýn [Thu, 18 Aug 2016 12:51:19 +0000 (14:51 +0200)]
rules: load sg driver also when scsi_target appears (#45)

Related: #1523227

7 years agorules: prandom character device node permissions
Lukas Nykryn [Tue, 22 Sep 2015 10:28:28 +0000 (12:28 +0200)]
rules: prandom character device node permissions

Related: #1523227

7 years agorules: load sg module
Lukas Nykryn [Wed, 20 May 2015 10:34:18 +0000 (12:34 +0200)]
rules: load sg module

Related: #1523227

7 years agorules: reload sysctl settings when the bridge module is loaded
Lukas Nykryn [Wed, 13 May 2015 15:11:48 +0000 (17:11 +0200)]
rules: reload sysctl settings when the bridge module is loaded

Related: #1523227

7 years agorules: enable memory hotplug
Lukas Nykryn [Wed, 13 May 2015 14:56:44 +0000 (16:56 +0200)]
rules: enable memory hotplug

Related: #1523227

7 years agorules: add rule for naming Dell iDRAC USB Virtual NIC as 'idrac'
Michal Sekletar [Mon, 22 Sep 2014 05:53:52 +0000 (07:53 +0200)]
rules: add rule for naming Dell iDRAC USB Virtual NIC as 'idrac'

Related: #1523227

7 years agorules: automatically online hot-plugged CPUs
Michal Sekletar [Mon, 22 Sep 2014 05:41:06 +0000 (07:41 +0200)]
rules: automatically online hot-plugged CPUs

Related: #1523227

7 years agopid1: bump maximum number of process in user slice to 80% of pid_max
rpm-build [Wed, 1 Aug 2018 15:17:07 +0000 (17:17 +0200)]
pid1: bump maximum number of process in user slice to 80% of pid_max

Related: #1523236

7 years agoAvoid /tmp being mounted as tmpfs without the user's will
Jan Synacek [Tue, 15 May 2018 07:24:20 +0000 (09:24 +0200)]
Avoid /tmp being mounted as tmpfs without the user's will

Ensure PrivateTmp doesn't require tmpfs through tmp.mount, but rather
adds an After relationship.

rhel-only

Resolves: #1578772

7 years agopid1: bump DefaultTasksMax to 80% of the kernel pid.max value
rpm-build [Wed, 1 Aug 2018 11:19:39 +0000 (13:19 +0200)]
pid1: bump DefaultTasksMax to 80% of the kernel pid.max value

This should be hopefully high enough even for the very big deployments.

Resolves: #1523236

7 years agologind: set RemoveIPC to false by default
rpm-build [Wed, 1 Aug 2018 08:58:28 +0000 (10:58 +0200)]
logind: set RemoveIPC to false by default

Resolves: #1523233

7 years agobuild-sys: Detect whether struct statx is defined in sys/stat.h
Filipe Brandenburger [Mon, 16 Jul 2018 05:43:35 +0000 (22:43 -0700)]
build-sys: Detect whether struct statx is defined in sys/stat.h

Starting with glibc 2.27.9000-36.fc29, include file sys/stat.h will have a
definition for struct statx, in which case include file linux/stat.h should be
avoided, in order to prevent a duplicate definition.

    In file included from ../src/basic/missing.h:18,
     from ../src/basic/util.h:28,
     from ../src/basic/hashmap.h:10,
     from ../src/shared/bus-util.h:12,
     from ../src/libsystemd/sd-bus/bus-creds.c:11:
    /usr/include/linux/stat.h:99:8: error: redefinition of ‘struct statx’
     struct statx {
    ^~~~~
    In file included from /usr/include/sys/stat.h:446,
     from ../src/basic/util.h:19,
     from ../src/basic/hashmap.h:10,
     from ../src/shared/bus-util.h:12,
     from ../src/libsystemd/sd-bus/bus-creds.c:11:
    /usr/include/bits/statx.h:36:8: note: originally defined here
     struct statx
    ^~~~~

Extend our meson.build to look for struct statx when only sys/stat.h is
included and, in that case, do not include linux/stat.h anymore.

Tested that systemd builds correctly when using a glibc version that includes a
definition for struct statx.

glibc Fedora RPM update:
https://src.fedoraproject.org/rpms/glibc/c/28cb5d31fc1e5887912283c889689c47076278ae

glibc upstream commit:
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=fd70af45528d59a00eb3190ef6706cb299488fcd

7 years agomeson: bump package and library version v239
Lennart Poettering [Fri, 22 Jun 2018 11:03:47 +0000 (13:03 +0200)]
meson: bump package and library version

7 years agofinal touches to NEWS
Lennart Poettering [Fri, 22 Jun 2018 10:57:54 +0000 (12:57 +0200)]
final touches to NEWS

7 years agoman: small fixups for systemd-boot(8)
Zbigniew Jędrzejewski-Szmek [Fri, 22 Jun 2018 11:03:21 +0000 (13:03 +0200)]
man: small fixups for systemd-boot(8)

- "UEFI firmware" is a name, no need for an article
- The specification is more than "recommendation"

7 years agoman: correct the meaning of TimeoutStopSec= (#9325)
Jan Synacek [Fri, 22 Jun 2018 07:11:49 +0000 (09:11 +0200)]
man: correct the meaning of TimeoutStopSec= (#9325)

Fixes: #9325

7 years agotmpfile: do not specify mode and owner to /run/systemd/netif
Yu Watanabe [Fri, 22 Jun 2018 03:32:28 +0000 (12:32 +0900)]
tmpfile: do not specify mode and owner to /run/systemd/netif

Fixes #9369.

7 years agojournalctl: handle inotify exhaustion nicer
Kevin Kuehler [Tue, 19 Jun 2018 20:56:36 +0000 (13:56 -0700)]
journalctl: handle inotify exhaustion nicer

Instead of failing, log that inotify wds
are exhausted and fallback to -n switch.

Fixes #1296.

7 years agoudev: exclude DRBD from block device ownership event locking
Roland Kammerer [Thu, 21 Jun 2018 09:32:32 +0000 (11:32 +0200)]
udev: exclude DRBD from block device ownership event locking

It does not make sense for udev to even open DRBD block devices
(/dev/drbdX). It is on one hand not necessary as DRBD is controlled by
something else in the stack (e.g., pacemaker), and it even can get
cumbersome in various scenarios (e.g., DRBD9 auto-promote).

Closes: #9371

Signed-off-by: Roland Kammerer <roland.kammerer@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
7 years agoman: systemd.offline-updates: Document system-update-pre.target usage
Hans de Goede [Tue, 19 Jun 2018 12:33:59 +0000 (14:33 +0200)]
man: systemd.offline-updates: Document system-update-pre.target usage

7 years agoMerge pull request #9368 from yuwata/bash-completion-timedate
Zbigniew Jędrzejewski-Szmek [Thu, 21 Jun 2018 04:57:45 +0000 (06:57 +0200)]
Merge pull request #9368 from yuwata/bash-completion-timedate

follow-ups for 'timedatectl show'

7 years agoNEWS: mention 'timedatectl show'
Yu Watanabe [Thu, 21 Jun 2018 01:51:35 +0000 (10:51 +0900)]
NEWS: mention 'timedatectl show'

7 years agobash-completion: support 'timedatectl show'
Yu Watanabe [Thu, 21 Jun 2018 01:47:51 +0000 (10:47 +0900)]
bash-completion: support 'timedatectl show'

7 years agoNEWS: mention %E
Zbigniew Jędrzejewski-Szmek [Wed, 20 Jun 2018 22:08:36 +0000 (00:08 +0200)]
NEWS: mention %E

7 years agoMerge pull request #9366 from poettering/udev-wants-dep-fix
Zbigniew Jędrzejewski-Szmek [Wed, 20 Jun 2018 22:04:03 +0000 (00:04 +0200)]
Merge pull request #9366 from poettering/udev-wants-dep-fix

udev SYSTEMD_WANTS property fix

7 years agocore: explicitly trigger changing udev SYSTEMD_WANTS properties
Lennart Poettering [Wed, 20 Jun 2018 20:54:55 +0000 (22:54 +0200)]
core: explicitly trigger changing udev SYSTEMD_WANTS properties

This compensates for the unsynchronized reload cycles of systemd and
udev: we manually trigger the deps listed in SYSTEMD_WANTS properties if
they change for device units that are already up. That way all deps
defined that way will be triggered at least once: the first time the
unit goes up by the usual dependency logic, and if it already is up by
the device.c specific logic.

Fixes: #9323

7 years agoanalyze: use _cleanup_ for freeing the manager object
Lennart Poettering [Wed, 20 Jun 2018 20:22:22 +0000 (22:22 +0200)]
analyze: use _cleanup_ for freeing the manager object

7 years agoanalyze: use log_unit_error_errno()'s return value where we can
Lennart Poettering [Wed, 20 Jun 2018 20:22:03 +0000 (22:22 +0200)]
analyze: use log_unit_error_errno()'s return value where we can

7 years agotree-wide: pass NULL arguments to manager_startup() directly, avoid declaring unneede...
Lennart Poettering [Wed, 20 Jun 2018 20:19:26 +0000 (22:19 +0200)]
tree-wide: pass NULL arguments to manager_startup() directly, avoid declaring unneeded variables

7 years agounits: let's use two ExecStart= lines instead of ;
Lennart Poettering [Wed, 20 Jun 2018 19:39:28 +0000 (21:39 +0200)]
units: let's use two ExecStart= lines instead of ;

7 years agocore: use fflush_and_check() where appropriate
Lennart Poettering [Wed, 20 Jun 2018 17:38:30 +0000 (19:38 +0200)]
core: use fflush_and_check() where appropriate

7 years agoupdate TODO
Lennart Poettering [Wed, 20 Jun 2018 17:36:06 +0000 (19:36 +0200)]
update TODO

7 years agoMerge pull request #9365 from keszybz/condition-security-followup
Lennart Poettering [Wed, 20 Jun 2018 21:10:18 +0000 (23:10 +0200)]
Merge pull request #9365 from keszybz/condition-security-followup

ConditionSecurity= followup

7 years agotest-condition: extend tests to all ConditionSecurity= values
Zbigniew Jędrzejewski-Szmek [Wed, 20 Jun 2018 20:46:13 +0000 (22:46 +0200)]
test-condition: extend tests to all ConditionSecurity= values

Also print out what we detect, for manual verification.

7 years agoNEWS: mention ConditionSecurity=uefi-secureboot
Zbigniew Jędrzejewski-Szmek [Wed, 20 Jun 2018 20:35:36 +0000 (22:35 +0200)]
NEWS: mention ConditionSecurity=uefi-secureboot

Follow-up for be405b909e5d78b43e3af47e0d10cd84c714e2f3.

7 years agocondition: add new conditon ConditionSecurity=uefi-secureboot
Lennart Poettering [Wed, 20 Jun 2018 16:52:52 +0000 (18:52 +0200)]
condition: add new conditon ConditionSecurity=uefi-secureboot

We have the detector call for this anyway, and it's useful for
conditioning out dbxtool.service, hence let's add this tiny new option.

7 years agoMerge pull request #9363 from yuwata/specifier-config-dir
Zbigniew Jędrzejewski-Szmek [Wed, 20 Jun 2018 20:30:18 +0000 (22:30 +0200)]
Merge pull request #9363 from yuwata/specifier-config-dir

core: add unit specifier for configuration directory root

7 years agomeson: make DNS-over-TLS support optional
Yu Watanabe [Wed, 20 Jun 2018 16:29:49 +0000 (01:29 +0900)]
meson: make DNS-over-TLS support optional

This adds dns-over-tls option to meson. If set to 'false',
systemd-resolved is not linked with libgnutls.

7 years agoMerge pull request #9350 from poettering/bls-fixes
Zbigniew Jędrzejewski-Szmek [Wed, 20 Jun 2018 20:22:06 +0000 (22:22 +0200)]
Merge pull request #9350 from poettering/bls-fixes

various fixes to the systemd-boot documentation

7 years agosystemctl: mask always reports the same unit names when different unknown units are...
Franck Bui [Wed, 20 Jun 2018 16:09:38 +0000 (18:09 +0200)]
systemctl: mask always reports the same unit names when different unknown units are passed

Before this patch:

  # systemctl --runtime mask abuild.mount does-not-exist.mount does-also-not-exist.mount
  Unit abuild.mount does not exist, proceeding anyway.
  Unit abuild.mount does not exist, proceeding anyway.
  Unit abuild.mount does not exist, proceeding anyway.
  Created symlink /run/systemd/system/abuild.mount → /dev/null.
  Created symlink /run/systemd/system/does-not-exist.mount → /dev/null.
  Created symlink /run/systemd/system/does-also-not-exist.mount → /dev/null.

After this patch:

  # systemctl --runtime mask abuild.mount does-not-exist.mount does-also-not-exist.mount
  Unit abuild.mount does not exist, proceeding anyway.
  Unit does-not-exist.mount does not exist, proceeding anyway.
  Unit does-also-not-exist.mount does not exist, proceeding anyway.
  Created symlink /run/systemd/system/abuild.mount → /dev/null.
  Created symlink /run/systemd/system/does-not-exist.mount → /dev/null.
  Created symlink /run/systemd/system/does-also-not-exist.mount → /dev/null.

7 years agotest: add test for specifier of configuration directory root
Yu Watanabe [Wed, 20 Jun 2018 18:24:09 +0000 (03:24 +0900)]
test: add test for specifier of configuration directory root

7 years agocore: add unit specifier for configuration directory root
Yu Watanabe [Wed, 20 Jun 2018 18:20:34 +0000 (03:20 +0900)]
core: add unit specifier for configuration directory root

Follow-up for 14068e17f32a06e6a1f8f72416018bc653b8ea2d.

7 years agounits: fix typo in After=
Zbigniew Jędrzejewski-Szmek [Wed, 20 Jun 2018 14:35:23 +0000 (16:35 +0200)]
units: fix typo in After=

Followup for c7668c1ce04fa85370432d197d2ccd9411e85649.

7 years agotest-sizeof: another aproach to _Float128 availability detection
Zbigniew Jędrzejewski-Szmek [Wed, 20 Jun 2018 10:38:36 +0000 (12:38 +0200)]
test-sizeof: another aproach to _Float128 availability detection

7 years agoNEWS: document that the BLS is now part of our tree
Lennart Poettering [Wed, 20 Jun 2018 09:54:25 +0000 (11:54 +0200)]
NEWS: document that the BLS is now part of our tree

7 years agoman: update systemd-boot(7) man page in many ways
Lennart Poettering [Wed, 20 Jun 2018 09:59:11 +0000 (11:59 +0200)]
man: update systemd-boot(7) man page in many ways

Let's fully document where the list of entries come from, including unified
images and such.

Let's add a "Files" section (replacing the "Configuration" section), and
let's move it after they keybinding section (why? because keybinds are
primary UI material, while configuration is one level more complex than
that).

Also, reword lot's of stuff to make it more precise.

Fixes: #5127

7 years agoman: fix URL to BLS
Lennart Poettering [Wed, 20 Jun 2018 09:56:39 +0000 (11:56 +0200)]
man: fix URL to BLS

Let's refer to our own version now.

7 years agodoc: document the `architecture` setting
Lennart Poettering [Wed, 20 Jun 2018 09:55:45 +0000 (11:55 +0200)]
doc: document the `architecture` setting

7 years agodoc: allow multiple initrd entries per BLS snippet
Lennart Poettering [Wed, 20 Jun 2018 09:54:52 +0000 (11:54 +0200)]
doc: allow multiple initrd entries per BLS snippet

sd-boot already supports that anyway, and the Fedora folks asked for
this on the fedora mailing list, hence let's simply add this.

7 years agodoc: update BLS links list
Lennart Poettering [Wed, 20 Jun 2018 09:13:41 +0000 (11:13 +0200)]
doc: update BLS links list

let's make these proper links

7 years agodoc: add a second indentation level to partition list, to separate MBR and GPT partitions
Lennart Poettering [Wed, 20 Jun 2018 09:13:22 +0000 (11:13 +0200)]
doc: add a second indentation level to partition list, to separate MBR and GPT partitions

7 years agotree-wide: drop MSG_NOSIGNAL flag from recvmsg() invocations
Lennart Poettering [Wed, 20 Jun 2018 11:01:51 +0000 (13:01 +0200)]
tree-wide: drop MSG_NOSIGNAL flag from recvmsg() invocations

MSG_NOSIGNAL is only defined for sendmsg(), not for recvmsg(), hence
let's drop it's use, in particular as it appears to create problems on
older kernels. See:

https://lists.freedesktop.org/archives/systemd-devel/2018-June/040869.html

7 years agoupdate NEWS contributors list again
Lennart Poettering [Wed, 20 Jun 2018 09:06:17 +0000 (11:06 +0200)]
update NEWS contributors list again

7 years agoRevert "mention alias for poweroff in machinectl --help"
Lennart Poettering [Wed, 20 Jun 2018 11:22:52 +0000 (13:22 +0200)]
Revert "mention alias for poweroff in machinectl --help"

This reverts commit bebd5382ba4c820377f05e1e518c6dfd96b278be.

For the reasoning, see: https://github.com/systemd/systemd/pull/9342#issuecomment-398715417

7 years agounits: make system-update-pre.target a passive unit (#9349)
Lennart Poettering [Wed, 20 Jun 2018 10:46:18 +0000 (12:46 +0200)]
units: make system-update-pre.target a passive unit (#9349)

This is an additional synchronization point normally not needed. Hence,
let's make it passive, i.e. pull it in from the unit which wants to be
ordered before the update service rather than by the update service
itself.

7 years agoMerge pull request #9348 from keszybz/copyright-removal
Lennart Poettering [Wed, 20 Jun 2018 10:27:56 +0000 (12:27 +0200)]
Merge pull request #9348 from keszybz/copyright-removal

Copyright removal

7 years agoDrop copyrights tags for "systemd authors"
Zbigniew Jędrzejewski-Szmek [Wed, 20 Jun 2018 10:11:00 +0000 (12:11 +0200)]
Drop copyrights tags for "systemd authors"

7 years agobasic/bpf-program: drop obsolete comment
Zbigniew Jędrzejewski-Szmek [Wed, 20 Jun 2018 10:07:38 +0000 (12:07 +0200)]
basic/bpf-program: drop obsolete comment

As far as I can see, nothing in that particular file is from the
kernel. Let's just drop the comment.

7 years agotree-wide: drop copyright headers from frequent contributors
Zbigniew Jędrzejewski-Szmek [Wed, 20 Jun 2018 09:58:53 +0000 (11:58 +0200)]
tree-wide: drop copyright headers from frequent contributors

Fixes #9320.

for p in Shapovalov Chevalier Rozhkov Sievers Mack Herrmann Schmidt Rudenberg Sahani Landden Andersen Watanabe; do
  git grep -e 'Copyright.*'$p -l|xargs perl -i -0pe 's|/([*][*])?[*]\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\s*[*]([*][*])?/\n*|\n|gms; s|\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\n*|\n|gms'
done

7 years agoshared/path-lookup: remove unnecessary 'if' to help gcc
Zbigniew Jędrzejewski-Szmek [Wed, 20 Jun 2018 06:17:38 +0000 (08:17 +0200)]
shared/path-lookup: remove unnecessary 'if' to help gcc

Fixes #9343.

7 years agoresolve: fix log message
Yu Watanabe [Tue, 19 Jun 2018 12:01:57 +0000 (21:01 +0900)]
resolve: fix log message

7 years agoresolve: do not log about negative cache for mdns packets
Yu Watanabe [Tue, 19 Jun 2018 12:01:36 +0000 (21:01 +0900)]
resolve: do not log about negative cache for mdns packets

Fixes #9335.

7 years agomention alias for poweroff in machinectl --help
Christian Rebischke [Tue, 19 Jun 2018 22:53:23 +0000 (00:53 +0200)]
mention alias for poweroff in machinectl --help

This commit adds the stop alias to the output of `machinectl --help`.
In the past we only mention this in the man page. It's nice to mention
this in the output `machinectl --help` as well.

7 years agonetworkd: Unify set MTU
Susant Sahani [Thu, 14 Jun 2018 17:19:25 +0000 (22:49 +0530)]
networkd: Unify set MTU

Now the setting MTU is embedded into the link_up message which makes it
incapable of setting MTU if link is up. MTU can be set while Link is up.

Closes #9254

7 years agopo: update French translation
Sylvain Plantefève [Tue, 19 Jun 2018 19:01:36 +0000 (21:01 +0200)]
po: update French translation

7 years agopo: update Polish translation
Piotr Drąg [Tue, 19 Jun 2018 15:06:58 +0000 (17:06 +0200)]
po: update Polish translation

7 years agoMerge the "boot loader specification" wiki page
Zbigniew Jędrzejewski-Szmek [Tue, 19 Jun 2018 12:03:25 +0000 (14:03 +0200)]
Merge the "boot loader specification" wiki page

7 years agoAdd description of field correspondence
Zbigniew Jędrzejewski-Szmek [Tue, 19 Jun 2018 11:52:04 +0000 (13:52 +0200)]
Add description of field correspondence

7 years agounits: Add new system-update-pre.target
Hans de Goede [Tue, 19 Jun 2018 08:50:41 +0000 (10:50 +0200)]
units: Add new system-update-pre.target

systemd offline-updates allows dropping multiple system update units
to be added to system-update.target.wants.

As documented in systemd.offline-updates(7) only 1 of these units
should actually be active (based on the /system-update symlink) and
when that unit is done it should reboot the system.

In some cases it is desirable to run a unit whenever booting in
offline-updates mode indepedent of which update unit is going to
handle the update. One example of this is integration with bootloader
code which checks if the previous boot was succesful.

Since the active unit will reboot the system when it is done, there
is no guarantee that adding such a unit to system-update.target.wants
will get it executed always.

This commit adds a system-update-pre.target which can be used for
units which should always run when booting in offline-updates mode.

7 years agoAlso add link to the systemd-boot man page
Zbigniew Jędrzejewski-Szmek [Tue, 19 Jun 2018 10:59:54 +0000 (12:59 +0200)]
Also add link to the systemd-boot man page

Note that the link is dead right now, because we haven't released v239
which contains the rename sd-boot → systemd-boot.

7 years agoAdd a description of unified kernel images
Zbigniew Jędrzejewski-Szmek [Tue, 19 Jun 2018 10:56:26 +0000 (12:56 +0200)]
Add a description of unified kernel images

7 years agoRename sd-boot to systemd-boot
Zbigniew Jędrzejewski-Szmek [Tue, 19 Jun 2018 07:36:55 +0000 (09:36 +0200)]
Rename sd-boot to systemd-boot

C.f. 70c8db755558927bdea56e9571c5d71300a81e8e.

7 years agoWording and formatting updates
Zbigniew Jędrzejewski-Szmek [Tue, 19 Jun 2018 07:33:16 +0000 (09:33 +0200)]
Wording and formatting updates

UTF-8 is not a character set. Unicode is the character set. UTF-* are encodings.

7 years agoscsi_id: Fixup prefix for pre-SPC inquiry reply
Hannes Reinecke [Wed, 13 Sep 2017 07:08:28 +0000 (09:08 +0200)]
scsi_id: Fixup prefix for pre-SPC inquiry reply

The prefix for EMC Symmetrix pre-SPC VPD inquiry reply
is always SCSI_ID_NAA, so we need to hardcode it to
avoid false values here.

Signed-off-by: Hannes Reinecke <hare@suse.com>
7 years agoBLS: allow /boot, /efi, and mention /boot/efi
Zbigniew Jędrzejewski-Szmek [Mon, 18 Jun 2018 15:55:50 +0000 (17:55 +0200)]
BLS: allow /boot, /efi, and mention /boot/efi

7 years agoBLS: remove trailing whitespace
Zbigniew Jędrzejewski-Szmek [Mon, 18 Jun 2018 15:50:23 +0000 (17:50 +0200)]
BLS: remove trailing whitespace

7 years agoReference sd-boot/bootctl instead of gummiboot
Zbigniew Jędrzejewski-Szmek [Thu, 21 Apr 2016 04:27:37 +0000 (04:27 +0000)]
Reference sd-boot/bootctl instead of gummiboot

https://github.com/systemd/systemd/issues/2751

7 years agoUpdate link to grub2 patch
Harald Hoyer [Thu, 18 Dec 2014 13:46:28 +0000 (05:46 -0800)]
Update link to grub2 patch

7 years agoRequire a VFAT filesystem
Lennart Poettering [Thu, 20 Mar 2014 03:28:52 +0000 (20:28 -0700)]
Require a VFAT filesystem

7 years agoRename back to "The Boot Loader Specification"
Lennart Poettering [Fri, 7 Mar 2014 03:58:09 +0000 (19:58 -0800)]
Rename back to "The Boot Loader Specification"

7 years agoAdd table of GPT identifiers
Lennart Poettering [Fri, 7 Mar 2014 03:55:06 +0000 (19:55 -0800)]
Add table of GPT identifiers

7 years agoRename to "The Discoverable Partitions Specification"
Lennart Poettering [Fri, 7 Mar 2014 03:54:36 +0000 (19:54 -0800)]
Rename to "The Discoverable Partitions Specification"

7 years agoDrop 'fdt', 'devicetreedir', 'fdtdir' description again
Kay Sievers [Sat, 1 Feb 2014 17:08:23 +0000 (09:08 -0800)]
Drop 'fdt', 'devicetreedir', 'fdtdir' description again