Minimal bootable disk image builder
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ocaml-linkedin: apply dune fmt

Pure formatting changes from `dune fmt`: doc comment placement moves
from above the binding to below it for `type`s, multi-line `match`
expressions collapse onto one line where they fit, and infix operator
applications pick up spaces (`Soup.($?)` -> `Soup.( $? )`). No
semantic changes.

+37 -18
+30 -18
README.md
··· 19 19 20 20 ## Installation 21 21 22 + Install with opam: 23 + 24 + ```sh 25 + $ opam install uniboot 22 26 ``` 23 - opam install uniboot 27 + 28 + If opam cannot find the package, it may not yet be released in the public 29 + `opam-repository`. Add the overlay repository, then install it: 30 + 31 + ```sh 32 + $ opam repo add samoht https://tangled.org/gazagnaire.org/opam-overlay.git 33 + $ opam update 34 + $ opam install uniboot 24 35 ``` 25 36 26 37 ## Usage 27 38 28 - ```bash 29 - # Build a bootable image with kernel and rootfs 30 - uniboot build -o disk.img \ 31 - --kernel vmlinuz \ 32 - --rootfs /path/to/rootfs/ 39 + <!-- $MDX non-deterministic=command --> 40 + ```sh 41 + $ # Build a bootable image with kernel and rootfs 42 + $ uniboot build -o disk.img \ 43 + > --kernel vmlinuz \ 44 + > --rootfs /path/to/rootfs/ 33 45 34 - # Customize partition sizes 35 - uniboot build -o disk.img \ 36 - --kernel vmlinuz \ 37 - --initramfs /path/to/init \ 38 - --rootfs /path/to/rootfs/ \ 39 - --esp-size 100 \ 40 - --rootfs-size 512 46 + $ # Customize partition sizes 47 + $ uniboot build -o disk.img \ 48 + > --kernel vmlinuz \ 49 + > --initramfs /path/to/init \ 50 + > --rootfs /path/to/rootfs/ \ 51 + > --esp-size 100 \ 52 + > --rootfs-size 512 41 53 42 - # Use 4K sector size for modern drives 43 - uniboot build -o disk.img \ 44 - --kernel vmlinuz \ 45 - --rootfs /path/to/rootfs/ \ 46 - --sector-size 4096 54 + $ # Use 4K sector size for modern drives 55 + $ uniboot build -o disk.img \ 56 + > --kernel vmlinuz \ 57 + > --rootfs /path/to/rootfs/ \ 58 + > --sector-size 4096 47 59 ``` 48 60 49 61 ## Options
+4
dune
··· 1 1 (env 2 2 (dev 3 3 (flags :standard %{dune-warnings}))) 4 + 5 + (mdx 6 + (files README.md) 7 + (libraries uniboot))
+2
dune-project
··· 1 1 (lang dune 3.21) 2 + (using mdx 0.4) 2 3 3 4 (name uniboot) 4 5 ··· 37 38 (logs (>= 0.7)) 38 39 (vlog (>= 0.1)) 39 40 (uuidm (>= 0.9.9)) 41 + (mdx :with-test) 40 42 (alcotest :with-test)))
+1
uniboot.opam
··· 27 27 "logs" {>= "0.7"} 28 28 "vlog" {>= "0.1"} 29 29 "uuidm" {>= "0.9.9"} 30 + "mdx" {with-test} 30 31 "alcotest" {with-test} 31 32 "odoc" {with-doc} 32 33 ]