parent
61c237fd77
commit
0054a24f90
@ -1,13 +1,19 @@
|
||||
#!/bin/sh -ex
|
||||
|
||||
dpkg-divert --quiet --add \
|
||||
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'
|
||||
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
|
||||
chmod +x /usr/sbin/grub-install
|
||||
;;
|
||||
esac
|
||||
|
@ -1,4 +1,10 @@
|
||||
#! /bin/sh -ex
|
||||
|
||||
rm -f /usr/sbin/grub-install
|
||||
dpkg-divert --quiet --remove --rename /usr/sbin/grub-install
|
||||
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