ea3f4dd459
ensure 4 spaces indentation is used everywhere. Change-Id: Ieb48faacb4c96b7b358771d70c17f2f22d0354f4
15 lines
338 B
Bash
Executable file
15 lines
338 B
Bash
Executable file
#!/bin/bash
|
|
# The grub post-kernel install hook will barf if the block device can't be
|
|
# found (as happens in a chroot).
|
|
# Temporarily remove grub, to avoid that confusion.
|
|
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
if dpkg-query -W grub-pc; then
|
|
apt-get -y remove grub-pc
|
|
fi
|
|
|
|
if dpkg-query -W grub2-common; then
|
|
apt-get -y remove grub2-common
|
|
fi
|