summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/fstab_initrd6
-rw-r--r--packaging/system-plugin.spec12
2 files changed, 18 insertions, 0 deletions
diff --git a/etc/fstab_initrd b/etc/fstab_initrd
new file mode 100644
index 0000000..7056f20
--- /dev/null
+++ b/etc/fstab_initrd
@@ -0,0 +1,6 @@
+# In case of using MCD initrd, / and /opt is already mounted by initrd
+# Thus, this patch is temporary files for wearable.
+# Basically, initrd should consider this issue.
+# <file system> <mount point> <type> <options> <dump> <pass>
+/dev/root / ext4 defaults,noatime 0 1
+PARTLABEL=user /opt/usr ext4 defaults,noatime 0 2
diff --git a/packaging/system-plugin.spec b/packaging/system-plugin.spec
index 2de499d..d245eff 100644
--- a/packaging/system-plugin.spec
+++ b/packaging/system-plugin.spec
@@ -75,6 +75,9 @@ 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
+# ugly temporary patch for initrd wearable
+ln -s ../resize2fs@.service %{buildroot}%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\\x2dpartlabel-user.service
+
ln -s ../tizen-system-env.service %{buildroot}%{_unitdir}/basic.target.wants/tizen-system-env.service
mkdir -p %{buildroot}%{_prefix}/lib/udev/rules.d/
@@ -84,6 +87,8 @@ install -m 644 rules/51-system-plugin-spreadtrum.rules %{buildroot}%{_prefix}/li
# fstab
mkdir -p %{buildroot}%{_sysconfdir}
install -m 644 etc/fstab %{buildroot}%{_sysconfdir}
+# ugly temporary patch for initrd wearable
+install -m 644 etc/fstab_initrd %{buildroot}%{_sysconfdir}
%post
systemctl daemon-reload
@@ -116,6 +121,13 @@ systemctl daemon-reload
%files circle
%manifest %{name}.manifest
/initrd
+%{_sysconfdir}/fstab_initrd
+%{_unitdir}/basic.target.wants/resize2fs@dev-disk-by\x2dpartlabel-user.service
+
+# ugly temporary patch for initrd wearable
+%post circle
+rm %{_sysconfdir}/fstab
+mv %{_sysconfdir}/fstab_initrd %{_sysconfdir}/fstab
%files spreadtrum
%manifest %{name}.manifest