summaryrefslogtreecommitdiff
path: root/units/resize2fs@.service
diff options
context:
space:
mode:
Diffstat (limited to 'units/resize2fs@.service')
-rw-r--r--units/resize2fs@.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/units/resize2fs@.service b/units/resize2fs@.service
new file mode 100644
index 0000000..e761df5
--- /dev/null
+++ b/units/resize2fs@.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Resize of File System on %f
+DefaultDependencies=no
+BindsTo=%i.device
+After=fsck@%i.service
+Requires=fsck@%i.service
+Before=local-fs.target shutdown.target
+
+[Service]
+Type=oneshot
+ExecStart=/sbin/resize2fs -f %f
+ExecStartPost=/bin/ln -s /dev/null /etc/systemd/system/resize2fs@%i.service
+StandardOutput=journal+console
+TimeoutSec=0