]> git.proxmox.com Git - pve-kernel-meta.git/blobdiff - bin/proxmox-boot-tool
proxmox-boot-tool: sort and remove duplicates on clean
[pve-kernel-meta.git] / bin / proxmox-boot-tool
index a60fc0c99b850ccc431b99495a4bc9abc0612f97..ceaf50eb9ac3905955c4b535c7470fdc41f3bd14 100755 (executable)
@@ -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() {