lib.sh: rm Ubuntu boot entry on EFI systems 69/46369/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 24 Aug 2017 02:09:59 +0000 (04:09 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sat, 28 Oct 2017 18:01:09 +0000 (20:01 +0200)
commit4e2c736cce578d1073dab0e0960b524b1dcc663a
tree03d5e998d997886fcc2c640c3ccfc7cc4bb417d3
parenta1a73087d8e5cb43d2ebcf313f7a784b20bc4a3e
lib.sh: rm Ubuntu boot entry on EFI systems

On EFI-enabled systems, grub-install from grub-efi-* package
installs a boot entry named "ubuntu".

MaaS relies on IPMI to set boot order to PXE first; however
on systems with buggy firmware or without full IPMI support,
that fails, leading to booting Ubuntu from hard disk instead.

Work around this by clearing any previous Ubuntu boot entry
from board flash, before starting a new baremetal deploy.

NOTE: This only runs against nodes that are online from a
previous deploy.

Closes: ARMBAND-47

Change-Id: I1c4ece09e42845ce2a1b7119ec69e46e5ca12376
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
mcp/scripts/lib.sh