Skip to content
This repository was archived by the owner on Nov 24, 2026. It is now read-only.

V250 stable - #217

Merged
keszybz merged 2 commits into
systemd:v250-stablefrom
bsmojver:v250-stable
Sep 30, 2022
Merged

keszybz merged 2 commits into
systemd:v250-stablefrom
bsmojver:v250-stable

Conversation

@bsmojver

@bsmojver bsmojver commented Aug 18, 2022 •

Copy link
Copy Markdown

This is the pull request for systemd/systemd#13775

Essentially, a backport of a couple of commits that avoid the problem with mounts of /boot/efi on AL2022. I tested these patches on F36 as well, which is using v250.8 ATM and I could see no ill effect.

yuwata and others added 2 commits August 18, 2022 10:48
The issue #12953 is caused by the following:
On switching root,
- deserialized_found == DEVICE_FOUND_UDEV | DEVICE_FOUND_MOUNT,
- deserialized_state == DEVICE_PLUGGED,
- enumerated_found == DEVICE_FOUND_MOUNT,
On switching root, most devices are not found by the enumeration process.
Hence, the device state is set to plugged by device_coldplug(), and then
changed to the dead state in device_catchup(). So the corresponding
mount point is unmounted. Later when the device is processed by udevd, it
will be changed to plugged state again.

The issue #23208 is caused by the fact that generated udev database in
initramfs and the main system are often different.

So, the two issues have the same root; we should not honor
DEVICE_FOUND_UDEV bit in the deserialized_found on switching root.

This partially reverts c6e892b.

Fixes #12953 and #23208.
Replaces #23215.

Co-authored-by: Martin Wilck <[email protected]>
(cherry picked from commit 75d7b59)
On switching root, a device may have a persistent databse. In that case,
Device.enumerated_found may have DEVICE_FOUND_UDEV flag, and it is not
necessary to downgrade the Device.deserialized_found and
Device.deserialized_state. Otherwise, the state of the device unit may
be changed plugged -> dead -> plugged, if the device has not been mounted.

Fixes #23429.

[mwilck: cherry-picked from #23437]

(cherry picked from commit 4fc69e8)
(cherry picked from commit 131206d)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants