lumine
UEFI x86_64 bootloader for linux kernel images
src/Config.zig
504 bytes raw
1const std = @import("std");
2const Io = std.Io;
3
4pub const Path = union(enum) {
5 /// file in boot partition
6 boot: []const u8,
7
8 pub fn format(self: Path, w: *Io.Writer) !void {
9 switch (self) {
10 // limine mention :(
11 .boot => |path| try w.print("boot():{s}", .{path}),
12 }
13 }
14};
15
16pub const BootOption = union(enum) {
17 chainload: Path,
18 linux: struct {
19 kernel_path: Path,
20 kernel_cmdline: []const u8 = &.{},
21 },
22};
23
24boot: BootOption,