summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Blundell <philb@brightsign.biz>2011-06-06 17:15:14 +0100
committerPhil Blundell <philb@brightsign.biz>2011-06-06 17:15:14 +0100
commit3097f7b539e8afd2d5e042ff0758b1f7b51c49a4 (patch)
tree8af0afbbada7f0fe4426f3079f8baf5c4f2d4df5
parent619095980381dfe5cb35cbd365bd1a1feacc2085 (diff)
downloadmeta-micro-3097f7b539e8afd2d5e042ff0758b1f7b51c49a4.zip
meta-micro-3097f7b539e8afd2d5e042ff0758b1f7b51c49a4.tar.gz
meta-micro-3097f7b539e8afd2d5e042ff0758b1f7b51c49a4.tar.bz2
base-files: add fstab
-rw-r--r--recipes/base-files/base-files/fstab8
-rw-r--r--recipes/base-files/base-files_3.0.14.bb18
2 files changed, 18 insertions, 8 deletions
diff --git a/recipes/base-files/base-files/fstab b/recipes/base-files/base-files/fstab
new file mode 100644
index 0000000..01f3b9f
--- /dev/null
+++ b/recipes/base-files/base-files/fstab
@@ -0,0 +1,8 @@
+rootfs / auto defaults 1 1
+proc /proc proc defaults 0 0
+devtmpfs /dev devtmpfs defaults 0 0
+devpts /dev/pts devpts mode=0620,gid=5 0 0
+usbfs /proc/bus/usb usbfs defaults 0 0
+tmpfs /var/volatile tmpfs defaults 0 0
+tmpfs /dev/shm tmpfs mode=0777 0 0
+tmpfs /media/ram tmpfs defaults 0 0
diff --git a/recipes/base-files/base-files_3.0.14.bb b/recipes/base-files/base-files_3.0.14.bb
index 10538d2..b8de63c 100644
--- a/recipes/base-files/base-files_3.0.14.bb
+++ b/recipes/base-files/base-files_3.0.14.bb
@@ -1,12 +1,13 @@
DESCRIPTION = "Miscellaneous files for the base system."
SECTION = "base"
PRIORITY = "required"
-PR = "r102"
+PR = "r103"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://licenses/GPL-2;md5=94d55d512a9ba36caa9b7df079bae19f"
SRC_URI = " \
+ file://fstab \
file://nsswitch.conf \
file://licenses/BSD \
file://licenses/GPL-2 \
@@ -33,23 +34,24 @@ hostname = "oe-micro"
do_install () {
for d in ${dirs755}; do
- install -m 0755 -d ${D}$d
+ install -m 0755 -d "${D}$d"
done
for d in ${dirs1777}; do
- install -m 1777 -d ${D}$d
+ install -m 1777 -d "${D}$d"
done
for d in ${dirs2775}; do
- install -m 2755 -d ${D}$d
+ install -m 2755 -d "${D}$d"
done
for d in ${volatiles}; do
- if [ -d ${D}${localstatedir}/volatile/$d ]; then
- ln -sf volatile/$d ${D}/${localstatedir}/$d
+ if [ -d "${D}${localstatedir}/volatile/$d" ]; then
+ ln -sf volatile/$d "${D}/${localstatedir}/$d"
fi
done
- echo ${hostname} > ${D}${sysconfdir}/hostname
+ echo ${hostname} > "${D}${sysconfdir}/hostname"
- install -m 0644 ${WORKDIR}/nsswitch.conf ${D}${sysconfdir}/nsswitch.conf
+ install -m 0644 "${WORKDIR}/fstab" "${D}${sysconfdir}/fstab"
+ install -m 0644 "${WORKDIR}/nsswitch.conf" "${D}${sysconfdir}/nsswitch.conf"
}
PACKAGES = "${PN}-dbg ${PN}-doc ${PN}"