Zbigniew Jędrzejewski-Szmek
7f6b827f36
Merge pull request #15836 from poettering/makefs-lock
...
lock whole block device file running makefs
2020-05-19 15:23:23 +02:00
Lennart Poettering
feb13fca97
repart: don't insist on coming up on partition label ourselves
...
If the user specified a label, use that.
Fixes : #15841
2020-05-19 15:04:01 +02:00
Lennart Poettering
3468e5ac51
btrfs-util: tweak error code a bit
2020-05-19 12:12:00 +02:00
Lennart Poettering
f8838c6c2f
test-fs-util: don't fail on btrfs file systems in containers
...
Fixes : #15821
2020-05-19 12:11:12 +02:00
Susant Sahani
ffed0205c7
DHCP: Use UINT8_MAX instead of 255
2020-05-19 11:48:37 +02:00
Susant Sahani
f37f2a6b8a
network: DHCPv6 - Add support to send user class
...
Frame 115: 171 bytes on wire (1368 bits), 171 bytes captured (1368 bits) on interface veth-peer, id 0
Ethernet II, Src: 1e:04:f8:b8:2f:d4 (1e:04:f8:b8:2f:d4), Dst: IPv6mcast_01:00:02 (33:33:00:01:00:02)
Internet Protocol Version 6, Src: fe80::1c04:f8ff:feb8:2fd4, Dst: ff02::1:2
User Datagram Protocol, Src Port: 546, Dst Port: 547
DHCPv6
Message type: Solicit (1)
Transaction ID: 0x673257
Rapid Commit
Option: Rapid Commit (14)
Length: 0
Identity Association for Non-temporary Address
Option: Identity Association for Non-temporary Address (3)
Length: 12
Value: d0cc94090000000000000000
IAID: d0cc9409
T1: 0
T2: 0
Fully Qualified Domain Name
Option: Fully Qualified Domain Name (39)
Length: 6
Value: 01045a657573
0000 0... = Reserved: 0x00
.... .0.. = N bit: Server should perform DNS updates
.... ..0. = O bit: Server has not overridden client's S bit preference
.... ...1 = S bit: Server should perform forward DNS updates
Client FQDN: Zeus
User Class
Option: User Class (15)
Length: 17
Value: 000f68656c6c6f30313233343031323334
Identity Association for Prefix Delegation
Option: Identity Association for Prefix Delegation (25)
Length: 12
Value: d0cc94090000000000000000
IAID: d0cc9409
T1: 0
T2: 0
Option Request
Option: Option Request (6)
Length: 10
Value: 001700180038001f000e
Requested Option code: DNS recursive name server (23)
Requested Option code: Domain Search List (24)
Requested Option code: NTP Server (56)
Requested Option code: Simple Network Time Protocol Server (31)
Requested Option code: Rapid Commit (14)
Client Identifier
Option: Client Identifier (1)
Length: 14
Value: 00020000ab11d258482fc7eee651
DUID: 00020000ab11d258482fc7eee651
DUID Type: assigned by vendor based on Enterprise number (2)
Enterprise ID: Tom Gundersen (systemd) (43793)
Identifier: d258482fc7eee651
Elapsed time
Option: Elapsed time (8)
Length: 2
Value: 0bd0
Elapsed time: 30240ms
2020-05-19 11:48:30 +02:00
Susant Sahani
3392392518
sd-network: DHCPv6 - add support to send userclass option
...
sd-network: DHCPv6 - add support to send userclass option
21.15. User Class Option
The User Class option is used by a client to identify the type or
category of users or applications it represents.
The format of the User Class option is:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| OPTION_USER_CLASS | option-len |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
. .
. user-class-data .
. .
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 26: User Class Option Format
option-code OPTION_USER_CLASS (15).
option-len Length of user-class-data field.
user-class-data The user classes carried by the client. The
length, in octets, is specified by
option-len.
The information contained in the data area of this option is
contained in one or more opaque fields that represent the user class
or classes of which the client is a member. A server selects
configuration information for the client based on the classes
identified in this option. For example, the User Class option can be
used to configure all clients of people in the accounting department
with a different printer than clients of people in the marketing
department. The user class information carried in this option MUST
be configurable on the client.
The data area of the User Class option MUST contain one or more
instances of user-class-data information. Each instance of
user-class-data is formatted as follows:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-...-+-+-+-+-+-+-+
| user-class-len | opaque-data |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-...-+-+-+-+-+-+-+
Figure 27: Format of user-class-data Field
2020-05-19 11:44:51 +02:00
Frantisek Sumsal
44dcb318cc
Merge pull request #15842 from evverx/cifuzz
...
cifuzz: protect forks from CIFuzz
2020-05-19 10:30:32 +02:00
Norbert Lange
cdf7ad38b6
allow removal of initrd services
2020-05-19 10:19:18 +02:00
Zbigniew Jędrzejewski-Szmek
5e375a1ef2
Merge pull request #15794 from poettering/pam-sudo-fixes-part2
...
pam_systemd/pam_systemd_home: fix caching
2020-05-19 10:09:14 +02:00
Lennart Poettering
201fa8f256
Merge pull request #15166 from ssahani/networkctl-ipvlan
...
networkctl: Add support to display ipvlan
2020-05-19 09:29:45 +02:00
Lennart Poettering
c5dc0a298e
homed: use right config section in example config
...
We really should get this right, otherwise it's a pretty useless vendor
default example configuration file.
Follow-up for: c76dd733af
2020-05-19 09:26:49 +02:00
Lennart Poettering
f17153a721
busctl: improve error messages on duplicate members/interfaces
...
Prompted by: #15833
2020-05-19 09:11:15 +02:00
Lennart Poettering
9600c27c41
busctl: use structured initialization
2020-05-19 09:04:36 +02:00
Zbigniew Jędrzejewski-Szmek
11aaaa2c96
TODO: drop some external items
...
Those are either implemented or obsolete.
2020-05-19 08:59:53 +02:00
Zbigniew Jędrzejewski-Szmek
e2da649182
TODO: drop some networkd items
...
DUID/IAID — #2818 , #2890 , #3156 ,
Scope – #6449 ,
bond options — #10542 ,
option 119: sd_network_get_domains/sd_network_get_search_domains,
/proc/cmdline parsing – 426c1d3852
,
wait states — #14536 .
2020-05-19 08:56:53 +02:00
Lennart Poettering
619720ba0a
Merge pull request #15810 from poettering/override-first-boot
...
core: allow overriding needs-update/first-boot/system clock via kernel cmdline
2020-05-19 08:45:59 +02:00
Lennart Poettering
01bcea4999
dhcp6: slightly improve log message
...
Let's clarify that we proceed anyway.
Prompted-by: #15830
2020-05-19 08:25:43 +02:00
Evgeny Vereshchagin
e2cf880e68
README: add a CIFuzz badge
...
Just a follow-up to https://github.com/systemd/systemd/pull/15760
2020-05-19 08:12:23 +02:00
Evgeny Vereshchagin
82d7a25ee6
cifuzz: protect forks from CIFuzz
...
CIFuzz isn't compatible with forks: https://github.com/google/oss-fuzz/issues/3731
2020-05-19 08:12:07 +02:00
Vladyslav Tronko
bc48b25afd
journal: fix dropping first record during upload to remote journal
2020-05-19 07:58:59 +02:00
Zbigniew Jędrzejewski-Szmek
abc72137d1
Merge pull request #15838 from poettering/hostnamed-instant-part2
...
more hostnamed fixes, split out of #15624
2020-05-19 07:54:47 +02:00
Zbigniew Jędrzejewski-Szmek
7b9289b1a0
man: fix dir name in sysctl.d(5)
...
Pointed out by Коренберг Марк in
e0f424790d (commitcomment-39259499)
.
2020-05-18 21:14:42 +02:00
Lennart Poettering
cfb9433de4
hostnamed: call our destructor _destroy(), not _clear()
2020-05-18 21:12:37 +02:00
Lennart Poettering
5704cd733c
hostnamed: don't cache system UUID
...
There's no point in caching this. Let's always get this directly from
sysfs, so that we can never get out-of-date data here (after all this is
going to be cheap, and people might overmount it or so)
2020-05-18 21:11:50 +02:00
Lennart Poettering
72f48cd3e3
hostnamed: don't cache uname() data
...
Let's not cache the uname(), it's very cheap to get it, and just means
we might get out of sync with what is current. After all, the data might
change IRL, due to setarch and stuff.
2020-05-18 21:11:50 +02:00
Lennart Poettering
db2c56b0dd
cryptsetup-generator: use systemd-makefs for implementation of "swap" and "tmp" options
...
This way we can take benefit of the correct block device locking we just
added.
I was thinking whether to instead pull in a regular
systemd-makefs@.service instance, but I couldn't come up with a reason
to, and thus opted for just doing the minimal patch and just replacing
the simply mkfs calls.
Fixes : #10179
Replaces: #13162
2020-05-18 20:50:03 +02:00
Lennart Poettering
a5a8fe2e8d
makefs: normalize logging a bit
2020-05-18 20:50:03 +02:00
Lennart Poettering
0181ad85b3
makefs: lock device while we operate
...
Let's implement our own specs, i.e.
https://systemd.io/BLOCK_DEVICE_LOCKING/
This should address issues like this: #13162
2020-05-18 20:50:03 +02:00
Lennart Poettering
c6526b8d66
update TODO
2020-05-18 20:20:50 +02:00
Lennart Poettering
34293dfafd
core: allow overriding the system hostname with systemd.hostname= on the kernel command line
2020-05-18 20:20:50 +02:00
Lennart Poettering
3753325bef
main: add a kernel command line option for setting the system clock early during boot
2020-05-18 20:20:50 +02:00
Lennart Poettering
814872e925
condition: introduce systemd.condition-first-boot= kernel command line switch
...
Much like systemd.condition-needs-update= this new switch allows
overriding of a unit file condition, but this time its
ConditionFirstBoot=.
Usecase is also primarily debugging, but could be useful for other
schemes too.
2020-05-18 20:20:50 +02:00
Lennart Poettering
5439d8212c
condition: debug log if F_OK check on /run/systemd/first-boot fails unexpectedly
2020-05-18 20:20:50 +02:00
Lennart Poettering
ce0f7f5546
condition: reverse if check to lower indentation level
...
No change in behaviour. Let's just prefer early exit over deeper
indentation.
2020-05-18 20:20:22 +02:00
Lennart Poettering
f8b4ae29c7
condition: allow overriding of ConditionNeedsUpdate= on the kernel command line
...
This should be useful for addressing #15724 .
2020-05-18 20:17:57 +02:00
Lennart Poettering
3931056767
proc-cmdline: add some explanatory comments
2020-05-18 20:17:57 +02:00
Lennart Poettering
b2d1ad757c
condition: when reading /etc/ modification timestamp, let's actualy compare it as-is
...
Previously, we'd only compare the nsec component of it, which sounds
needlessly fragile. Let's instead compare the timestamp as it is.
2020-05-18 20:17:57 +02:00
Lennart Poettering
f33cd69b5c
condition: downgrade a few log messages to debug
...
Condition checks shouldn't log loudly, since they run all the time.
Let's make things debuggable, by keeping the messages in LOG_DEBUG in,
but don't make more noise than necessary.
2020-05-18 20:17:57 +02:00
Lennart Poettering
df1f5dc1d9
condition: add debug log messages on unexpected errors
2020-05-18 20:17:57 +02:00
Lennart Poettering
841c0987f7
condition: check if path is absolute first
...
We should do this check first since it is done on the string itself
without any conditioning of system state otherwise. It is a weird to do
this test only if /etc is read-only.
2020-05-18 19:55:56 +02:00
Susant Sahani
851ef1ed56
networkctl: Add support to display ipvlan
...
```
build/networkctl status myipvlan1 ─╯
● 26: myipvlan1
Link File: /usr/lib/systemd/network/99-default.link
Network File: n/a
Type: ether
State: off (unmanaged)
Driver: ipvlan
HW Address: 4e:c5:88:28:c1:c0
MTU: 1500 (min: 68, max: 65535)
QDisc: noop
Mode: L2 (bridge)
Queue Length (Tx/Rx): 1/1
```
2020-05-18 19:07:04 +02:00
Lennart Poettering
ac83e5aeca
blockdev: add helper for locking whole block device
2020-05-18 18:41:56 +02:00
Lennart Poettering
58dfbfbdd6
dissect: use log_debug_errno() where appropriate
2020-05-18 18:41:56 +02:00
Lennart Poettering
700e0d3d87
makefs: log about OOM condition
2020-05-18 18:41:56 +02:00
Lennart Poettering
6cba41ab0d
blockdev: propagate one more unexpected error
2020-05-18 18:41:56 +02:00
Lennart Poettering
34d16bad2d
update TODO
2020-05-18 18:41:14 +02:00
Zbigniew Jędrzejewski-Szmek
b3d15d90c0
Merge pull request #15804 from poettering/hostnamed-instant-part1
...
four likely safe commits split out of #15624
2020-05-18 15:26:24 +02:00
Zbigniew Jędrzejewski-Szmek
d7d892e694
Merge pull request #15494 from ssahani/dhcpv6-request-options
...
DHCPv6: Allow to add arbitrary request option
2020-05-18 13:14:36 +02:00
Zbigniew Jędrzejewski-Szmek
d0e3e76bb1
Merge pull request #15165 from ssahani/bonding
...
network: Move common functions of bonding to bond-util
2020-05-18 08:52:13 +02:00