Wipe kernel before installing new one

This commit is contained in:
SolidHal 2019-10-15 06:59:40 -07:00
parent ab4678c365
commit 5d45521630
2 changed files with 2 additions and 3 deletions

View File

@ -30,6 +30,7 @@ echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo Writing kernel partition
dd if=/dev/zero of=/dev/mmcblk2p1 bs=1 count=65536
dd if="$BOOT_DEVICE"1 of=/dev/mmcblk2p1
echo You can now reboot
fi

View File

@ -54,9 +54,7 @@ trap cleanup INT TERM EXIT
losetup -P $outdev $ROOT_DIR/PrawnOS-*-c201-libre-2GB.img-BASE
#mount the root filesystem
mount -o noatime ${outdev}p3 $outmnt
#mount the initramfs partition
mount -o noatime ${outdev}p2 $outmnt/boot
mount -o noatime ${outdev}p2 $outmnt
#make a skeleton filesystem
initramfs_src=$outmnt/InstallResources/initramfs_src