Zbigniew Jędrzejewski-Szmek
c4899ea427
systemctl: print a warning when trying to import a nonexistent variable
...
I was quite confused what is happening:
$ XXX=xxx
$ systemctl --user import-environment XXX
$ systemctl --user show-environment | grep XXX
(nothing)
Obviously, 'export XXX' was missing. Without any indication why the
export is not happening, this can be hard to figure out.
Another option would be to error out. But so far we didn't, and doing
that could break some script which optimistically tries to export some
variables, if present.
2021-01-19 14:18:33 +01:00
Yu Watanabe
7b5ed18779
Merge pull request #18294 from ssahani/net-2
...
tree wide use ensure_put
2021-01-19 16:46:41 +09:00
Zbigniew Jędrzejewski-Szmek
f1fb046a98
Merge pull request #18300 from yuwata/analyze-verify-18252
...
analyze: resolve executable path if it is relative
2021-01-19 08:41:15 +01:00
Susant Sahani
3c29137626
udev: Use TAKE_PTR
2021-01-19 05:56:40 +01:00
Susant Sahani
f5b73a7fa8
udev-rules: Use ordered_hashmap_ensure_put
2021-01-19 05:56:31 +01:00
Susant Sahani
1dfb93210f
sysusers: use ordered_hashmap_ensure_put
2021-01-19 05:56:25 +01:00
Yu Watanabe
29d65a4388
Merge pull request #18303 from yuwata/verity-cleanup
...
veritysetup-generator: drop unused struct and variable
2021-01-19 12:22:55 +09:00
Yu Watanabe
7e2757c42f
Merge pull request #18038 from yuwata/meson-split
...
meson: various cleanups
2021-01-19 12:22:34 +09:00
Yu Watanabe
4c6dd238b8
Merge pull request #18267 from lucaswerkmeister/truncate
...
Two StandardOutput=truncate:file improvements
2021-01-19 08:47:39 +09:00
Yu Watanabe
ceed428305
Merge pull request #18299 from ssahani/ensure-put
...
More use of hashmap_ensure_put and ordered_hashmap_ensure_put
2021-01-19 08:42:26 +09:00
Yu Watanabe
13a4e9f209
TODO: fix typo
2021-01-19 07:22:48 +09:00
Yu Watanabe
71ce3ba25b
veritysetup-generator: drop unused struct and variable
...
Follow-ups for 08b04ec7e7 .
This also drops unnecessary inclusion.
Fixes CID#1443889.
2021-01-19 07:21:57 +09:00
Yu Watanabe
024e9084c1
meson: move several definitions related libsystemd to src/libsystemd/meson.build
2021-01-19 07:06:32 +09:00
Yu Watanabe
40dbce36df
meson: use static_libsystemd_pic
2021-01-19 07:06:32 +09:00
Yu Watanabe
a0e150b2f4
meson: add missing license header
2021-01-19 07:06:32 +09:00
Yu Watanabe
e025c9dfe3
meson: move test or fuzzer definitions to relevant meson.build in subdirectories
2021-01-19 07:06:32 +09:00
Yu Watanabe
b5c34d6bf1
meson: drop unused variable
2021-01-19 07:06:32 +09:00
Yu Watanabe
04e7ada0d7
meson: drop unnecessary files from test definitions
2021-01-19 07:06:32 +09:00
Yu Watanabe
74b28f2b36
meson: drop unnecessary libraries from journal related tests
2021-01-19 07:06:32 +09:00
Yu Watanabe
8d40961c3c
meson: slightly disentangle code dependencies
...
But, still sd-id128 is used in src/basic.
2021-01-19 07:06:32 +09:00
Yu Watanabe
b61016f207
meson: sort inclusion of meson.build files in subdirectories
2021-01-19 07:06:32 +09:00
Yu Watanabe
529642936b
meson: move libjournal_core definition to src/journal/meson.build
2021-01-19 07:06:32 +09:00
Yu Watanabe
3976f372ae
meson: move libudev related definitions to src/libudev/meson.build
...
Also, this makes libudev.so built in build directory.
2021-01-19 07:06:32 +09:00
Yu Watanabe
f6fe732ff3
meson: move and gather find_program()
2021-01-19 07:06:32 +09:00
Yu Watanabe
73e994f291
meson: drop redundant source files in executable()
2021-01-19 07:06:32 +09:00
Yu Watanabe
0275e918af
meson: move source file list for systemd-xdg-autostart-generator and its tests
2021-01-19 07:06:32 +09:00
Yu Watanabe
f98df767e1
meson: move source file list for busctl
2021-01-19 07:06:32 +09:00
Yu Watanabe
2ad279cfa4
meson: move source file list for systemd-cryptenroll
2021-01-19 07:06:32 +09:00
Yu Watanabe
b4d1892aac
meson: move source file list for systemd-cryptsetup
2021-01-19 07:06:32 +09:00
Yu Watanabe
18b49798a6
meson: show standalone-binaries setting in the summary
2021-01-19 07:06:32 +09:00
Yu Watanabe
d33b0daa6c
meson: use condition argument in test definition
2021-01-19 07:06:32 +09:00
Yu Watanabe
cbaaf7b9dd
meson: drop redundant directory specification in additional source files
2021-01-19 07:06:32 +09:00
Yu Watanabe
c35125732f
meson: move definition of systemctl source files
2021-01-19 07:06:29 +09:00
Yu Watanabe
f5a5284ea1
meson: introduce libtimesyncd_core library
2021-01-19 07:04:19 +09:00
Yu Watanabe
b09f01463a
meson: enable several tests even if the relevant features are disabled
2021-01-19 07:04:19 +09:00
Yu Watanabe
a28c0617de
meson: fix indentation
2021-01-19 07:04:19 +09:00
Yu Watanabe
4fc47fa82a
meson: drop unnecessary variable declarations
2021-01-19 07:04:19 +09:00
Yu Watanabe
7087e4729f
meson: drop unnecessary loop
2021-01-19 07:04:19 +09:00
Yu Watanabe
6969a671d9
test: drop bus-util.h from sd-bus
...
To drop src/shared from include directories to build libsystemd.so later.
2021-01-19 07:04:19 +09:00
Yu Watanabe
0159eee04a
efi: create symbolic link to efi/loader-feature.h
...
To drop src/boot/efi from include directories for binaries later.
2021-01-19 07:04:19 +09:00
Yu Watanabe
c11e5f43d2
util: move several DNS related definitions to src/basic/dns-def.h
...
DNS_HOSTNAME_MAX is used by sd-resolve, but it was defined in
src/shared/dns-domain.h. The library libsystemd should be independent
of source files under src/shared.
2021-01-19 07:04:19 +09:00
Yu Watanabe
af182ae1dc
util: move unit-file.[ch] to src/basic
...
As basic/path-lookup.[ch] depend on them.
2021-01-19 07:04:19 +09:00
Yu Watanabe
22eadc289b
util: move parse_syscall_and_errno() to seccomp-util.c
...
This makes parse-util.c independent of seccomp-util.c, which is located
in src/shared.
2021-01-19 07:04:19 +09:00
Yu Watanabe
09f7c7c668
fuzzers: move several fuzzers
2021-01-19 07:04:19 +09:00
Yu Watanabe
c5abccfa58
meson: fix indentation
2021-01-19 07:04:19 +09:00
Yu Watanabe
5acb3cabd1
meson: make the second and third elements of tests or fuzzers optional
...
Then, we can shorten many test definitions.
2021-01-19 07:04:19 +09:00
Yu Watanabe
9aeec01e77
test: move test-umount.c to src/shutdown
...
Then, we can drop src/shutdown from include directories later.
2021-01-19 07:04:19 +09:00
Yu Watanabe
bac11cd667
core: move several source files to src/shared
...
As, the files are used by many executables, fstab-generator, remount-fs,
machine-id-setup, and etc.
With this change, the total size of the relevant executables and
libshared slightly decreases.
Before:
```
$ ll systemd-fstab-generator systemd-remount-fs systemd-machine-id-setup systemd-shutdown systemd-nspawn systemd src/shared/libsystemd-shared-247.so
-rwxrwxr-x 1 watanabe watanabe 7577800 Jan 5 13:35 src/shared/libsystemd-shared-247.so
-rwxrwxr-x 1 watanabe watanabe 4608360 Jan 5 13:35 systemd
-rwxrwxr-x 1 watanabe watanabe 117240 Jan 5 13:35 systemd-fstab-generator
-rwxrwxr-x 1 watanabe watanabe 61576 Jan 5 13:35 systemd-machine-id-setup
-rwxrwxr-x 1 watanabe watanabe 853080 Jan 5 13:35 systemd-nspawn
-rwxrwxr-x 1 watanabe watanabe 70600 Jan 5 13:35 systemd-remount-fs
-rwxrwxr-x 1 watanabe watanabe 172624 Jan 5 13:35 systemd-shutdown
```
Total: 13461280
After:
```
$ ll systemd-fstab-generator systemd-remount-fs systemd-machine-id-setup systemd-shutdown systemd-nspawn systemd src/shared/libsystemd-shared-247.so
-rwxrwxr-x 1 watanabe watanabe 7658336 Jan 5 13:32 src/shared/libsystemd-shared-247.so
-rwxrwxr-x 1 watanabe watanabe 4523560 Jan 5 13:32 systemd
-rwxrwxr-x 1 watanabe watanabe 78288 Jan 5 13:32 systemd-fstab-generator
-rwxrwxr-x 1 watanabe watanabe 30984 Jan 5 13:32 systemd-machine-id-setup
-rwxrwxr-x 1 watanabe watanabe 840384 Jan 5 13:32 systemd-nspawn
-rwxrwxr-x 1 watanabe watanabe 39104 Jan 5 13:32 systemd-remount-fs
-rwxrwxr-x 1 watanabe watanabe 117160 Jan 5 13:32 systemd-shutdown
```
Total: 13287816
2021-01-19 07:04:19 +09:00
Yu Watanabe
772e0a76f3
test: rewrite test-sd-device-thread.c to depend only on libsystemd
...
Similarly, this makes test-udev-device-thread.c depend only on libudev.
2021-01-19 07:04:19 +09:00
Yu Watanabe
261fc53b99
test: move tests for libudev into src/libudev
2021-01-19 07:04:19 +09:00