From 0e37a5fba1c30ed779d4c6723841844c3f87c34d Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 9 Jan 2011 19:26:00 +0100 Subject: [PATCH] Allow configuring the list of busybox applets (bug #326593) --- gen_initramfs.sh | 2 +- genkernel.conf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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}" -- 2.26.2