summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSuchang Woo <suchang.woo@samsung.com>2015-05-11 19:36:22 +0900
committerSuchang Woo <suchang.woo@samsung.com>2015-05-11 20:00:16 +0900
commit30e3bbcf922137e2f8f40be2a34a25bc49b8e410 (patch)
treec098b9226a6cc50a91f3195343975a79d9496c86 /scripts
parent820aad3428319be0febea80767f7f0dbc6947c2d (diff)
downloadmeta-mobile-30e3bbcf922137e2f8f40be2a34a25bc49b8e410.tar.gz
meta-mobile-30e3bbcf922137e2f8f40be2a34a25bc49b8e410.tar.bz2
meta-mobile-30e3bbcf922137e2f8f40be2a34a25bc49b8e410.zip
Add scritps/mobile-mbr-3parts.post
/etc/fstab should be overwritten by mobile-mbr-3parts.post script for the following reasons: - To mount the other partitions except root in a mobile-mbr-3parts target - To execute fsck automatically before mounting Signed-off-by: Suchang Woo <suchang.woo@samsung.com> Change-Id: I95571c1b284683e80fd4922e286fe0924b2b8607
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mobile-mbr-3parts.post22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/mobile-mbr-3parts.post b/scripts/mobile-mbr-3parts.post
new file mode 100644
index 0000000..db2b792
--- /dev/null
+++ b/scripts/mobile-mbr-3parts.post
@@ -0,0 +1,22 @@
+#!/bin/sh
+echo "############### mobile-mbr-3parts.post ################"
+
+# overwrite /etc/fstab to execute fsck.
+#
+# The default value of the sixth field(fs_passno) in /etc/fstab
+# created by MIC tool is 0. If the value is 1 or 2, fsck will be executed
+# automatically before mounting. (refer to systemd-fstab-generator)
+cat > /etc/fstab << EOF
+# This file is generated by post script in .ks file.
+#
+# <file system> <mount point> <type> <options> <dump> <pass>
+/dev/root / ext4 defaults,noatime 0 1
+devpts /dev/pts devpts gid=5,mode=620 0 0
+tmpfs /dev/shm tmpfs defaults 0 0
+proc /proc proc defaults 0 0
+sysfs /sys sysfs defaults 0 0
+
+LABEL=system-data /opt ext4 defaults,noatime 0 2
+LABEL=user /opt/usr ext4 defaults,noatime 0 2
+EOF
+