From: Sebastian Pipping Date: Sun, 9 Jan 2011 18:26:00 +0000 (+0100) Subject: Allow configuring the list of busybox applets (bug #326593) X-Git-Tag: v3.4.11~42 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0e37a5fba1c30ed779d4c6723841844c3f87c34d;p=genkernel.git Allow configuring the list of busybox applets (bug #326593) --- diff --git a/gen_initramfs.sh b/gen_initramfs.sh index d735eef..77bb83e 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -55,7 +55,7 @@ append_busybox() { chmod +x "${TEMP}/initramfs-busybox-temp/usr/share/udhcpc/default.script" # Set up a few default symlinks - for i in '[' ash sh mount uname echo cut cat; do + for i in ${BUSYBOX_APPLETS:-[ ash sh mount uname echo cut cat}; do rm -f ${TEMP}/initramfs-busybox-temp/bin/$i > /dev/null ln -s busybox ${TEMP}/initramfs-busybox-temp/bin/$i || gen_die "Busybox error: could not link ${i}!" diff --git a/genkernel.conf b/genkernel.conf index 6381550..66e22b4 100644 --- a/genkernel.conf +++ b/genkernel.conf @@ -154,6 +154,7 @@ BUSYBOX_VER="VERSION_BUSYBOX" BUSYBOX_SRCTAR="${DISTDIR}/busybox-${BUSYBOX_VER}.tar.bz2" BUSYBOX_DIR="busybox-${BUSYBOX_VER}" BUSYBOX_BINCACHE="%%CACHE%%/busybox-${BUSYBOX_VER}-%%ARCH%%.tar.bz2" +# BUSYBOX_APPLETS="[ ash sh mount uname echo cut cat" DEVICE_MAPPER_VER="VERSION_DMAP" DEVICE_MAPPER_DIR="device-mapper.${DEVICE_MAPPER_VER}"