| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ \ \
| | | | |
| | | | | |
udev: check existence of device node
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Previously, the stack directory contains empty regular files named with
device ID, and we create sd_device object from the device name.
Hence, we implicitly checked the existence of the device node.
However, now the files in the stack directory are symlink, and we
retrieve the path to the device node and its priority from the symlink.
Hence, the existence of the device node is not checked.
Let's check if the device node is still exist.
|
| | | | |
| | | | |
| | | | |
| | | | | |
No functional changes, just refactoring.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
TEST-50-DISSECT: cleanups
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
These paths are read-only mount points. Hence, we cannot remove the
contents.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
And rebreak long lines.
This should take no effective change, just refactoring.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
unique name
Otherwise we get error from libcryptsetup like the following:
systemd[1234]: Cannot use device /dev/loop5 which is in use (already mapped or mounted).
|
| |_|/ / /
|/| | | |
| | | | |
| | | | | |
Follow-up for 790da548b0c37af60aed2f46867ba3885ea78718.
|
| | | | |
| | | | |
| | | | |
| | | | | |
The DM block device may be still used by other processes.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Let's say what we actually measure, not what into (which is obvious
anyway).
This is generally more descriptive, but also good for later work that
allows measuring the boot phase too.
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
udev: open with O_NOCTTY
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
All files or device nodes opened here should not be console tty.
Let's open it the flags for safety.
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
various: use "-" instead of "n/a" in tables
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
"Disk Size" could be mistaken for "Size of the Disk".
|
| | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
In the context of a table, both would be generally understood to have the same
meaning. "n/a" is a strange beast. It was useful when tables were produced on
the typewriter with "---------" used to separate rows. It is visually more
pleasing to use "-", and there is no risk of it being mistaken for a row
separator.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Early boot ordering
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
We don't have it other places, so let's make things a bit simpler.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Normally we queue initrd-switch-root.target/isolate, which pulls in the
service via Wants= in the .target unit file. But if the service is instead
started directly, there may be nothing pulling in the target. Let's make
sure that the reference exists.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
If we want to stop those services which would compete for access to
the console, we need to have an ordering so that they are actually
stopped before the other things starts, not asynchronously.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
For shutdown, we queue shutdown.target/start, so in every unit which should be
stopped *before* shutdown, we need both Conflicts and an ordering dependency
with shutdown.target (either Before= or After= would work, because stop jobs
are always ordered before start jobs).
For initrd transition, we queue initrd-switch-root.service/isolate. This
automatically creates a /stop job for every running unit without
IgnoreOnIsolate. But no ordering dependency is created, unless the unit has a
(possibly transitive) ordering dependency on initrd-switch-root.service.
Since most units must stop before the transition, we should add the ordering
dependency. It is nicer to use Before=initrd-switch-root.target for this.
initrd-switch-root.target is ordered before initrd-switch-root.service, so
the effect it the same when both are in a transaction.
Fixes #23745.
To also cover the case where somebody is emergency mode in the initrd and
queues initrd-switch-root.service/start (not isolate), also add
Conflicts=initrd-switch-root.target, so various units are stopped properly.
This extends 2525682565b372b9b83c848bfe89c025fed47a1d to cover all the other
services that are touched. It could be consider "operator error", but it's
easy to make and it's nicer if we can make this more foolproof.
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The block is reordered and split to have:
1. description + documentation
2. (optionally) conditions
3. all the dependencies
I think it's easier to read the units this way.
Also, the Conflicts+Before is seperated out to separate lines.
The ordering dependency is "fake", because it could just as well be
After=, we are adding it to force ordering wrt. shutdown.target, and
it plays a different role than the other Before=, which are about a
real ordering on boot.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
dissect-image: make verity_partition() actually fail when all attempts of activation failed
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
activation failed
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
To make verity_partition() shorten. No functional changes, just
refactoring.
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
We have free_and_replace() and friends, they are all named with lower
letters, even they are macros, not functions.
For consistency, let's rename CLOSE_AND_REPLACE() with lower letters.
This also mekes the macro used more places.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
reboot -f"
Closes #24696.
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
read-only requests
Without this, the 'machinectl read-only ...' command always fails.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This effectively reverts 84e1001541151da71bae2137e2a1c254b5a3b89f.
The sd-netlink library has several issues, and we should not export it
without solving them. See issues #24258 and #24124.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
dissect-image: fix memleak
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
No functional changes, just coding syle update.
|
| | |/ / / /
| |/| | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Seeding RNG via SMBIOS is bad idea, since often measurement of SMBIOS
tables is used for TPM policies, under the assumption SMBIOS remains
static after a certain point.
|
| | | | | | |
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
watchdog: open /dev/watchdog0 only if it exists
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Fixes #24661.
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
pid1: follow-ups for watchdog DBus properties
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Follow-up for 10f3f4ed016b9fe92ca3d093fcfaed8278e69220.
We already have RuntimeWatchdogUSec or friends. Let's not introduce
redundant properties.
Also, drop the const qualifier for WatchdogLastPingTimestamp, as they
are actually not constant.
|
| |/ / / / / /
| | | | | | |
| | | | | | |
| | | | | | | |
No functional change, as they were implicitly initialized with zero.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Fixes #24563.
|
|\ \ \ \ \ \ \
| |_|/ / / / /
|/| | | | | | |
uid-range: several cleanups
|
| | | | | | | |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This renames UidRange -> UidRangeEntry, and reintroduces UidRange which
contains the array of UidRangeEntry and its size.
No fucntional changes, just refactoring.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
No functional changes, just refactoring.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
If uid_map contains many lines, then the previous logic takes O(n^2 log n),
This makes O(n log n).
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
The array of uid range entries are already sorted. Hence, if x and y are
does not have intersection, then the remaining entries neither have
intersection with x.
|