kexecme

Easily kexec (on Fedora)

git clone https://code.pdelong.com/kexecme.git

commits

2026-05-04 Move FIXME into code Peter DeLong
2022-08-21 Add tests Peter DeLong
2022-08-21 Use Fprint instead of Fprintf where reasonable Peter DeLong
2022-08-21 Reflow long lines Peter DeLong
2022-08-21 Return result of KexecFileLoad directly Peter DeLong

Clone the repository to access all 9 commits.

# kexecme

A quick way to call `kexec`.

For now, it uses the parameters specified by Grub config, which means it's most
handy when you want to boot into a different kernel as if through the normal
boot process.  More configuration may be added in the future.

## Running

To run, simply call `kexec` with superuser permissions.  You will be prompted
to select a kernel version to boot.  That's it!

```
$ sudo ./kexecme
0       5.18.16-200.fc36.x86_64
1       5.18.15-200.fc36.x86_64
2       5.18.13-200.fc36.x86_64
3       0-rescue-9524f74ece9c47a288d25f5a117f65f9
Select a kernel (0-3)[0]<CR>
Booting...
```

## Dependencies

- Grub must be the bootloader with entries in `/boot/loader/entries`
- systemd