livecd-rootfs/live-build/ubuntu-core/hooks/99-undivert-grub-install.chroot
Oliver Grawert 8c606962fa Import patches-unapplied version 2.348 to ubuntu/wily-proposed
Imported using git-ubuntu import.

Changelog parent: 0682fffca187ed3d1686d3802e50785b54eee3fc

New changelog entries:
  * limit grub-install diversion on snappy images to x86 architectures
  * divert grub-install on snappy images during rootfs build
2015-10-09 12:48:49 +00:00

11 lines
199 B
Bash
Executable File

#! /bin/sh -ex
ARCH=$(dpkg --print-architecture)
case $ARCH in
i386|amd64)
rm -f /usr/sbin/grub-install
dpkg-divert --quiet --remove --rename /usr/sbin/grub-install
;;
esac