tomaka / redshirt

🧑‍🔬 Operating system
GNU General Public License v3.0
1.43k stars 37 forks source link

Build a USB stick image on CI #168

Open tomaka opened 4 years ago

tomaka commented 4 years ago

It would be great if CI could build an image of a USB stick, so that one could directly write it and boot it on an actual machine.

Difficulty: I don't know any method that doesn't require using losetup, and losetup requires sudo access and doesn't work within docker.

tomaka commented 4 years ago

The idea is basically to do the same as that, but with a USB stick instead of a CD-ROM: https://github.com/tomaka/redshirt/blob/4818d10b58cb17effb6e114de560b696ab1425b5/.github/workflows/ci.yml#L173-L184

tomaka commented 4 years ago

Oh, grub-mkrescue is apparently able to create a USB stick image. The redshirt.iso file is apparently actually bootable.

tomaka commented 4 years ago

The redshirt.iso file is apparently actually bootable.

Doesn't work on a real machine. Cause unclear. grub-mkrescue seems to only be capable of doing ISO 9660, which obviously isn't great.

tomaka commented 4 years ago

It turns out that this is bootable on a real machine. The question remaining to tackle is also: after the ISO is built on CI, how do we show it on the front page of the project?

tomaka commented 4 years ago

The question remaining to tackle is also: after the ISO is built on CI, how do we show it on the front page of the project?

This should be done as part of a release. See the example here.