diff --git a/mk_mmc.sh b/mk_mmc.sh index e58b886..6196b12 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -196,7 +196,7 @@ dl_kernel_image () { FTP_DIR=$(echo ${FTP_DIR} | awk -F'/' '{print $6}') KERNEL=$(echo ${FTP_DIR} | sed 's/v//') - uname_r="linux-image-${KERNEL}" + uname_r="${KERNEL}" wget --no-verbose --directory-prefix=${TEMPDIR}/dl/ ${MIRROR}/${DISTARCH}/${FTP_DIR}/ ACTUAL_DEB_FILE=$(cat ${TEMPDIR}/dl/index.html | grep linux-image) @@ -956,11 +956,11 @@ initrd_preseed_settings () { sed -i -e 's:#d-i debian-installer:d-i debian-installer:g' ${TEMPDIR}/initrd-tree/preseed.cfg sed -i -e 's:#d-i console-keymaps-at:d-i console-keymaps-at:g' ${TEMPDIR}/initrd-tree/preseed.cfg fi - sed -i -e 's:initramfs-tools:initramfs-tools '$uname_r':g' ${TEMPDIR}/initrd-tree/preseed.cfg + sed -i -e 's:initramfs-tools:initramfs-tools linux-image-'$uname_r':g' ${TEMPDIR}/initrd-tree/preseed.cfg cat ${TEMPDIR}/initrd-tree/preseed.cfg | grep linux-image ;; jessie) - sed -i -e 's:initramfs-tools:initramfs-tools '$uname_r':g' ${TEMPDIR}/initrd-tree/preseed.cfg + sed -i -e 's:initramfs-tools:initramfs-tools linux-image-'$uname_r':g' ${TEMPDIR}/initrd-tree/preseed.cfg cat ${TEMPDIR}/initrd-tree/preseed.cfg | grep linux-image ;; esac