~ubuntu-core-dev/livecd-rootfs/trunk

« back to all changes in this revision

Viewing changes to live-build/ubuntu-core/hooks/01-divert-grub-install.chroot_early

  • Committer: Balint Reczey
  • Date: 2019-01-31 08:14:49 UTC
  • Revision ID: balint.reczey@canonical.com-20190131081449-ptfnz0r4c2emh0nt
Moved to git at https://git.launchpad.net/livecd-rootfs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh -ex
2
 
 
3
 
ARCH=$(dpkg --print-architecture)
4
 
 
5
 
case $ARCH in
6
 
    i386|amd64)
7
 
        dpkg-divert --quiet --add \
8
 
                --divert /usr/sbin/grub-install.REAL --rename \
9
 
                /usr/sbin/grub-install
10
 
 
11
 
        cat > /usr/sbin/grub-install <<'EOF'
12
 
#! /bin/sh
13
 
echo "grub-install: diverted by livecd-rootfs (will be called later)" >&2
14
 
exit 0
15
 
EOF
16
 
 
17
 
        chmod +x /usr/sbin/grub-install
18
 
    ;;
19
 
esac