summaryrefslogtreecommitdiff
path: root/openembedded/classes/rootfs_ipk.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2005-09-27 21:52:21 +0000
committerRichard Purdie <richard@openedhand.com>2005-09-27 21:52:21 +0000
commit66e9ae79755cff1df9aca0f88982a765d749ac87 (patch)
treef82de6c7850e163942faff011e111694c7ee31bb /openembedded/classes/rootfs_ipk.bbclass
parent9c41ac045138e2e6211617f8996fe4451c7c305a (diff)
downloadopenembedded-core-66e9ae79755cff1df9aca0f88982a765d749ac87.tar.gz
openembedded-core-66e9ae79755cff1df9aca0f88982a765d749ac87.tar.bz2
openembedded-core-66e9ae79755cff1df9aca0f88982a765d749ac87.tar.xz
openembedded-core-66e9ae79755cff1df9aca0f88982a765d749ac87.zip
Add post processing command for nokia770 to correct init problem
git-svn-id: https://svn.o-hand.com/repos/poky@46 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/classes/rootfs_ipk.bbclass')
-rw-r--r--openembedded/classes/rootfs_ipk.bbclass13
1 files changed, 11 insertions, 2 deletions
diff --git a/openembedded/classes/rootfs_ipk.bbclass b/openembedded/classes/rootfs_ipk.bbclass
index 062c95735..2880411c3 100644
--- a/openembedded/classes/rootfs_ipk.bbclass
+++ b/openembedded/classes/rootfs_ipk.bbclass
@@ -130,7 +130,16 @@ create_etc_timestamp() {
date +%2m%2d%2H%2M%Y >${IMAGE_ROOTFS}/etc/timestamp
}
-# export the zap_root_password and create_etc_timestamp
-EXPORT_FUNCTIONS zap_root_password create_etc_timestamp
+# Turn any symbolic /sbin/init link into a file
+remove_init_link () {
+ if [ -h ${IMAGE_ROOTFS}/sbin/init ]; then
+ LINKFILE=${IMAGE_ROOTFS}`readlink ${IMAGE_ROOTFS}/sbin/init`
+ rm ${IMAGE_ROOTFS}/sbin/init
+ cp $LINKFILE ${IMAGE_ROOTFS}/sbin/init
+ fi
+}
+
+# export the zap_root_password, create_etc_timestamp and remote_init_link
+EXPORT_FUNCTIONS zap_root_password create_etc_timestamp remove_init_link
addtask rootfs before do_build after do_install