meta-tizen: add tizen fstab
authorRonan Le Martret <ronan@fridu.net>
Wed, 28 May 2014 14:00:41 +0000 (16:00 +0200)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 17:20:12 +0000 (09:20 -0800)
Change-Id: I21f19fb8495759ef5b74461889e8ff0d0b7b63d7
(From meta-tizen rev: 36ffdc8f4ae47904b01d9c76de145be30bcf9b40)

Signed-off-by: Ronan Le Martret <ronan@fridu.net>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-tizen/recipes-core/base-files/base-files/tizen_fstab [new file with mode: 0644]
meta-tizen/recipes-core/base-files/base-files_3.0.14.bbappend [new file with mode: 0644]

diff --git a/meta-tizen/recipes-core/base-files/base-files/tizen_fstab b/meta-tizen/recipes-core/base-files/base-files/tizen_fstab
new file mode 100644 (file)
index 0000000..638bb1b
--- /dev/null
@@ -0,0 +1,11 @@
+# stock fstab - you probably want to override this with a machine specific one
+
+/dev/root            /                    auto       defaults              1  1
+proc                 /proc                proc       defaults              0  0
+devpts               /dev/pts             devpts     mode=0620,gid=5       0  0
+tmpfs                /dev/shm             tmpfs      defaults              0  0
+usbdevfs             /proc/bus/usb        usbdevfs   noauto                0  0
+
+# uncomment this if your device has a SD/MMC/Transflash slot
+#/dev/mmcblk0p1       /media/card          auto       defaults,sync,noauto  0  0
+
diff --git a/meta-tizen/recipes-core/base-files/base-files_3.0.14.bbappend b/meta-tizen/recipes-core/base-files/base-files_3.0.14.bbappend
new file mode 100644 (file)
index 0000000..56b082d
--- /dev/null
@@ -0,0 +1,56 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/base-files:"
+
+SRC_URI += " file://tizen_fstab \
+           "
+
+volatiles = "tmp"
+dirs1777 = "/tmp"
+
+dirs755 = "/bin /boot /dev ${sysconfdir} ${sysconfdir}/default \
+           ${sysconfdir}/skel /lib /mnt /proc ${ROOT_HOME} /run /sbin \
+           ${prefix} ${bindir} ${docdir} /usr/games ${includedir} \
+           ${libdir} ${sbindir} ${datadir} \
+           ${datadir}/common-licenses ${datadir}/dict ${infodir} \
+           ${mandir} ${datadir}/misc ${localstatedir} \
+           ${localstatedir}/backups ${localstatedir}/lib \
+           /sys ${localstatedir}/lib/misc ${localstatedir}/spool \
+           /media"
+
+do_install () {
+       for d in ${dirs755}; do
+               install -m 0755 -d ${D}$d
+       done
+       for d in ${dirs1777}; do
+               install -m 1777 -d ${D}$d
+       done
+       for d in ${dirs2775}; do
+               install -m 2755 -d ${D}$d
+       done
+       for d in ${volatiles}; do
+               ln -sf volatile/$d ${D}${localstatedir}/$d
+       done
+       ln -snf ../run ${D}${localstatedir}/run
+       ln -snf ../run/lock ${D}${localstatedir}/lock
+
+       ${BASEFILESISSUEINSTALL}
+
+       rotation=`cat ${WORKDIR}/rotation`
+       if [ "$rotation" != "0" ]; then
+               install -m 0644 ${WORKDIR}/rotation ${D}${sysconfdir}/rotation
+       fi
+
+       install -m 0644 ${WORKDIR}/tizen_fstab ${D}${sysconfdir}/fstab
+       install -m 0644 ${WORKDIR}/filesystems ${D}${sysconfdir}/filesystems
+       install -m 0644 ${WORKDIR}/usbd ${D}${sysconfdir}/default/usbd
+       install -m 0644 ${WORKDIR}/profile ${D}${sysconfdir}/profile
+       sed -i 's#ROOTHOME#${ROOT_HOME}#' ${D}${sysconfdir}/profile
+       install -m 0644 ${WORKDIR}/shells ${D}${sysconfdir}/shells
+       install -m 0755 ${WORKDIR}/share/dot.profile ${D}${sysconfdir}/skel/.profile
+       install -m 0755 ${WORKDIR}/share/dot.bashrc ${D}${sysconfdir}/skel/.bashrc
+       install -m 0644 ${WORKDIR}/inputrc ${D}${sysconfdir}/inputrc
+       install -m 0644 ${WORKDIR}/nsswitch.conf ${D}${sysconfdir}/nsswitch.conf
+       install -m 0644 ${WORKDIR}/host.conf ${D}${sysconfdir}/host.conf
+       install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd
+
+       ln -sf /proc/mounts ${D}${sysconfdir}/mtab
+}
\ No newline at end of file