Files
fish-config/functions/limine-edit.fish
T
rootiest dccf897c9f docs(functions): add missing EXIT STATUS header docs
Fills the gaps recorded in JOB-BRIEF-FINDINGS.md for the functions
converted to header-driven --help: 16 argument-less functions gain an
EXIT STATUS section (check_fish_deps, claude-docs, claude-pr, cleanup,
fast, fzf-update, gip, gip4, hist, limine-edit, lock, ports,
screensleep, steam-dl, swapstat, tmux-clean), and 8 functions that
already document ARGUMENTS gain EXIT STATUS too (lD, lsr, lss, lstree,
lt, ltr, lx, qr).

Not touched: gip6, ld, parur, sudo-toggle, upgrade, the JOB-BRIEF's
'missing ARGUMENTS' group. Re-checked their bodies against that claim
-- none of the five take a positional argument ($argv only appears
forwarded to the --help check), so an ARGUMENTS section would document
something that doesn't exist. All five already have EXIT STATUS.
2026-09-08 01:12:04 -04:00

42 lines
1.3 KiB
Fish

# Copyright (C) 2026 Rootiest
# SPDX-License-Identifier: AGPL-3.0-or-later
# CATEGORY
# 07-system-and-monitoring
#
# SYNOPSIS
# limine-edit
#
# DESCRIPTION
# Opens /boot/limine.conf in sudoedit, then re-enrolls the config hash,
# runs CachyOS boot hooks (limine-mkinitcpio), and re-signs all Secure Boot
# files tracked by sbctl. Combines the edit and sign steps into a single
# command.
#
# EXIT STATUS
# 0 Always (individual step failures are not propagated)
#
# EXAMPLE
# limine-edit
function limine-edit --description 'Safely edit and re-verify Limine configuration'
__fish_help_header (status current-function) $argv; and return 0
# 1. Open the config with sudoedit
sudoedit /boot/limine.conf
# 2. Re-enroll the config hash (This prevents the Checksum Panic)
echo "Enrolling Limine config..."
sudo limine-enroll-config
# 3. Run the CachyOS boot hooks (Updates snapshots/kernel links)
echo "Running CachyOS boot hooks..."
sudo limine-mkinitcpio
# 4. Sign any unsigned files tracked by sbctl
# 'sbctl sign-all' will re-apply signatures to everything in the database
echo "Verifying Secure Boot signatures..."
sudo sbctl sign-all
echo "✅ Limine config updated and verified. Ready for reboot."
end