Skip to content

Commit

Permalink
add README with initial instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
orangecms committed Dec 12, 2023
1 parent 35bb904 commit 6f6e3c6
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# u-root builder

This repository holds no code and just builds [u-root](https://u-root.org)
images via GitHub Actions.

## Try it out

Download a prebuilt u-root image from
[releases](https://github.com/linuxboot/u-root-builder/releases):

```sh
curl -o u-root.cpio.xz https://github.com/linuxboot/u-root-builder/releases/download/v0.0.1/u-root_amd64_all.cpio.xz
```

Download a
[kernel from Arch Linux](https://archlinux.org/packages/core/x86_64/linux/)
and extract it:

```sh
curl -L -o linux.tar.zst https://archlinux.org/packages/core/x86_64/linux/download/
tar -xf linux.tar.zst
```

Run it:

```sh
qemu-system-x86_64 -enable-kvm -machine q35 -nographic -append "console=ttyS0" \
-kernel usr/lib/modules/*/vmlinuz -initrd u-root.cpio.xz
```

Run a command:

```sh
uname -a
```

0 comments on commit 6f6e3c6

Please sign in to comment.