Evgeny Vereshchagin
9e8b1ec08e
sd-journal: escape binary data in match_make_string()
...
Fixes : #10383
2018-10-23 19:33:01 +02:00
Yu Watanabe
61b8aa3d27
udevadm: normalize exit status
...
After d354690e7d
, each udevadm command
returns negative errno on error. So, let's normalize the exit status
of udevadm.
2018-10-23 19:31:37 +02:00
Lennart Poettering
5d83b9f47b
Merge pull request #10493 from yuwata/parse-time-overflow
...
util: check overflow in parse_time() and parse_nsec()
2018-10-23 19:30:49 +02:00
Yu Watanabe
cb39201e72
bash-completion: analyze: add timespan
...
Follow-up for 3f1c1287a9
.
2018-10-23 22:28:42 +09:00
Yu Watanabe
db4e61071d
test: add tests for detecting overflow in parse_time() and parse_nsec()
2018-10-23 22:25:01 +09:00
Yu Watanabe
f6a178e91d
util: check overflow in parse_nsec()
2018-10-23 22:24:16 +09:00
Yu Watanabe
8079c90333
util: check overflow in parse_time()
2018-10-23 22:23:34 +09:00
Chris Down
3f1c1287a9
analyze: Add "timespan" command to dump time span in usec
...
This is useful for a couple of cases, I'm mostly interested in case #1 :
1. Verifying "reasonable" values in a trivially scriptable way
2. Debugging unexpected time span parsing directly
Test Plan:
```
% build/systemd-analyze timespan 20
Original: 20
μs: 20
Human: 20us
% build/systemd-analyze timespan 20ms
Original: 20ms
μs: 20000
Human: 20ms
% build/systemd-analyze timespan 20z
Failed to parse time span '20z': Invalid argument
```
2018-10-23 14:26:51 +02:00
Zbigniew Jędrzejewski-Szmek
f402ce827d
Merge pull request #10395 from yuwata/udev-cleanup-9
...
udev-builtin: replace udev_device by sd_device
2018-10-23 13:43:33 +02:00
Yu Watanabe
d354690e7d
udev-builtin: propagate negative errno
2018-10-23 18:29:25 +09:00
Yu Watanabe
45a73f4be3
udevadm-test-builtin: use find_device()
...
This also fixes minor memleak.
2018-10-23 18:28:38 +09:00
Yu Watanabe
b753e14ac8
udevadm: use path friendly functions
2018-10-23 18:28:38 +09:00
Yu Watanabe
269c3b67c6
udev: propagate original error from udev_builtin_add_property()
2018-10-23 18:28:38 +09:00
Yu Watanabe
63918f926a
udev: logs error in udev_builtin_add_property()
2018-10-23 18:28:38 +09:00
Yu Watanabe
b0cba0ca52
sd-device: introduce log_device_*() macros
2018-10-23 18:28:38 +09:00
Yu Watanabe
c45b369dd1
udev-builtin: modernize code a bit
...
- introduce _UDEV_BUILTIN_INVALID,
- use _UDEV_BUILTIN_MAX where applicable,
- add several assertions.
2018-10-23 18:28:38 +09:00
Yu Watanabe
d277e33916
udevadm-test-builtin: replace udev_device by sd_device
2018-10-23 18:28:38 +09:00
Yu Watanabe
981b8159e9
udev: drop libudev-private.h from udev-builtin-{hwdb,net_id}.c
2018-10-23 18:28:38 +09:00
Yu Watanabe
3d6194e83e
udev: make udev_builtin_run take sd_device
2018-10-23 18:28:38 +09:00
Yu Watanabe
9b917abe02
udev-builtin: simplify code a bit
2018-10-23 18:28:38 +09:00
Yu Watanabe
3fc2e9a247
udev: replace udev_device by sd_device from prototype of udev builtin commands
2018-10-23 18:28:38 +09:00
Yu Watanabe
71bd61c576
udev: replace udev_device by sd_device in udev-builtin-usb_id.c
2018-10-23 18:28:38 +09:00
Yu Watanabe
4b60fe6e83
udev: replace udev_device by sd_device in udev-builtin-uaccess.c
2018-10-23 18:28:38 +09:00
Yu Watanabe
de675b17c8
udev: replace udev_device by sd_device in udev-builtin-path_id.c
2018-10-23 18:28:38 +09:00
Yu Watanabe
d9b3e99656
udev: replace udev_device by sd_device in udev-builtin-net_setup_link.c
2018-10-23 18:28:38 +09:00
Yu Watanabe
09d04a74c1
udev: replace udev_device by sd_device in udev-builtin-net_id.c
2018-10-23 18:28:00 +09:00
Yu Watanabe
786cc8523a
udev: replace udev_device by sd_device in udev-builtin-keyboard.c
2018-10-23 17:51:34 +09:00
Yu Watanabe
ff79992751
udev: replace udev_device by sd_device in udev-builtin-input_id.c
2018-10-23 17:51:34 +09:00
Yu Watanabe
29fefe2dcb
udev: replace udev_device by sd_device in udev-builtin-blkid.c
2018-10-23 17:51:34 +09:00
Yu Watanabe
bfc38d8fff
udev: replace udev_device by sd_device in udev-builtin-hwdb.c
2018-10-23 17:51:34 +09:00
Yu Watanabe
0c9c063477
udev: make udev_builtin_add_property() take sd_device instead of udev_device
2018-10-23 17:51:34 +09:00
Evgeny Vereshchagin
20fc56c02d
tests: allow passing log_level via an environment variable ( #10490 )
2018-10-23 16:09:23 +09:00
Michael Biebl
3deb28f20a
tests: update networkd-test.py to use resolvectl instead of systemd-resolve ( #10486 )
...
The latter is merely a compat symlink nowadays.
2018-10-23 07:29:03 +09:00
Lennart Poettering
5e3fc5730c
Merge pull request #7411 from joergsteffens/tapechanger
...
udev-rules: extend tape and tape changer rules
2018-10-22 21:43:58 +02:00
Lennart Poettering
15b1180945
Merge pull request #10477 from yuwata/fix-10474
...
network: include linux/fou.h if it exists
2018-10-22 21:33:23 +02:00
Lennart Poettering
a57e48a133
Merge pull request #10415 from poettering/boot-loader-spec-tweaks
...
docs: tweaks to the boot loader spec
2018-10-22 15:15:45 +02:00
Zbigniew Jędrzejewski-Szmek
369ca6dab1
systemd-nspawn: do not crash on /var/log/journal creation if not required
...
When running a read-only file system, we might not be able to create
/var/log/journal. Do not fail on this, unless actually requested by the
--link-journal options.
$ systemd-nspawn --image=image.squashfs ...
2018-10-22 15:07:08 +02:00
Yu Watanabe
80df8f2518
missing: support old linux/fou.h
...
linux/fou.h was introduced in 3.18.
FOU_ATTR_REMCSUM_NOPARTIAL was added in 4.0.
FOU_CMD_GET was added in 4.1.
Follow-up for 53cb501a13
.
Fixes #10474 .
2018-10-21 22:34:28 +09:00
Lennart Poettering
a2689fa5fc
Merge pull request #9437 from poettering/sd-boot-count
...
many sd-boot/bootctl fixes, and a new "boot counting" concept, for automatic fallback to older kernels on persistent failures
2018-10-19 23:04:22 +02:00
Tobias Jungel
cbff717048
networkd: keep bond slave up if already attached
...
There is no need to disable an already correct enslaved interface.
relates to #10118
2018-10-19 23:00:52 +02:00
Li Song
cc3981b127
sd-dhcp: remove unreachable route after rebinding return NAK
2018-10-19 22:59:20 +02:00
Lennart Poettering
41159592f8
Merge pull request #10470 from yuwata/log-message-updates
...
Log message updates
2018-10-19 22:58:53 +02:00
Lennart Poettering
07ec9c8225
boot-loader-spec: drop link to obsolete patch
...
This is not what distros use, let's not point users to obsolete stuff.
2018-10-19 22:49:42 +02:00
Lennart Poettering
d3584ec472
update TODO
2018-10-19 22:49:42 +02:00
Lennart Poettering
bdc4c7ac23
boot-loader-spec: elaborate on 'architecture' stanza a bit and use it in the example
2018-10-19 22:48:27 +02:00
Lennart Poettering
084a8029dc
docs: tweaks to the boot loader spec
...
A couple of changes:
1. Clearly name the drop-in entry files "Type #1 ", and the unified
kernel images "Type #2 ", and be clearer that the latter is specific
to UEFI.
2. Suffix all directory paths with a trailing "/" to clarify that these
are directories. Also, enclose them all in ``.
3. Add introductory paragraph that explains that there is Type #1 and
Type #2 and what they are about.
4. Explain that Type #2 is about signed UEFI SecureBoot.
5. Don't claim that $BOOT/loader/ contains really all files defined by
the spec, because that's not true, Type #2 images are not located there
after all.
Fixes : #10399
2018-10-19 22:48:27 +02:00
Lennart Poettering
8c073ddeec
man: use proper <keycap> and <keycombo> docbook tags for key bindings
2018-10-19 22:34:50 +02:00
Lennart Poettering
0c74648b88
doc: add a markdown document introducing the boot assessment logic
2018-10-19 22:34:50 +02:00
Lennart Poettering
2b6cc3cab9
man: document boot counting logic in systemd-boot
2018-10-19 22:34:50 +02:00
Lennart Poettering
223ce56fa1
man: document systemd-bless-boot-generator
2018-10-19 22:34:50 +02:00