]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
5 years agoNEWS: document that the BLS is now part of our tree 9350/head
Lennart Poettering [Wed, 20 Jun 2018 09:54:25 +0000 (11:54 +0200)] 
NEWS: document that the BLS is now part of our tree

5 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
5 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.

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

5 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.

5 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

5 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

5 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

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

5 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

5 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.

5 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

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

5 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.

5 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

5 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.

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

5 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.

5 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.

5 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

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

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

5 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

5 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

5 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.

5 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.

5 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

5 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.

5 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.

5 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>
5 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

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

5 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

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

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

5 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"

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

5 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"

5 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

5 years agoUpdate 'devicetreedir' description
Harald Hoyer [Fri, 24 Jan 2014 18:17:27 +0000 (10:17 -0800)] 
Update 'devicetreedir' description

5 years agoAdd fdt, devicetreedir and fdtdir
Harald Hoyer [Fri, 24 Jan 2014 18:16:47 +0000 (10:16 -0800)] 
Add fdt, devicetreedir and fdtdir

5 years agoAdd 'devicetree'
Kay Sievers [Tue, 8 Oct 2013 13:03:40 +0000 (06:03 -0700)] 
Add 'devicetree'

5 years agoUpdate formatting
Kay Sievers [Tue, 8 Oct 2013 12:48:30 +0000 (05:48 -0700)] 
Update formatting

5 years agoFix Fedora Grub2 Boot Loader Speficiation patch
Colin Guthrie [Wed, 3 Jul 2013 09:09:58 +0000 (02:09 -0700)] 
Fix Fedora Grub2 Boot Loader Speficiation patch

5 years agoAdd links
Kay Sievers [Tue, 4 Jun 2013 07:12:23 +0000 (00:12 -0700)] 
Add links

5 years agoSplit paragraphs
Harald Hoyer [Thu, 30 May 2013 13:36:08 +0000 (06:36 -0700)] 
Split paragraphs

5 years agofixed example file
Harald Hoyer [Thu, 30 May 2013 13:29:15 +0000 (06:29 -0700)] 
fixed example file

5 years agomoin2mdwn: convert page Specifications/BootLoaderSpec
Harald Hoyer [Thu, 30 May 2013 13:23:08 +0000 (06:23 -0700)] 
moin2mdwn: convert page Specifications/BootLoaderSpec

[zj: change file path and name and extension]

5 years agoadd _AUDIT_TYPE_NAME field to audit records in the journal
Jérémy Rosen [Sun, 17 Jun 2018 13:20:17 +0000 (15:20 +0200)] 
add _AUDIT_TYPE_NAME field to audit records in the journal

5 years agoresolved: move dot to end of sentence
Zbigniew Jędrzejewski-Szmek [Tue, 19 Jun 2018 06:41:29 +0000 (08:41 +0200)] 
resolved: move dot to end of sentence

Noticed in #9285.

5 years agoman: avoid "predicate" in coredumpctl match description
Zbigniew Jędrzejewski-Szmek [Tue, 19 Jun 2018 06:35:43 +0000 (08:35 +0200)] 
man: avoid "predicate" in coredumpctl match description

"Predicate" might not be clear to everyone, it is a CS term.

Fixes #9324.

5 years agosd-bus: fix typo in comment
Yu Watanabe [Tue, 19 Jun 2018 05:17:02 +0000 (14:17 +0900)] 
sd-bus: fix typo in comment

5 years agotree-wide: do not assign values if not used
Yu Watanabe [Tue, 19 Jun 2018 05:09:13 +0000 (14:09 +0900)] 
tree-wide: do not assign values if not used

5 years agoMerge pull request #9330 from yuwata/ja-po-portable
Zbigniew Jędrzejewski-Szmek [Tue, 19 Jun 2018 06:37:36 +0000 (08:37 +0200)] 
Merge pull request #9330 from yuwata/ja-po-portable

portable: update polkit messages

5 years agomount: do not output (null) in option
Yu Watanabe [Tue, 19 Jun 2018 02:00:56 +0000 (11:00 +0900)] 
mount: do not output (null) in option

Fixes #9327.

