mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-13 22:28:27 +00:00
7ec8dd87ac
from a launchpad-buildd-like setup, which passes ARCH and SUBARCH in the environment, because auto/config and auto/build both rely on this. So don't scatter dpkg --print-architecture calls throughout, especially when many of these are not cross-build-aware.
18 lines
379 B
Bash
Executable File
18 lines
379 B
Bash
Executable File
#!/bin/sh -ex
|
|
|
|
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
|