mk_mmc.sh: factor out, as all call neuter_flash_kernel

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/37/head
Robert Nelson 11 years ago
parent fa233b33d1
commit 968f972234

@ -950,17 +950,12 @@ initrd_preseed_settings () {
cd ${TEMPDIR}/initrd-tree/ cd ${TEMPDIR}/initrd-tree/
cp -v "${DIR}/lib/${deb_distribution}-finish.sh" ${TEMPDIR}/initrd-tree/usr/bin/finish-install.sh cp -v "${DIR}/lib/${deb_distribution}-finish.sh" ${TEMPDIR}/initrd-tree/usr/bin/finish-install.sh
case "${DIST}" in
trusty|utopic|wheezy|jessie)
neuter_flash_kernel
;;
esac
if [ "x${conf_smart_uboot}" = "xenable" ] ; then if [ "x${conf_smart_uboot}" = "xenable" ] ; then
sed -i -e 's:smart_DISABLED:enable:g' ${TEMPDIR}/initrd-tree/usr/bin/finish-install.sh sed -i -e 's:smart_DISABLED:enable:g' ${TEMPDIR}/initrd-tree/usr/bin/finish-install.sh
fi fi
neuter_flash_kernel
finish_installing_device finish_installing_device
setup_parition_recipe setup_parition_recipe
cp -v "${DIR}/lib/shared/zz-uenv_txt" ${TEMPDIR}/initrd-tree/zz-uenv_txt cp -v "${DIR}/lib/shared/zz-uenv_txt" ${TEMPDIR}/initrd-tree/zz-uenv_txt

Loading…
Cancel
Save