Created a few shell scripts to update and create an build of the Kernel/Operating System.

A python script can be run to run the scripts in the correct order and immediatly try the build.
This commit is contained in:
2023-02-20 01:03:46 +01:00
parent dea8ab7d71
commit 81f7351fe6
10 changed files with 44 additions and 21 deletions

11
scripts/update_harddrive.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
echo "Mount harddrive image as block device"
sudo losetup /dev/loop9 disk.img
sudo mount /dev/loop9 /mnt
echo "Copy over kernel binary"
sudo cp build/kernel/myos.bin /mnt/boot/myos.bin
echo "unmount image"
sudo umount /mnt
sudo losetup -d /dev/loop9