5 years agopo: update Japanese translations 9330/head
Yu Watanabe [Tue, 19 Jun 2018 04:27:15 +0000 (13:27 +0900)] 
po: update Japanese translations

5 years agoportable: update polkit messages
Yu Watanabe [Tue, 19 Jun 2018 04:21:17 +0000 (13:21 +0900)] 
portable: update polkit messages

5 years agoCorrect a number of trivial typos.
Chris Lamb [Mon, 18 Jun 2018 20:43:12 +0000 (22:43 +0200)] 
Correct a number of trivial typos.

5 years agopo: update Russian translation
Sergey Ptashnick [Fri, 15 Jun 2018 21:07:55 +0000 (00:07 +0300)] 
po: update Russian translation

Portable service stuff.

Translated "inspect portable service" as "прочитать образ переносимой
службы" ("read the portable service image"), because there is no exact
Russian analog for "inspect" ("инспектировать" has a slightly different
meaning). I think reading (some data from) images is the main job for
bus_image_common_get_metadata and bus_image_common_get_os_release, so
this translation will be more or less correct.

5 years agodo not filter out deprecated USER audit messages
Jérémy Rosen [Sat, 16 Jun 2018 08:34:41 +0000 (10:34 +0200)] 
do not filter out deprecated USER audit messages

5 years agoshared: do not include ~ when appending syscall filters property
Ronny Chevalier [Mon, 18 Jun 2018 09:16:12 +0000 (11:16 +0200)] 
shared: do not include ~ when appending syscall filters property

The method already uses a boolean argument to determine whether it is in
whitelist mode or not. The code that will parse the string of filters
does not expect the ~, since it already has the boolean argument. Thus,
it will fail to parse the list of filters.

5 years agoFix orientation sensor position for Lenovo Miix 510
petur [Sun, 17 Jun 2018 22:24:11 +0000 (00:24 +0200)] 
Fix orientation sensor position for Lenovo Miix 510

Looks like the Miix 510 has the same sensor and placement as the Miix 320
(put it separate for clarity)

Verified on own hardware

5 years agohwdb: fix backlash/pipe on Librem 13v3
Mladen Pejaković [Sun, 17 Jun 2018 20:03:19 +0000 (23:03 +0300)] 
hwdb: fix backlash/pipe on Librem 13v3

5 years agoMerge pull request #9307 from yuwata/man-sd-boot
Zbigniew Jędrzejewski-Szmek [Fri, 15 Jun 2018 14:17:28 +0000 (16:17 +0200)] 
Merge pull request #9307 from yuwata/man-sd-boot

man: use systemd-boot instead of sd-boot

5 years agoMerge pull request #8766 from poettering/syscall-filter-service
Zbigniew Jędrzejewski-Szmek [Fri, 15 Jun 2018 09:34:44 +0000 (11:34 +0200)] 
Merge pull request #8766 from poettering/syscall-filter-service

add a new `@system-service` syscall group that is good as a starting point for whitelisting syscalls

5 years agonamespace: drop protect_{home,system}_or_bool_from_string()
Yu Watanabe [Fri, 15 Jun 2018 03:29:29 +0000 (12:29 +0900)] 
namespace: drop protect_{home,system}_or_bool_from_string()

The functions protect_{home,system}_from_string() are not used
except for defining protect_{home,system}_or_bool_from_string().
This makes protect_{home,system}_from_string() support boolean
strings, and drops protect_{home,system}_or_bool_from_string().

5 years agoman: re-format man page for bootctl 9307/head
Yu Watanabe [Fri, 15 Jun 2018 06:40:12 +0000 (15:40 +0900)] 
man: re-format man page for bootctl

5 years agoman: use systemd-boot instead of sd-boot
Yu Watanabe [Fri, 15 Jun 2018 05:25:22 +0000 (14:25 +0900)] 
man: use systemd-boot instead of sd-boot

5 years agoMerge pull request #9303 from poettering/busctl-fixlets
Yu Watanabe [Fri, 15 Jun 2018 03:11:44 +0000 (12:11 +0900)] 
Merge pull request #9303 from poettering/busctl-fixlets

tiny busctl fixlets

5 years agoNEWS: rework the description of device naming changes
Zbigniew Jędrzejewski-Szmek [Thu, 14 Jun 2018 07:18:02 +0000 (09:18 +0200)] 
NEWS: rework the description of device naming changes

