summaryrefslogtreecommitdiff
path: root/units/resize2fs-root.service
diff options
context:
space:
mode:
Diffstat (limited to 'units/resize2fs-root.service')
-rw-r--r--units/resize2fs-root.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/units/resize2fs-root.service b/units/resize2fs-root.service
new file mode 100644
index 0000000..8b8a899
--- /dev/null
+++ b/units/resize2fs-root.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Resize of File System on the Root Device
+DefaultDependencies=no
+Before=local-fs.target shutdown.target
+
+[Service]
+Type=oneshot
+ExecStartPre=/bin/mount -o remount,rw /
+ExecStart=/bin/bash -c "/usr/bin/resize2fs_by_partlabel.sh rootfs"
+ExecStartPost=/bin/ln -s /dev/null /etc/systemd/system/resize2fs-root.service
+StandardOutput=journal+console
+TimeoutSec=0