fstab: mount /mnt directory to /opt/mnt 11/120011/2
authorSooyoung Ha <yoosah.ha@samsung.com>
Tue, 21 Mar 2017 06:31:52 +0000 (15:31 +0900)
committerJinhyung Choi <jinh0.choi@samsung.com>
Tue, 21 Mar 2017 07:08:19 +0000 (00:08 -0700)
I committed what made root filesystem as read only before. After that,
HDS(host directory sharing) has been failed because /mnt directory is
read only, so cannot make new directory. For correcting it I remount
the /mnt directory to /opt/mnt which is not read only.

Change-Id: I00c3b627ffe4670fb5ad876b7c0983d6303a6965
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
filesystem/etc/fstab
packaging/system-plugin-emulator.spec

index a9b43876378475a65fe99eb6caaed4d2507f54c1..b0a144bee5a4bb7273d4056f378e1aee37562160 100644 (file)
@@ -2,3 +2,5 @@
 # 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
index 1af64a678770ab70ee5f974c2f880c0079ccd932..954747fa061b10e571905f9ad32a629d736ee39e 100644 (file)
@@ -38,6 +38,9 @@ cp -arf filesystem/* %{buildroot}
 mkdir -p %{buildroot}/usr/share/license
 cp LICENSE %{buildroot}/usr/share/license/%{name}
 
+# 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
@@ -67,3 +70,4 @@ cp LICENSE %{buildroot}/usr/share/license/%{name}
 %{_prefix}/lib/udev/rules.d/95-tizen-emulator.rules
 /usr/share/license/%{name}
 %{_sysconfdir}/fstab
+/opt/mnt