aboutsummaryrefslogtreecommitdiffstats
path: root/mcp
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-11-10 16:20:00 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-11-10 16:20:00 +0000
commitd8508c56661b0e0fb40e82e9feb1df1416749913 (patch)
tree09f2a90c1251e4723e4c0a1b0311a277f0a90990 /mcp
parent2eb688d9bf92880107dfafd0591ee81ad8210416 (diff)
parentee0d0d60d32192b17ee5670cf077e028c75ba29a (diff)
Merge "lib.sh: Cleanup previous /boot/efi contents" into stable/euphrates
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 {