diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2017-11-10 16:20:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-11-10 16:20:00 +0000 |
commit | d8508c56661b0e0fb40e82e9feb1df1416749913 (patch) | |
tree | 09f2a90c1251e4723e4c0a1b0311a277f0a90990 /mcp/scripts/lib.sh | |
parent | 2eb688d9bf92880107dfafd0591ee81ad8210416 (diff) | |
parent | ee0d0d60d32192b17ee5670cf077e028c75ba29a (diff) |
Merge "lib.sh: Cleanup previous /boot/efi contents" into stable/euphrates
Diffstat (limited to 'mcp/scripts/lib.sh')
-rw-r--r-- | mcp/scripts/lib.sh | 3 |
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 { |