https://github.com/klange/toaru-netboot
Tools to make netboot images for ToaruOS
https://github.com/klange/toaru-netboot
netboot operating-system toaruos
Last synced: about 1 year ago
JSON representation
Tools to make netboot images for ToaruOS
- Host: GitHub
- URL: https://github.com/klange/toaru-netboot
- Owner: klange
- Created: 2016-12-24T12:34:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-18T13:17:18.000Z (over 8 years ago)
- Last Synced: 2025-01-06T22:31:41.366Z (about 1 year ago)
- Topics: netboot, operating-system, toaruos
- Language: C
- Size: 30.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Netboot ToaruOS
Using the `netboot-init` in this repository, you can build ToaruOS images that download, decompress, and mount root filesystem images live.
## How it works
`netboot-init` is a mashup of `init`, `fetch`, `ungz`, and `mount` that can replace a normal `init` binary in ToaruOS. Combined with a kernel, modules, and bootloader, you can build a bootable image under 2MB that downloads from a remote server before continuing the boot process. A gzipped image is downloaded and decompressed in memory, that image is then mounted, and its own `/bin/init` is run.
To use your own server as a netboot source, you need to change the URL from which the netboot image is downloaded and generate a ramdisk (it's the same ramdisk image used for CDs, so you can use `make _cdrom/ramdisk.img.gz` from a CD build environment, but be sure to clean up afterwards).
## tl;dr
qemu-system-i386 -vga std -m 512 -cdrom http://toaruos.org/netboot.iso -M accel=kvm:tcg \
-soundhw ac97 -net user -net nic,model=rtl8139 -serial stdio
