Wipe kernel before installing new one
This commit is contained in:
parent
ab4678c365
commit
5d45521630
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user