summaryrefslogtreecommitdiffstats
path: root/core/modules/bwlp-stage4-tweaks/data/etc/systemd/system/grow-rootfs.service
diff options
context:
space:
mode:
authorSimon Rettberg2024-01-29 15:09:23 +0100
committerSimon Rettberg2024-01-29 15:09:23 +0100
commit75568a191bed499d12818cd474cf4474b406b6ab (patch)
treed1bae52c1b040d500962f879be9de8065a55b891 /core/modules/bwlp-stage4-tweaks/data/etc/systemd/system/grow-rootfs.service
parent[run-virt] Split mounting of /tmp/virt into own service (diff)
downloadmltk-75568a191bed499d12818cd474cf4474b406b6ab.tar.gz
mltk-75568a191bed499d12818cd474cf4474b406b6ab.tar.xz
mltk-75568a191bed499d12818cd474cf4474b406b6ab.zip
[bwlp-stage4-tweaks] Add service to grow rootfs to blockdev size
This was previously done in initrd, but it turns out this was happening rather late and blocked the switchroot for a couple seconds. Let's do it in stage 4 instead as early as possible, and order it before gather-hw-info.service, as that service will determine the rootfs free space and needs to see the properly resized rootfs.
Diffstat (limited to 'core/modules/bwlp-stage4-tweaks/data/etc/systemd/system/grow-rootfs.service')
-rw-r--r--core/modules/bwlp-stage4-tweaks/data/etc/systemd/system/grow-rootfs.service9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/modules/bwlp-stage4-tweaks/data/etc/systemd/system/grow-rootfs.service b/core/modules/bwlp-stage4-tweaks/data/etc/systemd/system/grow-rootfs.service
new file mode 100644
index 00000000..60985596
--- /dev/null
+++ b/core/modules/bwlp-stage4-tweaks/data/etc/systemd/system/grow-rootfs.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Grow size of rootfs to underlying block device
+DefaultDependencies=no
+Before=gather-hw-info.service
+
+[Service]
+Type=oneshot
+RemainAfterExit=true
+ExecStart=/opt/openslx/scripts/systemd-grow_rootfs