diff options
-rw-r--r-- | openembedded/classes/rootfs_ipk.bbclass | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/openembedded/classes/rootfs_ipk.bbclass b/openembedded/classes/rootfs_ipk.bbclass index 062c957359..2880411c31 100644 --- a/openembedded/classes/rootfs_ipk.bbclass +++ b/openembedded/classes/rootfs_ipk.bbclass | |||
@@ -130,7 +130,16 @@ create_etc_timestamp() { | |||
130 | date +%2m%2d%2H%2M%Y >${IMAGE_ROOTFS}/etc/timestamp | 130 | date +%2m%2d%2H%2M%Y >${IMAGE_ROOTFS}/etc/timestamp |
131 | } | 131 | } |
132 | 132 | ||
133 | # export the zap_root_password and create_etc_timestamp | 133 | # Turn any symbolic /sbin/init link into a file |
134 | EXPORT_FUNCTIONS zap_root_password create_etc_timestamp | 134 | remove_init_link () { |
135 | if [ -h ${IMAGE_ROOTFS}/sbin/init ]; then | ||
136 | LINKFILE=${IMAGE_ROOTFS}`readlink ${IMAGE_ROOTFS}/sbin/init` | ||
137 | rm ${IMAGE_ROOTFS}/sbin/init | ||
138 | cp $LINKFILE ${IMAGE_ROOTFS}/sbin/init | ||
139 | fi | ||
140 | } | ||
141 | |||
142 | # export the zap_root_password, create_etc_timestamp and remote_init_link | ||
143 | EXPORT_FUNCTIONS zap_root_password create_etc_timestamp remove_init_link | ||
135 | 144 | ||
136 | addtask rootfs before do_build after do_install | 145 | addtask rootfs before do_build after do_install |