Skip to content

Commit 1d41661

Browse files
authored
Merge pull request #548 from ic3w1ne/ic3w1ne-patch-1
Fix doc link
2 parents 0b04f53 + 93f18c0 commit 1d41661

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/create-disk-image.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The [`bootloader`](https://docs.rs/bootloader/0.11) crate provides simple functi
55
A good way to implement this is to move your kernel into a `kernel` subdirectory. Then you can create
66
a new `os` crate at the top level that defines a [workspace](https://doc.rust-lang.org/cargo/reference/workspaces.html). The root package has build-dependencies on the `kernel` [artifact](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#artifact-dependencies) and on the bootloader crate. This allows you to create the bootable disk image in a [cargo build script](https://doc.rust-lang.org/cargo/reference/build-scripts.html) and launch the created image in QEMU in the `main` function.
77

8-
Our [basic example](examples/basic/basic-os.md) showcases this setup:
8+
Our [basic example](/examples/basic/basic-os.md) showcases this setup:
99
- [Cargo.toml](/examples/basic/Cargo.toml)
1010
- create a workspace & add kernel as member
1111
- add kernel as build-dependency
@@ -16,7 +16,7 @@ Our [basic example](examples/basic/basic-os.md) showcases this setup:
1616
- change the default toolchain to nightly to use experimental features
1717
- [build.rs](/examples/basic/build.rs)
1818
- create bios and uefi disk image
19-
- [src/main.rs](/examples/basic/src/main.rs])
19+
- [src/main.rs](/examples/basic/src/main.rs)
2020
- launch the image using QEMU
2121

2222
Now you should be able to use `cargo build` to create a bootable disk image and `cargo run bios` and `cargo run uefi` to run it in QEMU. Your kernel is automatically recompiled when it changes. For more advanced usage, you can add command-line arguments to your `main.rs` to e.g. pass additional arguments to QEMU or to copy the disk images to some path to make it easier to find them (e.g. for copying them to an thumb drive).

0 commit comments

Comments
 (0)