Reboot Arch BTW

GitHub Workflow Status Crates.io Version Crates.io Downloads AUR version

This is a small utility which shows the installed and running Linux kernel on ArchLinux. It is useful if one didn't notice that the kernel got updated and suddenly your USB drive won't mount because the needed kernel module can't get loaded.

It can also detect if critical packages like systemd got updated which may also make a reboot necessary.

To get the version of the installed kernel it uses libalpm (shipped with pacman) to query the local pacman database. To get the version of the running kernel it uses uname -r.

Install

You may just install it from the AUR: * https://aur.archlinux.org/packages/reboot-arch-btw for the latest release * https://aur.archlinux.org/packages/reboot-arch-btw-git for the latest master

Alternatively one can install it with cargo: cargo install reboot-arch-btw

Build

This project requires Rust 1.65.0 or newer. Also you need to have dbus installed.

Shell sudo pacman -S dbus cargo build

Usage

Shell $ reboot-arch-btw Kernel installed: 5.19.13.arch1.1 (since 4 minutes ago) running: 5.19.12.arch1.1 systemd updated 4 minutes ago Reboot arch btw

It will also show a desktop notification indicating that you probably want to reboot your system.

One can use --reboot-packages or --reboot-packages to set the list of packages which should also trigger a notification if they are updated.

``` $ reboot-arch-btw --help Check the currently installed kernel against the currently running one.

Usage: reboot-arch-btw [OPTIONS]

Options: --disable-notification Disable desktop notification --reboot-packages Comma separated list of packages were we should reboot after an upgrade [default: systemd,linux-firmware,amd-ucode,intel-ucode] --session-restart-packages Comma separated list of packages were we should restart our session after an upgrade [default: xorg-server,xorg-xwayland] -h, --help Print help information -V, --version Print version information ```