Imported using git-ubuntu import.
Changelog parent: 0682fffca1
New changelog entries:
* limit grub-install diversion on snappy images to x86 architectures
* divert grub-install on snappy images during rootfs build
impish
parent
0682fffca1
commit
8c606962fa
@ -0,0 +1,19 @@
|
||||
#!/bin/sh -ex
|
||||
|
||||
ARCH=$(dpkg --print-architecture)
|
||||
|
||||
case $ARCH in
|
||||
i386|amd64)
|
||||
dpkg-divert --quiet --add \
|
||||
--divert /usr/sbin/grub-install.REAL --rename \
|
||||
/usr/sbin/grub-install
|
||||
|
||||
cat > /usr/sbin/grub-install <<'EOF'
|
||||
#! /bin/sh
|
||||
echo "grub-install: diverted by livecd-rootfs (will be called later)" >&2
|
||||
exit 0
|
||||
EOF
|
||||
|
||||
chmod +x /usr/sbin/grub-install
|
||||
;;
|
||||
esac
|
@ -0,0 +1,10 @@
|
||||
#! /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
|
Loading…
Reference in new issue