fstab: fix wrong mount option for / partition 60/138660/4
authorINSUN PYO <insun.pyo@samsung.com>
Thu, 13 Jul 2017 06:22:50 +0000 (15:22 +0900)
committerSooyoung Ha <yoosah.ha@samsung.com>
Mon, 17 Jul 2017 13:42:03 +0000 (22:42 +0900)
Change-Id: I1b484153ba8d4b44f4a57acf731b09096cc6ba73
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
filesystem/etc/fstab
filesystem/usr/lib/systemd/system/mnt.mount [new file with mode: 0644]
packaging/system-plugin-emulator.spec

index b0a144b..0259470 100644 (file)
@@ -1,6 +1,4 @@
 # All filesystem have been automatically mounted in ramfs before init.
 # After that, fstab remount root filesystem as read-only
 # <file system> <mount point>   <type>  <options>                 <dump> <pass>
-emulator-rootfs /               ext4    ro,relatime,data=ordered  0      1
-#remount /mnt to /opt/mnt
-/opt/mnt        /mnt            none    bind                      0      2
+LABEL=emulator-rootfs /     ext4    ro,relatime,data=ordered  0      1
diff --git a/filesystem/usr/lib/systemd/system/mnt.mount b/filesystem/usr/lib/systemd/system/mnt.mount
new file mode 100644 (file)
index 0000000..e9c003c
--- /dev/null
@@ -0,0 +1,9 @@
+[Unit]
+Description=/mnt for emulator
+Before=local-fs.target
+
+[Mount]
+What=/opt/mnt
+Where=/mnt
+Type=none
+Options=bind
index f2d7509..870a23f 100644 (file)
@@ -27,16 +27,17 @@ System plugin files for emulator
 find . -name .gitignore -exec rm -f {} \;
 cp -arf filesystem/* %{buildroot}
 
+# to remount /mnt here
+mkdir -p %{buildroot}/opt/mnt
+
 # for systemd unit
 %install_service basic.target.wants emulator_preinit.target
 %install_service emulator_preinit.target.wants emul-setup-audio-volume.service
 %install_service emulator_preinit.target.wants emul-common-preinit.service
 %install_service emulator_preinit.target.wants dev-disk-by\\x2dlabel-emulator\\x2dswap.swap
+%install_service emulator_preinit.target.wants mnt.mount
 %install_service multi-user.target.wants emulator.target
 
-# to remount /mnt here
-mkdir -p %{buildroot}/opt/mnt
-
 %posttrans
 #run emulator_ns.preinit script after all packages have been installed.
 /etc/preconf.d/emulator_ns.preinit
@@ -59,9 +60,11 @@ mkdir -p %{buildroot}/opt/mnt
 %{_unitdir}/emul-setup-audio-volume.service
 %{_unitdir}/emul-common-preinit.service
 %{_unitdir}/dev-disk-by\x2dlabel-emulator\x2dswap.swap
+%{_unitdir}/mnt.mount
 %{_unitdir}/emulator_preinit.target.wants/emul-setup-audio-volume.service
 %{_unitdir}/emulator_preinit.target.wants/emul-common-preinit.service
 %{_unitdir}/emulator_preinit.target.wants/dev-disk-by\x2dlabel-emulator\x2dswap.swap
+%{_unitdir}/emulator_preinit.target.wants/mnt.mount
 %{_prefix}/lib/udev/rules.d/51-tizen-udev-default.rules
 %{_prefix}/lib/udev/rules.d/95-tizen-emulator.rules
 %{_sysconfdir}/fstab