We really should try to be as precise as possible here. Saying
"your interfaces might be renamed" scares the shit of out people,
for obvious reasons. This change only touches some niche cases
fortunately, let's make this clear.

5 years agoNEWS: update contributor list to current git
Lennart Poettering [Thu, 14 Jun 2018 13:22:45 +0000 (15:22 +0200)] 
NEWS: update contributor list to current git

5 years agoresolved: fix error handling in resolved-dns-stream
Iwan Timmer [Thu, 14 Jun 2018 15:00:50 +0000 (17:00 +0200)] 
resolved: fix error handling in resolved-dns-stream

During the transition from system functions using errno to our own read and write functions with negative return codes some errors where introduced. This patch correctly convert errno to negative return codes for read and write and fix checks still using errno instead of the return code.

Closes #9283

5 years agoupdate NEWS 8766/head
Lennart Poettering [Thu, 19 Apr 2018 14:51:04 +0000 (16:51 +0200)] 
update NEWS

5 years agoportable: add SystemCallFilter=@system-service to the three main portable service...
Lennart Poettering [Thu, 7 Jun 2018 15:47:53 +0000 (17:47 +0200)] 
portable: add SystemCallFilter=@system-service to the three main portable service profiles

… but leave the "trusted" profile unmodified, it shall have full access
to all system calls, as before.

5 years agounits: switch from system call blacklist to whitelist
Lennart Poettering [Thu, 19 Apr 2018 09:04:17 +0000 (11:04 +0200)] 
units: switch from system call blacklist to whitelist

This is generally the safer approach, and is what container managers
(including nspawn) do, hence let's move to this too for our own
services. This is particularly useful as this this means the new
@system-service system call filter group will get serious real-life
testing quickly.

This also switches from firing SIGSYS on unexpected syscalls to
returning EPERM. This would have probably been a better default anyway,
but it's hard to change that these days. When whitelisting system calls
SIGSYS is highly problematic as system calls that are newly introduced
to Linux become minefields for services otherwise.

Note that this enables a system call filter for udev for the first time,
and will block @clock, @mount and @swap from it. Some downstream
distributions might want to revert this locally if they want to permit
unsafe operations on udev rules, but in general this shiuld be mostly
safe, as we already set MountFlags=shared for udevd, hence at least
@mount won't change anything.

5 years agoseccomp: explain why we use setuid rather than @setuid in @privileged
Lennart Poettering [Wed, 18 Apr 2018 19:45:44 +0000 (21:45 +0200)] 
seccomp: explain why we use setuid rather than @setuid in @privileged

5 years agoseccomp: add new system call filter, suitable as default whitelist for system services
Lennart Poettering [Wed, 18 Apr 2018 19:19:54 +0000 (21:19 +0200)] 
seccomp: add new system call filter, suitable as default whitelist for system services

Currently we employ mostly system call blacklisting for our system
services. Let's add a new system call filter group @system-service that
helps turning this around into a whitelist by default.

The new group is very similar to nspawn's default filter list, but in
some ways more restricted (as sethostname() and suchlike shouldn't be
available to most system services just like that) and in others more
relaxed (for example @keyring is blocked in nspawn since it's not
properly virtualized yet in the kernel, but is fine for regular system
services).

5 years agomkosi: add mkosi snippet for ubuntu, too
Lennart Poettering [Mon, 30 Apr 2018 17:38:41 +0000 (19:38 +0200)] 
mkosi: add mkosi snippet for ubuntu, too

5 years agoMerge pull request #9301 from keszybz/man-drop-authorgroup
Lennart Poettering [Thu, 14 Jun 2018 13:29:24 +0000 (15:29 +0200)] 
Merge pull request #9301 from keszybz/man-drop-authorgroup

man: drop unused <authorgroup> tags from man sources

5 years agobusctl: make use of log_error_errno() where we can 9303/head
Lennart Poettering [Thu, 14 Jun 2018 12:54:32 +0000 (14:54 +0200)] 
busctl: make use of log_error_errno() where we can

