2013-04-02 00:25:25 +00:00
|
|
|
#!/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 -e
|
|
|
|
|
2013-11-18 23:12:27 +00:00
|
|
|
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
|