From b3e626a71b13328ea886a3a1c22220d2c008caf0 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Fri, 29 Mar 2013 10:29:02 -0500 Subject: [PATCH] BusyBox: tar: interesting command line options are needed Signed-off-by: Robert Nelson --- mk_mmc.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 420b63e..96d6edd 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -889,18 +889,18 @@ function flash_kernel_base_installer { #All this crap, is just to make "flash-kernel-installer" happy... cat > ${TEMPDIR}/initrd-tree/usr/lib/post-base-installer.d/00flash-kernel <<-__EOF__ #!/bin/sh -e + #BusyBox: http://linux.die.net/man/1/busybox cp /etc/flash-kernel.conf /target/etc/flash-kernel.conf zcat /proc/config.gz > /target/boot/config-\$(uname -r) - #FIXME: replaced by un tarring... - cp -r /lib/modules/\$(uname -r) /target/lib/modules/ - mkdir -p /target/boot/uboot || true + mkdir -p /target/lib/modules/\$(uname -r) || true + mount /dev/mmcblk0p1 /target/boot/uboot - #mkdir -p /target/lib/modules/\$(uname -r) || true - #tar -xf /target/boot/uboot/\$(uname -r)-modules.tar.gz -C /target/lib/modules/\$(uname -r) + #z = gzip (busybox tar) + tar -xzv -f /target/boot/uboot/\$(uname -r)-modules.tar.gz -C /target/lib/modules/\$(uname -r) mount -o bind /sys /target/sys cat /proc/mounts > /target/mounts