mk_mmc.sh: drop ${linux_version}-modules.tar.gz package

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/37/head
Robert Nelson 11 years ago
parent 2de7c19bff
commit 8772c8cacc

@ -163,12 +163,6 @@ fi
mv /boot/uboot/bootdrive /boot/uboot/backup/ || true mv /boot/uboot/bootdrive /boot/uboot/backup/ || true
mv /boot/uboot/mounts /boot/uboot/backup/ || true mv /boot/uboot/mounts /boot/uboot/backup/ || true
#FIXME: Also reinstall these:
rm -f /boot/uboot/*dtbs.tar.gz || true
rm -f /boot/uboot/*modules.tar.gz || true
touch /boot/uboot/run_boot-scripts || true
if [ ! "x${conf_smart_uboot}" = "xenable" ] ; then if [ ! "x${conf_smart_uboot}" = "xenable" ] ; then
mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d /boot/initrd.img-`uname -r` /boot/uboot/uInitrd mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d /boot/initrd.img-`uname -r` /boot/uboot/uInitrd
if [ "${zreladdr}" ] ; then if [ "${zreladdr}" ] ; then

@ -197,12 +197,6 @@ fi
mv /boot/uboot/bootdrive /boot/uboot/backup/ || true mv /boot/uboot/bootdrive /boot/uboot/backup/ || true
mv /boot/uboot/mounts /boot/uboot/backup/ || true mv /boot/uboot/mounts /boot/uboot/backup/ || true
#FIXME: Also reinstall these:
rm -f /boot/uboot/*dtbs.tar.gz || true
rm -f /boot/uboot/*modules.tar.gz || true
touch /boot/uboot/run_boot-scripts || true
if [ ! "x${conf_smart_uboot}" = "xenable" ] ; then if [ ! "x${conf_smart_uboot}" = "xenable" ] ; then
mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d /boot/initrd.img-`uname -r` /boot/uboot/uInitrd mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d /boot/initrd.img-`uname -r` /boot/uboot/uInitrd
if [ "${zreladdr}" ] ; then if [ "${zreladdr}" ] ; then

@ -851,14 +851,6 @@ extract_zimage () {
dpkg -x "${DIR}/dl/${DISTARCH}/${ACTUAL_DEB_FILE}" ${TEMPDIR}/kernel dpkg -x "${DIR}/dl/${DISTARCH}/${ACTUAL_DEB_FILE}" ${TEMPDIR}/kernel
} }
package_modules () {
echo "NetInstall: Packaging Modules for later use"
linux_version=$(ls ${TEMPDIR}/kernel/boot/vmlinuz-* | awk -F'vmlinuz-' '{print $2}')
cd ${TEMPDIR}/kernel/lib/modules/${linux_version}
tar czf ${TEMPDIR}/kernel/${linux_version}-modules.tar.gz *
cd "${DIR}"/
}
generate_soc () { generate_soc () {
echo "#!/bin/sh" > ${wfile} echo "#!/bin/sh" > ${wfile}
echo "format=1.0" >> ${wfile} echo "format=1.0" >> ${wfile}
@ -931,7 +923,6 @@ create_custom_netinstall_image () {
initrd_cleanup initrd_cleanup
initrd_preseed_settings initrd_preseed_settings
extract_zimage extract_zimage
package_modules
initrd_device_settings initrd_device_settings
recompress_initrd recompress_initrd
} }
@ -1203,8 +1194,6 @@ populate_boot () {
fi fi
cp -v ${TEMPDIR}/kernel/${linux_version}-modules.tar.gz ${TEMPDIR}/disk/
wfile="${TEMPDIR}/disk/SOC.sh" wfile="${TEMPDIR}/disk/SOC.sh"
generate_soc generate_soc

Loading…
Cancel
Save