diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-09-23 14:59:02 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-09-23 15:10:53 +0200 |
commit | 32e276708089110243682d8aaa3d58075b91f0d6 (patch) | |
tree | 44a32b969266f7dfe9529f31e79046e78ca7e474 /src/core/device.c | |
parent | addc84ec9184094db4439006e8a3b955b6387f74 (diff) | |
download | systemd-32e276708089110243682d8aaa3d58075b91f0d6.tar.gz |
tree-wide: use the term "initrd" at most places we so far used "initramfs"
In most cases we refernced the concept as "initrd". Let's convert most
remaining uses of "initramfs" to "initrd" too, to stay internally
consistent.
This leaves "initramfs" only where it's relevant to explain historical
concepts or where "initramfs" is part of the API (i.e. in
/run/initramfs).
Follow-up for: b66a6e1a5838b874b789820c090dd6850cf10513
Diffstat (limited to 'src/core/device.c')
-rw-r--r-- | src/core/device.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/core/device.c b/src/core/device.c index b3cf77d50c..a4fa870541 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -281,13 +281,14 @@ static int device_coldplug(Unit *u) { * other units, or (b) generated when uevents are received. * * - On switch-root, the udev database may be cleared, except for devices with sticky bit, i.e. - * OPTIONS="db_persist". Hence, almost no devices are enumerated in the step 2. However, in general, - * we have several serialized devices. So, DEVICE_FOUND_UDEV bit in the deserialized_found must be - * ignored, as udev rules in initramfs and the main system are often different. If the deserialized - * state is DEVICE_PLUGGED, we need to downgrade it to DEVICE_TENTATIVE. Unlike the other starting - * mode, MANAGER_IS_SWITCHING_ROOT() is true when device_coldplug() and device_catchup() are called. - * Hence, let's conditionalize the operations by using the flag. After switch-root, systemd-udevd - * will (re-)process all devices, and the Device.found and Device.state will be adjusted. + * OPTIONS="db_persist". Hence, almost no devices are enumerated in the step 2. However, in + * general, we have several serialized devices. So, DEVICE_FOUND_UDEV bit in the deserialized_found + * must be ignored, as udev rules in initrd and the main system are often different. If the + * deserialized state is DEVICE_PLUGGED, we need to downgrade it to DEVICE_TENTATIVE. Unlike the + * other starting mode, MANAGER_IS_SWITCHING_ROOT() is true when device_coldplug() and + * device_catchup() are called. Hence, let's conditionalize the operations by using the + * flag. After switch-root, systemd-udevd will (re-)process all devices, and the Device.found and + * Device.state will be adjusted. * * - On reload or reexecute, we can trust enumerated_found, deserialized_found, and deserialized_state. * Of course, deserialized parameters may be outdated, but the unit state can be adjusted later by |