Anita Zhang
31cd5f63ce
core: ExecCondition= for services
...
Closes #10596
2019-07-17 11:35:02 +02:00
Zbigniew Jędrzejewski-Szmek
cc2f3f05a7
Merge pull request #12927 from fbuihuu/coredump-cleanup-part-2
...
Coredump cleanup part 2
2019-07-17 09:14:20 +02:00
Zbigniew Jędrzejewski-Szmek
4a747647b3
Merge pull request #13082 from ddstreet/minor
...
Minor fixes in test framework
2019-07-17 08:44:01 +02:00
Dan Streetman
59279e9618
test/test-functions: fix install_dmeventd to correctly install bin/libs
2019-07-17 08:34:48 +02:00
Evgeny Vereshchagin
b5efca2a65
Free up some resources on Azure Pipelines
...
Let's drop the tests we also run on CentOS CI to free up some resources
for something more useful.
2019-07-17 13:28:38 +09:00
Dan Streetman
e96386521c
test/test-functions: instmods call to find should use -type f
...
without using -type f, the logs print an error such as:
E: E: modprobe: FATAL: Module asymmetric_keys not found in directory /lib/modules/4.15.0-54-generic
while this doesn't appear to cause problems, it can be extremely
distracting when trying to debug real failures.
2019-07-16 18:05:15 -04:00
Dan Streetman
d391ee10a0
test: when stripping binaries, ignore case in suppressing "File format not recognized"
...
The grep -v matches all lowercase, but "file" is captialized; just ignore case so
it's suppressed for either all lowercase or capital File.
2019-07-16 18:05:15 -04:00
Dan Streetman
f85bc044e5
test: ignore errors during test cleanup, so cleanup can finish
...
Also move TESTDIR and STATEFILE removal into test_cleanup
2019-07-16 18:05:15 -04:00
Dan Streetman
ec4cab49c9
test: add create_empty_image_rootdir() to simplify testcase setup
...
Almost all tests were manually mounting/unmounting $TESTDIR/root
from the loopback image; this moves all that into test-functions
so the test setup functions are simplier.
Also add test_setup_cleanup() function, to cleanup what is mounted
by create_empty_image_rootdir()
2019-07-16 18:05:15 -04:00
Yu Watanabe
26408c7d5f
Merge pull request #13069 from yuwata/network-do-not-set-routes-when-carrier-lost
...
network: do not configure routes when dropping addresses
2019-07-17 06:56:32 +09:00
Franck Bui
a9fd4cd120
pid1: make sure to restore correct default values for some rlimits
...
Commit fb39af4ce4
forgot to restore the default
rlimit values (RLIMIT_NOFILE and RLIMIT_MEMLOCK) while PID1 is reloading.
This patch extracts the code in charge of initializing the default values for
those rlimits in order to create dedicated functions, which take care of their
initialization.
These functions are then called in parse_configuration() so we make sure that
the default values for these rlimits get restored every time PID1 is reloading
its configuration.
2019-07-17 06:24:27 +09:00
Frantisek Sumsal
ca22d04cee
Merge pull request #12851 from evverx/test-01-basic-asan
...
tests: run TEST-01-BASIC under ASAN+UBSan again
2019-07-16 18:51:59 +00:00
Frantisek Sumsal
64c3b40c25
Merge pull request #13077 from poettering/activate-n-fds
...
activate: move array allocation to heap
2019-07-16 18:46:30 +00:00
Zbigniew Jędrzejewski-Szmek
3151b668c2
Merge pull request #13076 from keszybz/pr/13062
...
Timer formatting fixes
2019-07-16 20:02:26 +02:00
Yu Watanabe
7d7bb5c861
test-network: extend sleep time
...
Even if addresses provided by DHCP is assigned, the state file may not
be written yet, or resolved may not receive the state change signal
yet, or resolved may not process the signal yet...
2019-07-17 01:01:10 +09:00
Yu Watanabe
4e2ef9d9d1
network: do not configure routes when dropping addresses
...
Follow-up for 4ff296b024
.
2019-07-17 00:51:46 +09:00
Franck Bui
2a3bebd02a
coredump: (void)ify all calls of iovw_put_string_field() where we ignore failure on purpose
...
All those calls are dealing with optional metadata.
2019-07-16 17:41:07 +02:00
Franck Bui
f46c706bdd
coredump: gather all process metadata in iovecs first and then cache them
...
Now we first gather all process metadata and populate the process info cache
with them. In this way, the cache only references metadata recorded in iovecs[]
so there's no need to bother freeing (part of) cached metadata later.
The other advantage is that the coredump handler mode and the service mode are
more similar as the cache is populated in the same way for both cases.
It also renames the array indexes so it becomes clear which metadata are passed
by the kernel and which ones are retrieved from the runtime environment.
2019-07-16 17:40:35 +02:00
Franck Bui
f8540bde72
coredump: use 'input_fd' name for the pipe fd passed by the kernel everywhere
...
'input_fd' variable name is used mostly everywhere except in process_socket()
where it's named 'coredump_fd', which is pretty confusing since 'coredump_fd'
is used for the coredump filename in submit_coredump().
So let's use 'input_fd' consistently as name for the pipe fd passed by the
kernel.
No functional changes.
2019-07-16 17:39:19 +02:00
Zbigniew Jędrzejewski-Szmek
a483dc92c2
Merge pull request #13038 from poettering/pam-fixes
...
tmpfiles factory PAM tweaks
2019-07-16 17:09:29 +02:00
Evgeny Vereshchagin
038bf640e9
tests: bump up QEMU_MEM
2019-07-16 15:01:26 +00:00
Evgeny Vereshchagin
ee784fff1a
tests: run TEST-01-BASIC under ASAN+UBSan again
...
Not that `journalctl --flush` is no longer flaky, it should be
safe to bring the test back.
2019-07-16 15:01:04 +00:00
Lennart Poettering
15bcd9fa09
Merge pull request #12925 from yuwata/network-generator
...
network-generator: introduce new tool systemd-network-generator
2019-07-16 16:23:42 +02:00
Lennart Poettering
c1b71f3a61
Merge pull request #13074 from poettering/format-tree-many
...
table_add_many() improvements
2019-07-16 16:03:54 +02:00
Lennart Poettering
4119ad492f
Merge pull request #13073 from poettering/variety-galore
...
Variety galore
2019-07-16 15:59:31 +02:00
Lennart Poettering
4094c4bfb7
journal: properly read unaligned le64 integers
...
Fixes : #13051
Replaces: #13064
2019-07-16 15:22:26 +02:00
Lennart Poettering
49aca3b152
activate: move array allocation to heap
...
In theory 'n' could get quite large, and some sanitizers notice that,
let's hence avoid the stack, and use the heap instead.
Moreover, there's no need to include the first 3 fds in the array,
close_all() excludes those anyway.
See: #13064
2019-07-16 14:56:25 +02:00
Yu Watanabe
476da0fe00
wait-online: change log level
...
During boot, systemd-networkd-wait-online writes following logs many
times:
```
systemd-networkd-wait-online[753]: lo: link is ignored
```
2019-07-16 14:39:02 +02:00
Zbigniew Jędrzejewski-Szmek
42e12b3832
Merge pull request #13067 from yuwata/news-network-section
...
NEWS: update section name
2019-07-16 14:38:24 +02:00
Yu Watanabe
b3454e1ebc
doc: update explanation of IPv6AcceptRA=
2019-07-16 14:38:06 +02:00
Zbigniew Jędrzejewski-Szmek
4252171a94
tree-wide: use lowercase table headers
...
https://github.com/systemd/systemd/pull/13062#discussion_r303847484
> the formatter uppercases them anyway, and this way the JSON output of the
> formatter is nicer as it uses the table header fields 1:1 for the json
> output.
2019-07-16 14:29:04 +02:00
Zbigniew Jędrzejewski-Szmek
cd87f6340f
pid1: split out another helper func for two similar code paths
2019-07-16 14:29:04 +02:00
Zbigniew Jędrzejewski-Szmek
d00a52c737
pid1: split out helper func for two similar code paths
2019-07-16 14:29:04 +02:00
Zbigniew Jędrzejewski-Szmek
7842c5f2e2
run: move comment to appropriate place
2019-07-16 14:29:04 +02:00
Zbigniew Jędrzejewski-Szmek
860f2be059
systemctl: print non-elapsing timers as "n/a" not "(null)"
...
TimersCalendar={ OnCalendar=1970-01-01 00:00:00 UTC ; next_elapse=(null) }
↓
TimersCalendar={ OnCalendar=1970-01-01 00:00:00 UTC ; next_elapse=n/a }
2019-07-16 14:29:04 +02:00
Zbigniew Jędrzejewski-Szmek
0f18289954
Merge pull request #13062 from yuwata/analyze-use-table
...
systemd-analyze: use Table
2019-07-16 13:28:34 +02:00
Lennart Poettering
2cb434cfc1
analyze: port over one part of systemd-analyze to use new table_add_many() concepts
2019-07-16 12:45:38 +02:00
Lennart Poettering
8792cecc1f
format-table: add some minimal testing for new table_add_many() features
2019-07-16 12:45:13 +02:00
Lennart Poettering
6268974f88
format-table: add ability to set cell attributes within table_add_many()
...
table_add_many() is so much shorter and easier to read than
table_add_cell() with its accessors. Let's teach table_add_many() more
tricks, so that reverting to table_add_cell() is not needed that often
anymore.
2019-07-16 12:43:46 +02:00
Lennart Poettering
dea55040df
test: make sure colors don't confuse our test
2019-07-16 12:42:43 +02:00
Lennart Poettering
dc0e9c9ba6
format-table: fix parameter name
2019-07-16 12:42:19 +02:00
Lennart Poettering
525e9b7991
shared: no need to check result of strndupa()
2019-07-16 12:40:22 +02:00
Lennart Poettering
9228fef0d6
tree-wide: use empty-to-root a bit more
2019-07-16 12:40:22 +02:00
Lennart Poettering
0e3cb57dae
cryptsetup: no need to zero-initialize zero-initialized structures
2019-07-16 12:40:22 +02:00
Lennart Poettering
f200a3564c
Merge pull request #13063 from keszybz/cgroup-path-fixes
...
Cgroup path fixes
2019-07-16 11:53:31 +02:00
Yu Watanabe
7018373537
NEWS: update section name
2019-07-16 10:30:47 +09:00
Yu Watanabe
b8fcdba6db
Merge pull request #13058 from yuwata/network-enter-failed
...
network: make link enter failed state when a configuration fails
2019-07-16 09:38:39 +09:00
Zbigniew Jędrzejewski-Szmek
08f105df24
analyze: fix formatting of timestamps with 0 µs
...
There is a rule that "%.0d" formats 0 as "". There is no such rule for
"%0d" and 0 :(. The output had an extra 0 if usec was 0.
2019-07-15 19:11:16 +02:00
Yu Watanabe
8cec0a5c32
tree-wide: drop duplicated blank lines
...
```
$ for i in */*.[ch] */*/*.[ch]; do sed -e '/^$/ {N; s/\n$//g}' -i $i; done
$ git checkout HEAD -- basic/linux shared/linux
```
2019-07-15 18:41:27 +02:00
Zbigniew Jędrzejewski-Szmek
95b21cff0e
Apply empty_to_root() in three more spots for safety
2019-07-15 18:39:26 +02:00