Lennart Poettering [Thu, 16 Apr 2020 13:06:58 +0000 (15:06 +0200)]
resolved: tone down comment in /run/systemd/{stub-,}resolve.conf
There are legitimate reasons to access the file directly, as currently
discussed on fedora-devel. Hence tone things down from "must" to "should
typically not".
Also, let's use fputs() instead of fputs_unlocked() here,
fopen_temporary_label() turns off stdio locking anyway for the whole
FILE*, hence no need to do this manually each time.
Lennart Poettering [Thu, 16 Apr 2020 17:42:42 +0000 (19:42 +0200)]
Merge pull request #15448 from keszybz/logind-avoid-polkit-query
logind: avoid polkit query for SetWallMessage()
Lennart Poettering [Tue, 7 Apr 2020 12:00:28 +0000 (14:00 +0200)]
units: use correct path to refer to plymouth
This doesn't really matter, since in non-/usr-merged systems plymouth
needs to be in /bin and on merged ones it doesn't matter, but it is
still prettier to insert the right path, and avoid /bin on merged
systems, since it's just a compat symlink.
Replaces: #15351
Alin Popa [Thu, 2 Apr 2020 07:10:55 +0000 (09:10 +0200)]
watchdog: reduce watchdog pings in timeout interval
The watchdog ping is performed for every iteration of manager event
loop. This results in a lot of ioctls on watchdog device driver
especially during boot or if services are aggressively using sd_notify.
Depending on the watchdog device driver this may have performance
impact on embedded systems.
The patch skips sending the watchdog to device driver if the ping is
requested before half of the watchdog timeout.
Lennart Poettering [Thu, 16 Apr 2020 14:11:24 +0000 (16:11 +0200)]
Merge pull request #15437 from keszybz/man-nss-resolve
Move "files" and "dns" later in the recommended hosts: lines
Lennart Poettering [Thu, 16 Apr 2020 12:11:44 +0000 (14:11 +0200)]
Merge pull request #15441 from sartura/src/analyze
systemd-analyze: Add new meson configure option for controlling systemd-analyze support
Zbigniew Jędrzejewski-Szmek [Thu, 16 Apr 2020 11:46:37 +0000 (13:46 +0200)]
logind: skip polkit query with --no-wall
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=
1800875.
Zbigniew Jędrzejewski-Szmek [Tue, 14 Apr 2020 14:53:43 +0000 (16:53 +0200)]
loginctl: adjust indentation
Zbigniew Jędrzejewski-Szmek [Wed, 15 Apr 2020 16:15:51 +0000 (18:15 +0200)]
man: move "myhostname" right after "resolve"
The text in the man page provides the justification why I think this is
generally the right thing. An additional reason is that with the previous
commit (to move resolved earlier), since resolved internally implements the
same rules that nss-myhostname does, we'd have this strange inversion where
the priority of external configuration would be different in the "resolve"
path and in the fallback path.
Zbigniew Jędrzejewski-Szmek [Wed, 15 Apr 2020 16:05:39 +0000 (18:05 +0200)]
man: move "files" after "resolve" in the suggested configuration
resolved caches files, so we should move nss-files after nss-resolve
to speed up local access (and yes, people like to have thousands of
lines in /etc/hosts).
See https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/LCX6YXLM62QEYJSOLJBWXXVXTZVL73GI/
for the background.
Jakov Smolic [Wed, 15 Apr 2020 15:58:25 +0000 (17:58 +0200)]
Include new configure options in features list
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>
Susant Sahani [Wed, 8 Apr 2020 14:01:21 +0000 (16:01 +0200)]
network: Allow DHCPv6 client to be started even if no O or M bit in RA.
Chris Down [Wed, 15 Apr 2020 17:40:14 +0000 (18:40 +0100)]
virt: Use cache for VIRTUALIZATION_PROOT
Of course, the very moment after I merged #15426, I noticed something
was off: everything works, but the cache isn't updated. 🙈
Arthur Moraes do Lago [Wed, 15 Apr 2020 02:59:30 +0000 (23:59 -0300)]
Add Logitech G502 HERO to mouse hwdb
Jan Janssen [Wed, 15 Apr 2020 12:18:15 +0000 (14:18 +0200)]
sd-boot: Add → as alternative to boot selected entry
This is sometimes slightly more convenient to use
and is also what GRUB supports.
Chris Down [Tue, 14 Apr 2020 17:15:04 +0000 (18:15 +0100)]
virt: Detect proot virtualisation by ptrace metadata
proot provides userspace-powered emulation of chroot and mount --bind,
lending it to be used on environments without unprivileged user
namespaces, or in otherwise restricted environments like Android.
In order to achieve this, proot makes use of the kernel's ptrace()
facility, which we can use in order to detect its presence. Since it
doesn't use any kind of namespacing, including PID namespacing, we don't
need to do any tricks when trying to get the tracer's metadata.
For our purposes, proot is listed as a "container", since we mostly use
this also as the bucket for non-container-but-container-like
technologies like WSL. As such, it seems like a good fit for this
section as well.
Lennart Poettering [Wed, 15 Apr 2020 15:55:21 +0000 (17:55 +0200)]
Merge pull request #15431 from poettering/lock-and-key-emoji
display lock/key emoji when prompting for passwords
Jakov Smolic [Wed, 15 Apr 2020 15:53:36 +0000 (17:53 +0200)]
Add new meson configure option for controlling systemd-analyze support
Enables building systemd without systemd-analyze, which in
return saves approx. 4 MB of space upon installing systemd.
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>
Lennart Poettering [Mon, 13 Apr 2020 07:20:25 +0000 (09:20 +0200)]
man: update os-release(5) to use 24bit ANSI color in example
Given that ANSI_COLOR= is mostly about branding it probably makes sense
to use RGB rather than paletted colors for them, so that the colors
match the project design as close as possible. Hence, provide a 25bit
RGB example for ANSI_COLOR, and update the overall example to something
newer.
Also see: https://bugzilla.redhat.com/show_bug.cgi?id=
1823099
Zbigniew Jędrzejewski-Szmek [Tue, 14 Apr 2020 20:18:18 +0000 (22:18 +0200)]
meson,resolved: make default LLMNR= and MulticastDNS= values configurable
For https://fedoraproject.org/wiki/Changes/systemd-resolved.
Lennart Poettering [Wed, 15 Apr 2020 10:01:03 +0000 (12:01 +0200)]
ask-password-api: reword some debug messages
Otherwise, seeing this in the log output is confusing since we don't
know what kind of timeout or what kind if key we are adjusting here.
Lennart Poettering [Wed, 15 Apr 2020 09:59:30 +0000 (11:59 +0200)]
ask-password: prefix password questions with lock and key emoji
It's pretty, and it highlights that the pw prompt is kinda special and
needs user input.
We suppress the emoji entirel if there's no emoji support (i.e. this
means we suppress the ASCII replacement), since it carries no additional
information, it is just decoration to highlight a line.
Lennart Poettering [Wed, 15 Apr 2020 09:59:06 +0000 (11:59 +0200)]
locale-util: export emoji_enable() for other code to use
Lennart Poettering [Wed, 15 Apr 2020 09:58:25 +0000 (11:58 +0200)]
locale-util: add support for lock+key emoji
It looks pretty nice on gnome-terminal at least, let's make use of it
when asking for passwords.
Giedrius Statkevičius [Tue, 7 Apr 2020 21:38:16 +0000 (00:38 +0300)]
verify: ignore nonexistent executables if required
We provide a way via the '-' symbol to ignore errors when nonexistent
executable files are passed to Exec* parameters & so on. In such a case,
the flag `EXEC_COMMAND_IGNORE_FAILURE` is set and we go on happily with
our life if that happens. However, `systemd-analyze verify` complained
about missing executables even in such a case. In such a case it is not
an error for this to happen so check if the flag is set before checking
if the file is accessible and executable.
Add some small tests to check this condition.
Closes #15218.
Jakov Smolic [Sat, 11 Apr 2020 12:32:52 +0000 (14:32 +0200)]
Add meson build option to prevent building kernel-install
This commit introduces new meson build option "kernel-install" to prevent kernel-install from building if the user
sets the added option as "false".
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>
Zbigniew Jędrzejewski-Szmek [Tue, 14 Apr 2020 10:54:27 +0000 (12:54 +0200)]
Merge pull request #15417 from poettering/fileno-can-fail
fileio: fileno() can realistically return -1
Anita Zhang [Mon, 13 Apr 2020 20:54:24 +0000 (13:54 -0700)]
Merge pull request #15414 from mrc0mmand/coredumpctl-file
coredumpctl: support --file=PATH
Joel Shapiro [Sun, 12 Apr 2020 05:40:17 +0000 (00:40 -0500)]
Fix pam_systemd_home's debug parameter to match man page description
Susant Sahani [Mon, 13 Apr 2020 10:17:22 +0000 (12:17 +0200)]
sd-network: DHCPv6 - Add status codes
https://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xhtml#dhcpv6-parameters-5
Lennart Poettering [Mon, 13 Apr 2020 09:38:34 +0000 (11:38 +0200)]
core: make sure ProtectHostname= is handled gracefully in containers lacking seccomp
Fixes: #15408
Frantisek Sumsal [Sun, 12 Apr 2020 18:39:09 +0000 (20:39 +0200)]
coredumpctl: support --file=PATH
Let's match journalctl's functionality by throwing --file for
coredumpctl into the mix, so we can work on a single journal file
as well.
Lennart Poettering [Mon, 13 Apr 2020 12:31:46 +0000 (14:31 +0200)]
update TODO
Lennart Poettering [Mon, 13 Apr 2020 09:26:15 +0000 (11:26 +0200)]
hwdb: optimize isatty()-per-line away
Fixes: #15407
Lennart Poettering [Mon, 13 Apr 2020 09:25:43 +0000 (11:25 +0200)]
fileio: extend comment a bit
Lennart Poettering [Mon, 13 Apr 2020 09:20:59 +0000 (11:20 +0200)]
fileio: optionally allow telling read_line_full() whether we are processing a tty or not
Lennart Poettering [Mon, 13 Apr 2020 08:09:44 +0000 (10:09 +0200)]
fileio: fileno() can realistically return -1
An stdio FILE* stream usually refers to something with a file
descriptor, but that's just "usually". It doesn't have to, when taking
fmemopen() and similar into account. Most of our calls to fileno()
assumed the call couldn't fail. In most cases this was correct, but in
some cases where we didn't know whether we work on files or memory we'd
use the returned fd as if it was unconditionally valid while it wasn't,
and passed it to a multitude of kernel syscalls. Let's fix that, and do
something reasonably smart when encountering this case.
(Running test-fileio with this patch applied will remove tons of ioctl()
calls on -1).
Lennart Poettering [Mon, 13 Apr 2020 08:58:38 +0000 (10:58 +0200)]
Merge pull request #15411 from ssahani/systemd-issue-15375
sd-network: DHCPv6 - Add NoPrefixAvail to error code
Lennart Poettering [Mon, 13 Apr 2020 08:47:40 +0000 (10:47 +0200)]
Merge pull request #15397 from ssahani/vxlan
network: VXlan group and remote fixes
Zbigniew Jędrzejewski-Szmek [Sun, 12 Apr 2020 16:26:05 +0000 (18:26 +0200)]
Remove unneded {}s
$ perl -i -0pe 's|\s+{\n([^\n]*;)\n\s+}\n|\n\1\n|gms' **/*.c
Inspired by
ea7cbf5bdd68d7861ebf1570c439e8bbabd83f6c.
Susant Sahani [Mon, 13 Apr 2020 03:04:22 +0000 (05:04 +0200)]
sd-network: DHCP6 - Use readable error status rather than numeric
value in the log message
Zbigniew Jędrzejewski-Szmek [Sun, 12 Apr 2020 17:31:53 +0000 (19:31 +0200)]
Merge pull request #15281 from keszybz/functional-test-rework
Post-merge tweaks to the functional tests
Zbigniew Jędrzejewski-Szmek [Sun, 12 Apr 2020 16:38:49 +0000 (18:38 +0200)]
Merge pull request #15406 from DaanDeMeyer/sd-bus-set-exec-docs
Add sd_bus_set_exec docs
Daan De Meyer [Sat, 11 Apr 2020 19:57:36 +0000 (21:57 +0200)]
sd-bus: Add sd_bus_set_exec docs
Vito Caputo [Sat, 4 Apr 2020 13:36:51 +0000 (06:36 -0700)]
home: switch to BusLocator-oriented helpers
Remove some unnecessary verbosity, largely mechanical change with
no functional difference.
Ross Lagerwall [Sat, 11 Apr 2020 16:01:37 +0000 (17:01 +0100)]
hwdb: Add accel orientation quirk for Geoflex laptop
Add a quirk to fix the accelerometer orientation on the Geoflex laptop
so that the display is upright rather than upside-down.
Zbigniew Jędrzejewski-Szmek [Sun, 12 Apr 2020 15:16:07 +0000 (17:16 +0200)]
Merge pull request #15365 from poettering/remount-fs-pstore-fix
pid1: automatically generate systemd-remount-fs.service deps, plus enable systemd-pstore from sysinit.target
Zbigniew Jędrzejewski-Szmek [Sun, 12 Apr 2020 15:05:05 +0000 (17:05 +0200)]
Merge pull request #15405 from DaanDeMeyer/sd-bus-can-send-docs
Add sd_bus_can_send docs
Zbigniew Jędrzejewski-Szmek [Sun, 12 Apr 2020 15:02:55 +0000 (17:02 +0200)]
Merge pull request #15399 from DaanDeMeyer/sd-bus-property-docs
sd_bus_get/set_property docs
Susant Sahani [Sun, 12 Apr 2020 12:14:52 +0000 (14:14 +0200)]
sd-network: DHCPv6 - Add NoPrefixAvail to error code
Daan De Meyer [Sat, 11 Apr 2020 19:57:28 +0000 (21:57 +0200)]
sd-bus: Use pointer syntax for sd_bus_set_exec argv parameter
Daan De Meyer [Sat, 11 Apr 2020 19:25:39 +0000 (21:25 +0200)]
sd-bus: Add sd_bus_can_send docs
Daan De Meyer [Sat, 11 Apr 2020 19:09:05 +0000 (21:09 +0200)]
sd-bus: Fix sd_bus_close.xml line wrapping
Daan De Meyer [Sat, 11 Apr 2020 19:08:34 +0000 (21:08 +0200)]
meson: Exclude more deprecated functions from check-api-docs
Daan De Meyer [Fri, 10 Apr 2020 19:46:46 +0000 (21:46 +0200)]
sd-bus: Add sd_bus_get/set_property docs
Lennart Poettering [Sat, 11 Apr 2020 16:03:24 +0000 (18:03 +0200)]
docs: introduce documentation category for user/group stuff
We have so many different docs on various facets of user/group stuff,
let's add our own category for it.
Zbigniew Jędrzejewski-Szmek [Sat, 11 Apr 2020 14:26:01 +0000 (16:26 +0200)]
Merge pull request #15376 from poettering/homed-btrfs-subvol-luks
homed: when doing luks homedir with btrfs inside, place subvol at top of fs
Susant Sahani [Fri, 10 Apr 2020 13:50:23 +0000 (15:50 +0200)]
networkctl: Add support to display VXLan remote address
Zbigniew Jędrzejewski-Szmek [Sat, 11 Apr 2020 14:08:33 +0000 (16:08 +0200)]
Merge pull request #15377 from poettering/userdb-no-shadow
don't try to access shadow from logind
Zbigniew Jędrzejewski-Szmek [Sat, 11 Apr 2020 14:05:11 +0000 (16:05 +0200)]
Merge pull request #15392 from keszybz/flag-helper
Flag setting helper and some other minor cleanups
Susant Sahani [Fri, 10 Apr 2020 13:37:21 +0000 (15:37 +0200)]
network: VXLan - Add support for remote address
Daan De Meyer [Fri, 10 Apr 2020 19:31:29 +0000 (21:31 +0200)]
sd-bus: sd_bus_message_append fixes
Lennart Poettering [Thu, 9 Apr 2020 17:02:57 +0000 (19:02 +0200)]
docs: add some documentation about hooking up userdb/homed to desktop environments
Prompted by some inquires from the GNOME camp. let's document this here,
since other DEs might be interested too.
Zbigniew Jędrzejewski-Szmek [Thu, 9 Apr 2020 12:24:11 +0000 (14:24 +0200)]
Add yet another tiny helper to manipulate flags
Zbigniew Jędrzejewski-Szmek [Wed, 8 Apr 2020 21:46:49 +0000 (23:46 +0200)]
man: fix garbled paragraph in systemd.network(3)
The following message was emitted:
"Element term in namespace encountered in para, but no template matches."
Zbigniew Jędrzejewski-Szmek [Tue, 7 Apr 2020 09:17:34 +0000 (11:17 +0200)]
busctl: wrap long lines
Zbigniew Jędrzejewski-Szmek [Tue, 7 Apr 2020 07:39:46 +0000 (09:39 +0200)]
busctl: use the pager everywhere
There is no reason to assume that the user doesn't want the pager
even if they are looking at xml output or such.
Lennart Poettering [Thu, 9 Apr 2020 09:11:02 +0000 (11:11 +0200)]
man: extend documentation of the suspend= switch of pam_systemd_home
As suggested on #15343.
Fixes: #15343
Lennart Poettering [Thu, 9 Apr 2020 15:13:12 +0000 (17:13 +0200)]
docs: add brief document how to convert home directories to homed
Susant Sahani [Fri, 10 Apr 2020 13:29:10 +0000 (15:29 +0200)]
network: VXLan - fix adding Group address
nerdopolis [Thu, 9 Apr 2020 21:22:07 +0000 (17:22 -0400)]
login: Fix incorrect reporting of CanMultiSession=no on non-seat0 seats
Vito Caputo [Fri, 10 Apr 2020 07:34:37 +0000 (00:34 -0700)]
bus: add sd_bus_message_new_method_call() helper
adds BusLocator variant called bus_message_new_method_call()
Vito Caputo [Thu, 9 Apr 2020 16:54:32 +0000 (09:54 -0700)]
bus: s/BusAddress/BusLocator/
Mechanical rename in response to
https://github.com/systemd/systemd/pull/15331#issuecomment-
611472240
Anita Zhang [Thu, 9 Apr 2020 22:27:12 +0000 (15:27 -0700)]
Merge pull request #15379 from poettering/homed-man-ref-add
man: reference pam_systemd_home man page from systemd-homed man page
Anita Zhang [Thu, 9 Apr 2020 21:18:37 +0000 (14:18 -0700)]
Merge pull request #15361 from mrc0mmand/yet-another-TEST-47-tweak
test: wait a bit after stopping the test service
Lennart Poettering [Thu, 9 Apr 2020 18:03:19 +0000 (20:03 +0200)]
bootctl: fix assert issue
Follow-up for
b46c3e4913f7f234039ebd8104446450917cab8d
Lennart Poettering [Thu, 9 Apr 2020 17:26:36 +0000 (19:26 +0200)]
docs: fix typo now → not
Lennart Poettering [Thu, 9 Apr 2020 17:24:44 +0000 (19:24 +0200)]
docs: add missing dash
Lennart Poettering [Thu, 9 Apr 2020 16:49:22 +0000 (18:49 +0200)]
Merge pull request #15352 from poettering/user-group-name-valdity-rework
user/group name validity rework
Lennart Poettering [Thu, 9 Apr 2020 15:15:55 +0000 (17:15 +0200)]
Merge pull request #15318 from fbuihuu/inherit-umask-for-user-units
pid1: by default make user units inherit their umask from the user ma…
Lennart Poettering [Thu, 9 Apr 2020 15:15:26 +0000 (17:15 +0200)]
Merge pull request #15332 from keszybz/coredump-filter
CoredumpFilter=
Lennart Poettering [Thu, 9 Apr 2020 15:11:20 +0000 (17:11 +0200)]
man: reference pam_systemd_home man page from systemd-homed man page
They are very closely related after all.
Lennart Poettering [Thu, 9 Apr 2020 12:28:56 +0000 (14:28 +0200)]
logind: avoid shadow lookups when doing userdb client side
Let's not trigger MACs needlessly.
Ideally everybody would turn on userdb, but if people insist in not
doing so, then let's not attempt to open shadow.
It's a bit ugly to implement this, since shadow information is more than
just passwords (but accound validity metadata), and thus userdb's own
"privieleged" scheme is orthogonal to this, but let's still do this for
the client side.
Fixes: #15105
Lennart Poettering [Thu, 9 Apr 2020 12:28:34 +0000 (14:28 +0200)]
userdb: when doing client-side NSS look-ups optionally avoid shadow look-ups
Lennart Poettering [Thu, 9 Apr 2020 12:27:57 +0000 (14:27 +0200)]
pam-systemd-home: drop redundant newline
Jian-Hong Pan [Thu, 9 Apr 2020 08:20:36 +0000 (16:20 +0800)]
hwdb: Fix kbd brightness keys on Acer Predator PH 315-52
Acer defines Fn+F9/10 as keyboard brightness down/up on Predator PH
315-52 laptop. So, add the quirk to correct key mappings.
Franck Bui [Fri, 3 Apr 2020 08:00:25 +0000 (10:00 +0200)]
pid1: by default make user units inherit their umask from the user manager
This patch changes the way user managers set the default umask for the units it
manages.
Indeed one can expect that if user manager's umask is redefined through PAM
(via /etc/login.defs or pam_umask), all its children including the units it
spawns have their umask set to the new value.
Hence make user units inherit their umask value from their parent instead of
the hard coded value 0022 but allow them to override this value via their unit
file.
Note that reexecuting managers with 'systemctl daemon-reexec' after changing
UMask= has no effect. To take effect managers need to be restarted with
'systemct restart' instead. This behavior was already present before this
patch.
Fixes #6077.
Zbigniew Jędrzejewski-Szmek [Thu, 9 Apr 2020 10:44:46 +0000 (12:44 +0200)]
manager: also log at debug level failure to read oom_score_adj
Zbigniew Jędrzejewski-Szmek [Sat, 4 Apr 2020 14:43:25 +0000 (16:43 +0200)]
manager: add CoredumpFilter= setting
Fixes #6685.
Lennart Poettering [Thu, 9 Apr 2020 11:55:35 +0000 (13:55 +0200)]
Merge pull request #15345 from keszybz/systemctl-show-spaces
Show Environment= entries with spaces in systemctl
Zbigniew Jędrzejewski-Szmek [Sat, 4 Apr 2020 13:02:12 +0000 (15:02 +0200)]
Add parser and printer for coredump filter mask
Lennart Poettering [Thu, 9 Apr 2020 09:57:15 +0000 (11:57 +0200)]
homed: when creating home directory as btrfs inside luks volume, place subvol inside it
When managing a home directory as LUKS image we currently place a
directory at the top that contains the actual home directory (so that
the home directory of the user won't be cluttered by lost-found and
suchlike). On btrfs let's make that a subvol though. This is a good idea
so that possibly later on we can make use of this for automatic history
management.
Fixes: #15121
Lennart Poettering [Thu, 9 Apr 2020 09:57:00 +0000 (11:57 +0200)]
import: use our new btrfs_subvol_make_fallback() at two places
Lennart Poettering [Thu, 9 Apr 2020 09:56:23 +0000 (11:56 +0200)]
btrfs-util: define helper that creates a btrfs subvol if we can, and a directory as fallback
Luca Boccassi [Thu, 9 Apr 2020 09:51:23 +0000 (10:51 +0100)]
man: add missing varname around keywords in systemd.unit.xml
Luca Boccassi [Wed, 8 Apr 2020 14:39:20 +0000 (15:39 +0100)]
man: explicitly note that ExecSt*Post does count for After/Before ordering
Zbigniew Jędrzejewski-Szmek [Thu, 9 Apr 2020 09:18:26 +0000 (11:18 +0200)]
basic/parse-util: add safe_atoux64()
Lennart Poettering [Wed, 8 Apr 2020 17:54:44 +0000 (19:54 +0200)]
sleep: improve log msg slightly
Let's make the log msgs a bit longer, to make clearer what is going on
here...
Prompted bymy attempts to debug #15354
Zbigniew Jędrzejewski-Szmek [Thu, 9 Apr 2020 08:17:18 +0000 (10:17 +0200)]
Merge pull request #15368 from poettering/color-fix
minor terminal ansi color seq fixes
Wen Yang [Mon, 23 Mar 2020 02:42:46 +0000 (10:42 +0800)]
mount-setup: change the system mount propagation to shared by default only at bootup
The commit
b3ac5f8cb987 has changed the system mount propagation to
shared by default, and according to the following patch:
https://github.com/opencontainers/runc/pull/208
When starting the container, the pouch daemon will call runc to execute
make-private.
However, if the systemctl daemon-reexec is executed after the container
has been started, the system mount propagation will be changed to share
again by default, and the make-private operation above will have no chance
to execute.