2023-02-20 00:03:46 +00:00
|
|
|
#!/bin/bash
|
2023-02-21 13:36:20 +00:00
|
|
|
|
|
|
|
echo "running in cwd : "
|
|
|
|
echo $(pwd)
|
2023-02-20 00:03:46 +00:00
|
|
|
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
|