Documents what each function needs for full functionality -- other repo functions it calls, and external CLI tools it uses or falls back gracefully without (e.g. rm/trash, ls/eza+lsd) -- matching the existing CLASSIFICATION convention's placement and the ~20 functions that already carried this label. Also broadens verify-manual.py's dependency-resolution check to recognize this repo's other existence-check idioms (command -q, command -v, which -- not just type -q) and dng2avif's dynamic type -q $cmd loop, since several genuine dependencies (eza, lsd, fastfetch, fd, ps, ...) are only ever guarded that way. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HdzcdfzUSzskSsCS1U4j5X
45 lines
1.3 KiB
Fish
45 lines
1.3 KiB
Fish
# Copyright (C) 2026 Rootiest
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
# CATEGORY
|
|
# 07-system-and-monitoring
|
|
#
|
|
# DEPENDENCIES
|
|
# sbctl
|
|
#
|
|
# 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
|