[pve-devel] [PATCH pve-kernel-meta v2 3/8] proxmox-boot-tool: sort and remove duplicates on clean
Stoiko Ivanov
s.ivanov at proxmox.com
Fri Apr 23 11:04:45 CEST 2021
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 at proxmox.com>
---
bin/proxmox-boot-tool | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/bin/proxmox-boot-tool b/bin/proxmox-boot-tool
index a60fc0c..ceaf50e 100755
--- a/bin/proxmox-boot-tool
+++ b/bin/proxmox-boot-tool
@@ -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() {
--
2.20.1
More information about the pve-devel
mailing list