From: Sascha Wildner Date: Sun, 4 Jul 2010 01:47:05 +0000 (+0200) Subject: mkinitrd(8): Strip binaries when copying so they will fit in the image. X-Git-Url: https://gitweb.dragonflybsd.org/~lentferj/dragonfly.git/commitdiff_plain/3ffd42e1a76f6363acd52da7a352c99f3548a605 mkinitrd(8): Strip binaries when copying so they will fit in the image. While here, comment out a call of the tree utility which we don't have in base. --- diff --git a/sbin/mkinitrd/mkinitrd.sh b/sbin/mkinitrd/mkinitrd.sh index 15906cc3ae..2a461c30d0 100644 --- a/sbin/mkinitrd/mkinitrd.sh +++ b/sbin/mkinitrd/mkinitrd.sh @@ -50,11 +50,11 @@ make_hier() { copy_tools() { for tool in ${BIN_TOOLS}; do - cp /bin/${tool} ${BUILD_DIR}/bin + objcopy -S /bin/${tool} ${BUILD_DIR}/bin/${tool} done for tool in ${SBIN_TOOLS}; do - cp /sbin/${tool} ${BUILD_DIR}/sbin + objcopy -S /sbin/${tool} ${BUILD_DIR}/sbin/${tool} done echo "Copied essential tools" @@ -67,7 +67,7 @@ copy_content() { } print_info() { - tree ${BUILD_DIR} +# tree ${BUILD_DIR} df -h | head -n 1 df -h | grep $VN_DEV }