5 years agobusctl: add 'const' where we can
Lennart Poettering [Thu, 14 Jun 2018 12:53:59 +0000 (14:53 +0200)] 
busctl: add 'const' where we can

5 years agobusctl: use fflush_and_check() where appropriate
Lennart Poettering [Thu, 14 Jun 2018 12:53:46 +0000 (14:53 +0200)] 
busctl: use fflush_and_check() where appropriate

5 years agoMerge pull request #9302 from keszybz/drop-my-copyright-and-some-license-tags
Lennart Poettering [Thu, 14 Jun 2018 12:51:57 +0000 (14:51 +0200)] 
Merge pull request #9302 from keszybz/drop-my-copyright-and-some-license-tags

Drop my copyright and some license tags

5 years agoDrop more license boilerplate 9302/head
Zbigniew Jędrzejewski-Szmek [Thu, 14 Jun 2018 10:57:09 +0000 (12:57 +0200)] 
Drop more license boilerplate

$ git grep -e 'This program is free software' -l |grep -v LICENSE | \
  xargs perl -i -0pe 's/ \* This program.*?for more details.\s*\*\n( \* You should have.*licenses.>.\n)?//gms'

For some reason they were missed previously. All those files seem to
have proper SDPX tags.

5 years agoFix SPDX license tags
Zbigniew Jędrzejewski-Szmek [Thu, 14 Jun 2018 10:50:49 +0000 (12:50 +0200)] 
Fix SPDX license tags

5 years agoDrop my copyright headers
Zbigniew Jędrzejewski-Szmek [Thu, 14 Jun 2018 10:47:16 +0000 (12:47 +0200)] 
Drop my copyright headers

perl -i -0pe 's/\s*Copyright © .... Zbigniew Jędrzejewski.*?\n/\n/gms' man/*xml
git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/(#\n)?# +Copyright © [0-9, -]+ Zbigniew Jędrzejewski.*?\n//gms'
git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/\s*\/\*\*\*\s+Copyright © [0-9, -]+ Zbigniew Jędrzejewski[^\n]*?\s*\*\*\*\/\s*/\n\n/gms'
git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/\s+Copyright © [0-9, -]+ Zbigniew Jędrzejewski[^\n]*//gms'

5 years agoAlso drop <authorgroup> from autogenerated pages 9301/head
Zbigniew Jędrzejewski-Szmek [Thu, 14 Jun 2018 10:28:53 +0000 (12:28 +0200)] 
Also drop <authorgroup> from autogenerated pages

5 years agoman: drop unused <authorgroup> tags from man sources
Zbigniew Jędrzejewski-Szmek [Thu, 14 Jun 2018 10:02:53 +0000 (12:02 +0200)] 
man: drop unused <authorgroup> tags from man sources

Docbook styles required those to be present, even though the templates that we
use did not show those names anywhere. But something changed semi-recently (I
would suspect docbook templates, but there was only a minor version bump in
recent years, and the changelog does not suggest anything related), and builds
now work without those entries. Let's drop this dead weight.

Tested with F26-F29, debian unstable.

