mirror of
https://git.proxmox.com/git/pve-kernel-meta
synced 2026-03-28 12:06:55 +00:00
proxmox-boot-tool: sort and remove duplicates on clean
This is mostly in preparation for renaming pve-efiboot-uuids into proxmox-boot-uuids, but can help in general (since each duplicate uuid causes excessive disk i/o upon kernel upgrades). Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
parent
182bfa3a0f
commit
33f32d0a30
@ -195,6 +195,10 @@ clean() {
|
||||
if [ -e "$ESP_LIST".tmp ]; then
|
||||
mv "$ESP_LIST".tmp "$ESP_LIST"
|
||||
fi
|
||||
|
||||
echo "Sorting and removing duplicate ESPs.."
|
||||
sort -uo "$ESP_LIST".tmp "$ESP_LIST"
|
||||
mv "$ESP_LIST".tmp "$ESP_LIST"
|
||||
}
|
||||
|
||||
refresh() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user