lib.sh: Cleanup previous /boot/efi contents 23/46823/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 8 Nov 2017 01:09:13 +0000 (02:09 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 8 Nov 2017 01:35:29 +0000 (02:35 +0100)
commita0a93056d5d5c52b739a2bc8fe0e2aaabb962f36
treefc382b44ed57cb74e548ae259239a74eaafe9995
parentb1ea72ba2c441a59327cc931b95bb7ece41591d0
lib.sh: Cleanup previous /boot/efi contents

Some UEFI firmwares insist on scanning removable drives, even when
boot entries were deleted from UEFI boot list (board flash).

To work around this, remove contents of </boot/efi/*>, so scanning
won't identify any valid EFI binaries.
Another option would be erasing partition tables, but identifying
the underlying disk(s) is more complicated, especially when using
LVM/RAID etc.

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