diff --git a/mk_mmc.sh b/mk_mmc.sh index c4a07d6..ef726d6 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -807,13 +807,14 @@ neuter_flash_kernel () { apt-install linux-base initramfs-tools || true apt-install flash-kernel || true - rm /target/usr/share/flash-kernel/db/all.db + rm /target/usr/share/flash-kernel/db/all.db || true + mkdir -p /target/usr/share/flash-kernel/db/ || true cp /etc/all.db /target/usr/share/flash-kernel/db/rcn-ee.db touch /target/usr/share/flash-kernel/rcn-ee.conf - rm /target/etc/initramfs/post-update.d/flash-kernel - rm /target/etc/kernel/postinst.d/zz-flash-kernel - rm /target/etc/kernel/postrm.d/zz-flash-kernel + rm /target/etc/initramfs/post-update.d/flash-kernel || true + rm /target/etc/kernel/postinst.d/zz-flash-kernel || true + rm /target/etc/kernel/postrm.d/zz-flash-kernel || true mkdir -p /target/etc/dpkg/dpkg.cfg.d/ || true echo "# neuter flash-kernel" > /target/etc/dpkg/dpkg.cfg.d/01_noflash_kernel