summaryrefslogtreecommitdiffstats
path: root/mcp
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-11-08 11:42:02 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-11-08 11:42:02 +0000
commit6726ba6362b79527c210487ff37419142d9f93b6 (patch)
treef688aac91899b866bae3d85ee1c55acaa0cf4873 /mcp
parent3803f9ff798b5c186e605cb8366b5153ab4e19fc (diff)
parenta0a93056d5d5c52b739a2bc8fe0e2aaabb962f36 (diff)
Merge "lib.sh: Cleanup previous /boot/efi contents"
Diffstat (limited to 'mcp')
-rw-r--r--mcp/scripts/lib.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh
index 6b7193b3f..c6d5d26ce 100644
--- a/mcp/scripts/lib.sh
+++ b/mcp/scripts/lib.sh
@@ -41,7 +41,8 @@ function cleanup_uefi {
ssh ${SSH_OPTS} "${SSH_SALT}" "sudo salt -C 'kvm* or cmp*' cmd.run \
\"which efibootmgr > /dev/null 2>&1 && \
efibootmgr | grep -oP '(?<=Boot)[0-9]+(?=.*ubuntu)' | \
- xargs -I{} efibootmgr --delete-bootnum --bootnum {}\"" || true
+ xargs -I{} efibootmgr --delete-bootnum --bootnum {}; \
+ rm -rf /boot/efi/*\"" || true
}
function cleanup_vms {