From: Sooyoung Ha Date: Tue, 21 Mar 2017 06:31:52 +0000 (+0900) Subject: fstab: mount /mnt directory to /opt/mnt X-Git-Tag: submit/tizen/20170321.073808~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1db28419d66f837118187d27e8badba972e275f;p=platform%2Fadaptation%2Femulator%2Fsystem-plugin-emulator.git fstab: mount /mnt directory to /opt/mnt 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 --- diff --git a/filesystem/etc/fstab b/filesystem/etc/fstab index a9b4387..b0a144b 100644 --- a/filesystem/etc/fstab +++ b/filesystem/etc/fstab @@ -2,3 +2,5 @@ # After that, fstab remount root filesystem as read-only # emulator-rootfs / ext4 ro,relatime,data=ordered 0 1 +#remount /mnt to /opt/mnt +/opt/mnt /mnt none bind 0 2 diff --git a/packaging/system-plugin-emulator.spec b/packaging/system-plugin-emulator.spec index 1af64a6..954747f 100644 --- a/packaging/system-plugin-emulator.spec +++ b/packaging/system-plugin-emulator.spec @@ -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