← ClaudeAtlas

debian-kernel-reboot-checklisted

This skill should be used when checking whether a Debian-based host (Proxmox host, LXC, VM, bare metal, or VPS) needs a reboot to pick up a kernel update, when "apt update" reports no upgradable packages but a reboot is suspected to be pending anyway, when planning a safe reboot of a host running live services, or when auditing an entire fleet of mixed LXC/VM/bare-metal hosts for pending kernel upgrades. Trigger phrases include "kernel upgrade", "check for pending reboot", "reboot-required", "unattended-upgrades installed a new kernel", "does this host need a reboot", "safe reboot checklist", "fleet kernel sweep", "uname -r doesn't match installed kernel", "proxmox-kernel not applied", "LXC kernel version", "does the container share the host kernel".
jackson2w/claude-code-skills · ★ 1 · AI & Automation · score 64
Install: claude install-skill jackson2w/claude-code-skills
# Debian kernel/reboot check across a mixed fleet `unattended-upgrades` silently installs newer kernel packages in the background but **never reboots the host**. This means the running kernel (`uname -r`) can lag the newest *installed* kernel indefinitely with zero visible symptoms — `apt update`/`apt list --upgradable` will report nothing pending, because the new kernel package is already installed, just not booted into. Don't conflate "nothing to `apt upgrade`" with "no kernel action needed." ## Checking a single host Three checks, cheapest/most authoritative first: ```bash # 1. The single most reliable signal — presence means a reboot is needed, absence means clean cat /var/run/reboot-required 2>/dev/null || echo "no reboot pending" # 2. Compare currently running kernel against what's actually installed uname -r dpkg -l 'linux-image-*' | grep ^ii | tail -5 # look for a newer version than uname -r reports # 3. Confirm apt has nothing further queued unattended (should report nothing found) sudo unattended-upgrade --dry-run -d 2>&1 | tail -5 ``` On a Proxmox host itself, the kernel package family is `proxmox-kernel-*` / the `proxmox-kernel-7.0` (or current major) meta-package, not `linux-image-*`: ```bash uname -r dpkg -l 'proxmox-kernel-*' | grep ^ii ``` If `/var/run/reboot-required` is absent, the host is already running its newest installed kernel — no action needed regardless of what other packages are upgradable. ## Fleet topology: don't check LXCs individual