From: Sangjung Woo Date: Mon, 12 Oct 2015 07:46:17 +0000 (+0900) Subject: spec: add /etc/fstab into system-plugin-DEVICE package X-Git-Tag: submit/tizen/20151014.070251^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=830a4eb58881ced787c8fe9d623e47c208936b50;p=platform%2Fadaptation%2Fsystem-plugin.git spec: add /etc/fstab into system-plugin-DEVICE package /etc/fstab is moved to system-plugin-* from setup package. Change-Id: I660c135ab870b4ac23397d88c1556fa03004aeb3 Signed-off-by: Sangjung Woo --- diff --git a/etc/fstab b/etc/fstab new file mode 100644 index 0000000..10f7825 --- /dev/null +++ b/etc/fstab @@ -0,0 +1,4 @@ +# +/dev/root / ext4 defaults,noatime 0 1 +LABEL=system-data /opt ext4 defaults,noatime 0 2 +LABEL=user /opt/usr ext4 defaults,noatime 0 2 diff --git a/packaging/system-plugin.spec b/packaging/system-plugin.spec index 648c4b4..05e765a 100644 --- a/packaging/system-plugin.spec +++ b/packaging/system-plugin.spec @@ -59,6 +59,10 @@ ln -s ../tizen-system-env.service %{buildroot}%{_unitdir}/basic.target.wants/tiz mkdir -p %{buildroot}%{_prefix}/lib/udev/rules.d/ install -m 644 rules/51-system-plugin-exynos.rules %{buildroot}%{_prefix}/lib/udev/rules.d/ +# fstab +mkdir -p %{buildroot}%{_sysconfdir} +install -m 644 etc/fstab %{buildroot}%{_sysconfdir} + %post systemctl daemon-reload @@ -74,12 +78,14 @@ systemctl daemon-reload %{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dlabel-system\x2ddata.service %{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dlabel-user.service %{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dlabel-rootfs.service +%{_sysconfdir}/fstab %files n4 %manifest %{name}.manifest %{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dlabel-system\x2ddata.service %{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dlabel-user.service %{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dlabel-rootfs.service +%{_sysconfdir}/fstab %files exynos %manifest %{name}.manifest