diff options
author | 2017-11-08 11:42:02 +0000 | |
---|---|---|
committer | 2017-11-08 11:42:02 +0000 | |
commit | 6726ba6362b79527c210487ff37419142d9f93b6 (patch) | |
tree | f688aac91899b866bae3d85ee1c55acaa0cf4873 /mcp/scripts/lib.sh | |
parent | 3803f9ff798b5c186e605cb8366b5153ab4e19fc (diff) | |
parent | a0a93056d5d5c52b739a2bc8fe0e2aaabb962f36 (diff) |
Merge "lib.sh: Cleanup previous /boot/efi contents"
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 { |