summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangjung Woo <sangjung.woo@samsung.com>2014-04-04 15:29:40 +0900
committerSangjung Woo <sangjung.woo@samsung.com>2014-04-04 17:34:17 +0900
commit6183e095aed2b8a00b2ac5b965cd0e3d7be0e01d (patch)
treeab6c10b09cfc326469990c3297318a234f187fde
parent81dfdec205404aec43d3a32d66ed2df13d2e51b9 (diff)
downloadsystem-plugin-mount-6183e095aed2b8a00b2ac5b965cd0e3d7be0e01d.tar.gz
system-plugin-mount-6183e095aed2b8a00b2ac5b965cd0e3d7be0e01d.tar.bz2
system-plugin-mount-6183e095aed2b8a00b2ac5b965cd0e3d7be0e01d.zip
Add resize partition service file
Specific partition should be extended by using resize2fs command when its first time booting. New added service file supports to general resize2fs functionality by passing its partition node information. Change-Id: I63766697a994133430ed563ea0fa5a7536e09f26 Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
-rwxr-xr-xpackaging/system-plugin-mount.spec1
-rw-r--r--usr/lib/systemd/system/resize2fs@.service14
2 files changed, 15 insertions, 0 deletions
diff --git a/packaging/system-plugin-mount.spec b/packaging/system-plugin-mount.spec
index 55c9056..88498e5 100755
--- a/packaging/system-plugin-mount.spec
+++ b/packaging/system-plugin-mount.spec
@@ -41,3 +41,4 @@ ln -s ../resize2fs-root.service %{buildroot}%{_unitdir}/local-fs.target.wants/re
/usr/share/license/%{name}
%{_unitdir}/resize2fs-root.service
%{_unitdir}/local-fs.target.wants/resize2fs-root.service
+%{_unitdir}/resize2fs@.service
diff --git a/usr/lib/systemd/system/resize2fs@.service b/usr/lib/systemd/system/resize2fs@.service
new file mode 100644
index 0000000..c47fd47
--- /dev/null
+++ b/usr/lib/systemd/system/resize2fs@.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Resize of File System on %f
+DefaultDependencies=no
+BindTo=%i.device
+After=systemd-fsck@%i.service
+Requires=systemd-fsck@%i.service
+Before=local-fs.target shutdown.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=no
+ExecStart=/sbin/resize2fs %f
+StandardOutput=journal+console
+TimeoutSec=0