Allow configuring the list of busybox applets (bug #326593)
authorSebastian Pipping <sebastian@pipping.org>
Sun, 9 Jan 2011 18:26:00 +0000 (19:26 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Sun, 9 Jan 2011 18:26:53 +0000 (19:26 +0100)
gen_initramfs.sh
genkernel.conf

index d735eefceb06a0ae61feabf64a24a543356b8063..77bb83e346ded61cc240dff2ebaf2ab99e1cddb6 100755 (executable)
@@ -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}!"
index 6381550145c14e533e20fa205209bc43f62f97be..66e22b4e7e91d2a1f9ba8338ca444551ea13bba3 100644 (file)
@@ -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}"