$ perl -i -0pe 's/\s*<authorgroup>.*<.authorgroup>//gms' man/*xml

5 years agoMerge pull request #9274 from poettering/comment-header-cleanup
Zbigniew Jędrzejewski-Szmek [Thu, 14 Jun 2018 09:26:50 +0000 (11:26 +0200)] 
Merge pull request #9274 from poettering/comment-header-cleanup

drop "this file is part of systemd" and lennart's copyright from header

5 years agoMerge pull request #9199 from poettering/copy-file-atomic
Zbigniew Jędrzejewski-Szmek [Thu, 14 Jun 2018 09:19:22 +0000 (11:19 +0200)] 
Merge pull request #9199 from poettering/copy-file-atomic

make copy_file_atomic() use O_TMPFILE to create the destination file

5 years agonamespace: always use a root directory when setting up namespace
Jan Synacek [Tue, 12 Jun 2018 08:03:08 +0000 (10:03 +0200)] 
namespace: always use a root directory when setting up namespace

1) mv /var/tmp /var/tmp.old
2) mkdir /tmp/varrr
3) ln -s /tmp/varrr /var/tmp

Now, when a service has PrivateTmp=yes, during namespace setup,
/tmp is first mounted over with a new mount. Then, when /var/tmp
is being resolved, it points to /tmp/varrr, which by then doesn't
exist, because it had already been obscured.

5 years agoMerge pull request #9297 from yuwata/rfe-9296
Lennart Poettering [Thu, 14 Jun 2018 08:22:11 +0000 (10:22 +0200)] 
Merge pull request #9297 from yuwata/rfe-9296

timesync: ignore any errors related to timestamp file

5 years agotree-wide: beautify remaining copyright statements 9274/head
Lennart Poettering [Tue, 12 Jun 2018 17:00:24 +0000 (19:00 +0200)] 
tree-wide: beautify remaining copyright statements

Let's unify an beautify our remaining copyright statements, with a
unicode ©. This means our copyright statements are now always formatted
the same way. Yay.

5 years agotree-wide: remove Lennart's copyright lines
Lennart Poettering [Tue, 12 Jun 2018 16:23:39 +0000 (18:23 +0200)] 
tree-wide: remove Lennart's copyright lines

These lines are generally out-of-date, incomplete and unnecessary. With
SPDX and git repository much more accurate and fine grained information
about licensing and authorship is available, hence let's drop the
per-file copyright notice. Of course, removing copyright lines of others
is problematic, hence this commit only removes my own lines and leaves
all others untouched. It might be nicer if sooner or later those could
go away too, making git the only and accurate source of authorship
information.

5 years agogrypt-util: drop two emacs modelines
Lennart Poettering [Tue, 12 Jun 2018 16:45:51 +0000 (18:45 +0200)] 
grypt-util: drop two emacs modelines

No idea why they didn't get removed earlier...

5 years agopo: drop copyright lines referencing COPYRIGHT HOLDER
Lennart Poettering [Tue, 12 Jun 2018 15:21:16 +0000 (17:21 +0200)] 
po: drop copyright lines referencing COPYRIGHT HOLDER

These lines are template lines that never got filled in. Let's drop
them, as they carry zero information and are just useless.

5 years agotree-wide: use proper unicode © instead of (C) where we can
Lennart Poettering [Tue, 12 Jun 2018 15:15:23 +0000 (17:15 +0200)] 
tree-wide: use proper unicode © instead of (C) where we can

Let's use a proper unicode copyright symbol where we can, it's prettier.

This important patch is very important.

5 years agotree-wide: drop 'This file is part of systemd' blurb
Lennart Poettering [Tue, 12 Jun 2018 15:04:27 +0000 (17:04 +0200)] 
tree-wide: drop 'This file is part of systemd' blurb

This part of the copyright blurb stems from the GPL use recommendations:

https://www.gnu.org/licenses/gpl-howto.en.html

The concept appears to originate in times where version control was per
file, instead of per tree, and was a way to glue the files together.
Ultimately, we nowadays don't live in that world anymore, and this
information is entirely useless anyway, as people are very welcome to
copy these files into any projects they like, and they shouldn't have to
change bits that are part of our copyright header for that.

hence, let's just get rid of this old cruft, and shorten our codebase a
bit.

5 years agolocale-util: on overlayfs FTW_MOUNT causes nftw(3) to not list *any* files
Franck Bui [Wed, 13 Jun 2018 16:15:55 +0000 (18:15 +0200)] 
locale-util: on overlayfs FTW_MOUNT causes nftw(3) to not list *any* files

On overlayfs, FTW_MOUNT causes nftw to not list *any* files because the
condition used by glibc to verify that it's on the same mountpoint doesn't work
on overlayfs, see https://bugzilla.suse.com/show_bug.cgi?id=1096807 for the
details.

However using FTW_MOUNT doesn't seem to be really needed when walking through
the keymap directorie tree. So until the glibc or the kernel is fixed (which
might take some time), let's make localectl works with overlayfs.

There's a small side effect here, by which regular (non-directory) files with
bind mounts will be parsed while they were skipped by the previous logic.

5 years agotimedatectl: add 'show' command to display machine-readable output
Yu Watanabe [Sun, 10 Jun 2018 08:17:34 +0000 (17:17 +0900)] 
timedatectl: add 'show' command to display machine-readable output

Closes #9249.