diff options
| author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-04-08 15:37:39 +0200 |
|---|---|---|
| committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-04-14 12:19:23 +0200 |
| commit | 386ecab61e30d326b8f3cdabc5feae6624bb19f0 (patch) | |
| tree | aa7be1b5fc7cca0186423202f8a004a6b5eca942 | |
| parent | 6cdbb48482b0dca79f9ff3208bee0ed1031afedf (diff) | |
| download | debian-edu-fai+itzks-386ecab61e30d326b8f3cdabc5feae6624bb19f0.tar.gz debian-edu-fai+itzks-386ecab61e30d326b8f3cdabc5feae6624bb19f0.tar.bz2 debian-edu-fai+itzks-386ecab61e30d326b8f3cdabc5feae6624bb19f0.zip | |
fai/config/scripts/GRUB_EFI/10-setup: Add EFI boot manager wipe for the Dell Venue 8 Pro tablet series.
| -rwxr-xr-x | fai/config/scripts/GRUB_EFI/10-setup | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fai/config/scripts/GRUB_EFI/10-setup b/fai/config/scripts/GRUB_EFI/10-setup index ac0eac0..646876d 100755 --- a/fai/config/scripts/GRUB_EFI/10-setup +++ b/fai/config/scripts/GRUB_EFI/10-setup @@ -58,6 +58,17 @@ elif [[ $BOOT_DEVICE =~ '/dev/loop' ]]; then fi else + # Hack for the Dell Venue 8 Pro device series + if $ROOTCMD dmidecode | grep "Product Name:" | grep -q "Venue 8 Pro"; then + + # wipe all EFI boot entries... Otherwise the dv8p's broken EFI + # won't boot the device... + $ROOTCMD efibootmgr | grep -E "^Boot[0-9]{4}.*" | sed -Ee 's/Boot([0-9]+).*/\1/' | while read bootnum; do + $ROOTCMD efibootmgr --delete-bootnum --bootnum $bootnum + done + + fi + $ROOTCMD grub-install --no-floppy --modules=part_gpt "$GROOT" if [ $? -eq 0 ]; then echo "Grub installed on $BOOT_DEVICE = $GROOT" |
