From da6df4bb33699e9596cc9ad9d1b587c2557cc206 Mon Sep 17 00:00:00 2001 From: Sergey Lapin Date: Thu, 22 Apr 2010 14:31:48 +0400 Subject: busybox: prevent postinst script from failing recent addition in rootfs_ipk.bbclass which runs postinst scripts with -e option, while very useful, prevents busybox from configuring at image build time. It will be configured at first image boot if your file system is writable, but in case of e.g. squashfs, that will be fatal error. This commit prevents postinst to fail, so busybox will create all needed links at image build time. --- recipes/busybox/busybox.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'recipes/busybox/busybox.inc') diff --git a/recipes/busybox/busybox.inc b/recipes/busybox/busybox.inc index 1ee263ad90..17d8d14a84 100644 --- a/recipes/busybox/busybox.inc +++ b/recipes/busybox/busybox.inc @@ -11,7 +11,7 @@ LICENSE = "GPLv2" SECTION = "base" PRIORITY = "required" -INC_PR = "r26" +INC_PR = "r27" SRC_URI = "\ file://busybox-cron \ @@ -142,7 +142,9 @@ pkg_postinst_${PN} () { if test "x$D" = "x"; then while read link; do if test ! -h "$link"; then case "$link" in /*/*/*) to="../../bin/busybox";; /bin/*) to="busybox";; /*/*) to="../bin/busybox";; /*) to="/bin/busybox";; esac; busybox ln -s $to $link; fi; done