Wipe kernel before installing new one
This commit is contained in:
parent
ab4678c365
commit
5d45521630
@ -30,6 +30,7 @@ echo
|
|||||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||||
then
|
then
|
||||||
echo Writing kernel partition
|
echo Writing kernel partition
|
||||||
|
dd if=/dev/zero of=/dev/mmcblk2p1 bs=1 count=65536
|
||||||
dd if="$BOOT_DEVICE"1 of=/dev/mmcblk2p1
|
dd if="$BOOT_DEVICE"1 of=/dev/mmcblk2p1
|
||||||
echo You can now reboot
|
echo You can now reboot
|
||||||
fi
|
fi
|
||||||
|
@ -54,9 +54,7 @@ trap cleanup INT TERM EXIT
|
|||||||
|
|
||||||
losetup -P $outdev $ROOT_DIR/PrawnOS-*-c201-libre-2GB.img-BASE
|
losetup -P $outdev $ROOT_DIR/PrawnOS-*-c201-libre-2GB.img-BASE
|
||||||
#mount the root filesystem
|
#mount the root filesystem
|
||||||
mount -o noatime ${outdev}p3 $outmnt
|
mount -o noatime ${outdev}p2 $outmnt
|
||||||
#mount the initramfs partition
|
|
||||||
mount -o noatime ${outdev}p2 $outmnt/boot
|
|
||||||
|
|
||||||
#make a skeleton filesystem
|
#make a skeleton filesystem
|
||||||
initramfs_src=$outmnt/InstallResources/initramfs_src
|
initramfs_src=$outmnt/InstallResources/initramfs_src
|
||||||
|
Loading…
Reference in New Issue
Block a user