diff options
Diffstat (limited to 'usr/lib/systemd/system/resize2fs-root.service')
-rwxr-xr-x | usr/lib/systemd/system/resize2fs-root.service | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/usr/lib/systemd/system/resize2fs-root.service b/usr/lib/systemd/system/resize2fs-root.service new file mode 100755 index 0000000..aeb9435 --- /dev/null +++ b/usr/lib/systemd/system/resize2fs-root.service @@ -0,0 +1,16 @@ +[Unit] +Description=Resize of File System on the Root Device +DefaultDependencies=no +Requires=fsck-root.service +After=fsck-root.service +Before=remount-rootfs.service local-fs.target shutdown.target + +[Service] +Type=oneshot +RemainAfterExit=no +ExecStartPre=/bin/mount -o remount,rw / +ExecStart=/bin/with-dev-root-do /sbin/resize2fs +ExecStartPost=/bin/ln -s /dev/null /etc/systemd/system/resize2fs-root.service +ExecStartPost=/bin/mount -o remount / +StandardOutput=journal+console +TimeoutSec=0 |