mirror of
https://git.proxmox.com/git/pve-kernel-meta
synced 2025-05-29 14:15:25 +00:00
pve-efiboot-tool: small output hints and cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
f879b0405d
commit
d0519968fa
@ -216,7 +216,7 @@ add_kernel() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
_add_entry_to_list_file "$MANUAL_KERNEL_LIST" "$ver"
|
_add_entry_to_list_file "$MANUAL_KERNEL_LIST" "$ver"
|
||||||
echo "Added kernel '$ver' to manual kernel list."
|
echo "Added kernel '$ver' to manual kernel list. Use the 'refresh' command to update the ESPs."
|
||||||
}
|
}
|
||||||
|
|
||||||
remove_kernel() {
|
remove_kernel() {
|
||||||
@ -230,7 +230,7 @@ remove_kernel() {
|
|||||||
|
|
||||||
if grep -sqFx "$ver" "$MANUAL_KERNEL_LIST"; then
|
if grep -sqFx "$ver" "$MANUAL_KERNEL_LIST"; then
|
||||||
_remove_entry_from_list_file "$MANUAL_KERNEL_LIST" "$ver"
|
_remove_entry_from_list_file "$MANUAL_KERNEL_LIST" "$ver"
|
||||||
echo "Removed kernel '$ver' from manual kernel list."
|
echo "Removed kernel '$ver' from manual kernel list. Use the 'refresh' command to update the ESPs."
|
||||||
else
|
else
|
||||||
echo "Kernel '$ver' not found in manual kernel list."
|
echo "Kernel '$ver' not found in manual kernel list."
|
||||||
fi
|
fi
|
||||||
@ -287,6 +287,7 @@ help() {
|
|||||||
echo "USAGE: $0 kernels <add|remove> <kernel-version>"
|
echo "USAGE: $0 kernels <add|remove> <kernel-version>"
|
||||||
echo ""
|
echo ""
|
||||||
echo " add/remove pve-kernel with ABI <kernel-version> to list of synced kernels, in addition to automatically selected ones."
|
echo " add/remove pve-kernel with ABI <kernel-version> to list of synced kernels, in addition to automatically selected ones."
|
||||||
|
echo " NOTE: you need to manually run 'refresh' once you're finished with adding/removing kernels from the list"
|
||||||
echo ""
|
echo ""
|
||||||
echo "USAGE: $0 kernels list"
|
echo "USAGE: $0 kernels list"
|
||||||
echo ""
|
echo ""
|
||||||
@ -336,7 +337,7 @@ case "$1" in
|
|||||||
'kernels')
|
'kernels')
|
||||||
shift
|
shift
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
warn "E: subcommand is mandatory."
|
warn "E: subcommand is mandatory for 'kernels'."
|
||||||
warn ""
|
warn ""
|
||||||
usage
|
usage
|
||||||
exit 1
|
exit 1
|
||||||
@ -356,7 +357,7 @@ case "$1" in
|
|||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
warn "E: invalid subcommand '$cmd'."
|
warn "E: invalid 'kernels' subcommand '$cmd'."
|
||||||
warn ""
|
warn ""
|
||||||
usage
|
usage
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user