diff options
author | INSUN PYO <insun.pyo@samsung.com> | 2019-02-08 18:19:50 +0900 |
---|---|---|
committer | INSUN PYO <insun.pyo@samsung.com> | 2019-03-08 19:21:27 +0900 |
commit | c6151c9fe770a29e67713330263828d445d641a1 (patch) | |
tree | a1076967c78c0c83b912c128a8f46d08e55a4e9c | |
parent | e7d223eb5074a981b7561c2eec46051fddcf0a06 (diff) | |
download | system-plugin-c6151c9fe770a29e67713330263828d445d641a1.tar.gz system-plugin-c6151c9fe770a29e67713330263828d445d641a1.tar.bz2 system-plugin-c6151c9fe770a29e67713330263828d445d641a1.zip |
Remove resizefs@.servicesubmit/tizen/20190311.123423accepted/tizen/unified/20190312.113106
- initrd and init_wrapper performs the resizefs function instead.
- VD and DA : perform in the image flushing step.
- MCD : perform in initrd
- Emulator : perform when combining images in script
Change-Id: I9ea0bdb11710cf0258aafe0b9cb2a266b6d4c952
-rw-r--r-- | packaging/system-plugin.spec | 23 | ||||
-rw-r--r-- | units/resize2fs@.service | 15 |
2 files changed, 5 insertions, 33 deletions
diff --git a/packaging/system-plugin.spec b/packaging/system-plugin.spec index 66b3540..1480b2e 100644 --- a/packaging/system-plugin.spec +++ b/packaging/system-plugin.spec @@ -120,7 +120,7 @@ Requires: %{name} = %{version}-%{release} BuildArch: noarch %description config-2parts -This package provides configuration files for /etc/fstab(remount) and resize2fs@.service. +This package provides configuration files for /etc/fstab(remount) %package config-3parts Summary: System configuration files for storage partitions @@ -128,7 +128,7 @@ Requires: %{name} = %{version}-%{release} BuildArch: noarch %description config-3parts -This package provides configuration files for /etc/fstab(remount) and resize2fs@.service. +This package provides configuration files for /etc/fstab(remount) %package config-3parts-lzuser Summary: System configuration files for storage partitions @@ -136,7 +136,7 @@ Requires: %{name} = %{version}-%{release} BuildArch: noarch %description config-3parts-lzuser -This package provides configuration files for /etc/fstab(remount) and resize2fs@.service. +This package provides configuration files for /etc/fstab(remount) %prep %setup -q @@ -153,7 +153,6 @@ mkdir -p %{buildroot}%{_unitdir} mkdir -p %{buildroot}%{_userunitdir} mkdir -p %{buildroot}/csa mkdir -p %{buildroot}/initrd -install -m 644 units/resize2fs@.service %{buildroot}%{_unitdir} install -m 644 units/tizen-system-env.service %{buildroot}%{_unitdir} # csa mount @@ -161,14 +160,11 @@ install -m 644 units/csa.mount %{buildroot}%{_unitdir} mkdir -p %{buildroot}%{_unitdir}/local-fs.target.wants ln -s ../csa.mount %{buildroot}%{_unitdir}/local-fs.target.wants/csa.mount -# Resize partition for 3-parted target +# tizen-system-env.service mkdir -p %{buildroot}%{_unitdir}/basic.target.wants -ln -s ../resize2fs@.service %{buildroot}%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\\x2dlabel-system\\x2ddata.service -ln -s ../resize2fs@.service %{buildroot}%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\\x2dlabel-user.service -ln -s ../resize2fs@.service %{buildroot}%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\\x2dlabel-rootfs.service - ln -s ../tizen-system-env.service %{buildroot}%{_unitdir}/basic.target.wants/tizen-system-env.service +#udev rules mkdir -p %{buildroot}%{_prefix}/lib/udev/rules.d/ install -m 644 rules/51-system-plugin-exynos.rules %{buildroot}%{_prefix}/lib/udev/rules.d/ install -m 644 rules/51-system-plugin-spreadtrum.rules %{buildroot}%{_prefix}/lib/udev/rules.d/ @@ -240,7 +236,6 @@ systemctl daemon-reload %files %manifest %{name}.manifest %license LICENSE.Apache-2.0 -%{_unitdir}/resize2fs@.service %{_unitdir}/tizen-system-env.service %{_unitdir}/basic.target.wants/tizen-system-env.service @@ -357,8 +352,6 @@ echo "" %files config-2parts %manifest %{name}.manifest %license LICENSE.Apache-2.0 -%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dlabel-rootfs.service -%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dlabel-system\x2ddata.service %{_sysconfdir}/fstab_2parts %{_unitdir}/wait-mount@.service %{_unitdir}/wait-mount@opt-usr.service.d/no-wait.conf @@ -373,9 +366,6 @@ mv %{_sysconfdir}/fstab_2parts %{_sysconfdir}/fstab %files config-3parts %manifest %{name}.manifest %license LICENSE.Apache-2.0 -%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dlabel-rootfs.service -%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dlabel-system\x2ddata.service -%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dlabel-user.service %{_sysconfdir}/fstab_3parts %{_unitdir}/wait-mount@.service %{_unitdir}/local-fs.target.wants/wait-mount@opt-usr.service @@ -388,9 +378,6 @@ mv %{_sysconfdir}/fstab_3parts %{_sysconfdir}/fstab %files config-3parts-lzuser %manifest %{name}.manifest %license LICENSE.Apache-2.0 -%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dlabel-rootfs.service -%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dlabel-system\x2ddata.service -%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dlabel-user.service %{_sysconfdir}/fstab_2parts %{_unitdir}/opt-usr.mount %{_unitdir}/opt-usr-fsck.service diff --git a/units/resize2fs@.service b/units/resize2fs@.service deleted file mode 100644 index 6bdd9b6..0000000 --- a/units/resize2fs@.service +++ /dev/null @@ -1,15 +0,0 @@ -[Unit] -Description=Resize of File System on %f -DefaultDependencies=no -BindsTo=%i.device -After=systemd-fsck@%i.service local-fs.target -Requires=systemd-fsck@%i.service -Before=shutdown.target - -[Service] -Type=oneshot -SmackProcessLabel=System -ExecStart=/sbin/resize2fs -f %f -ExecStartPost=/bin/ln -s /dev/null /etc/systemd/system/resize2fs@%i.service -StandardOutput=journal+console -TimeoutSec=0 |