diff options
| author | Simon Rettberg | 2025-04-09 13:59:49 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2025-04-09 13:59:49 +0200 |
| commit | 7eca62ec51d030e959d52d79c370d789ace5334a (patch) | |
| tree | e97370e2d003261c99f55b1dfadce3336b3141d2 /modules.d/dnbd3-rootfs | |
| parent | [slx-clock] Try to guess RTC mode and write time back if no mode is specified (diff) | |
| download | systemd-init-7eca62ec51d030e959d52d79c370d789ace5334a.tar.gz systemd-init-7eca62ec51d030e959d52d79c370d789ace5334a.tar.xz systemd-init-7eca62ec51d030e959d52d79c370d789ace5334a.zip | |
[slx-dmsetup] Split dmsetup-slx-device into smaller services
Diffstat (limited to 'modules.d/dnbd3-rootfs')
| -rwxr-xr-x | modules.d/dnbd3-rootfs/hooks/s3-connect-image.sh (renamed from modules.d/dnbd3-rootfs/hooks/s3-dnbd3root.sh) | 7 | ||||
| -rwxr-xr-x | modules.d/dnbd3-rootfs/module-setup.sh | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/modules.d/dnbd3-rootfs/hooks/s3-dnbd3root.sh b/modules.d/dnbd3-rootfs/hooks/s3-connect-image.sh index e78a007a..835a5613 100755 --- a/modules.d/dnbd3-rootfs/hooks/s3-dnbd3root.sh +++ b/modules.d/dnbd3-rootfs/hooks/s3-connect-image.sh @@ -207,9 +207,8 @@ if ! [ -b "$read_only_partition" ]; then fi echo "Using read-only partition: $read_only_partition" +echo "$read_only_partition" > "/.read_only_device" -# region add rw layer to dnbd3 image -# don't be fooled to think we are done, the next part is crucial -dmsetup-slx-device "$read_only_partition" settle -# endregion + +exit 0 diff --git a/modules.d/dnbd3-rootfs/module-setup.sh b/modules.d/dnbd3-rootfs/module-setup.sh index b8cc10af..67907d10 100755 --- a/modules.d/dnbd3-rootfs/module-setup.sh +++ b/modules.d/dnbd3-rootfs/module-setup.sh @@ -149,7 +149,7 @@ install() { inst_hook cmdline 90 "$moddir/hooks/set-dracut-environment-variables.sh" # make the final blockdevice for the root system (dnbd3 -> xmount -> # device-mapper) - slx_service "s3-dnbd3root" "Setup dnbd3-based block device of rootfs" \ + slx_service "s3-connect-image" "Setup dnbd3-based block device of rootfs" \ --after "s3-fetch-config.service" \ --after "dracut-pre-mount.service" \ --wbefore "dracut-mount.service" \ |
