4c51ef7a33
Records each documented function's manual category in its own header, so Section 5 can later be generated from source instead of hand-maintained alongside it. Values reproduce the current grouping in docs/manual/05-functions/ exactly; no documentation changes meaning here. Four functions are skipped because they have no header at all yet (branch, fc, gitup, sudo-toggle); they get one in the merge that follows.
36 lines
1.0 KiB
Fish
36 lines
1.0 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.
|
|
#
|
|
# EXAMPLE
|
|
# limine-edit
|
|
function limine-edit --description 'Safely edit and re-verify Limine configuration'
|
|
# 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
|