livecd-rootfs/live-build/ubuntu-core/hooks/400-create-apt-get-warning.binary
Michael Vogt a0b7ec336e Import patches-unapplied version 2.269 to ubuntu/vivid-proposed
Imported using git-ubuntu import.

Changelog parent: 3ae0f6025fcc17a9625944d782d97cad537bfdce

New changelog entries:
  * live-build/auto/{build,config}:
    - create device-azure.tar.gz during the build that includes the
      packages for the azure cloud
  * live-build/ubuntu-core/hooks/400-create-apt-get-warning.binary:
    - display helpful message to use snappy when a user tries to use
      apt-get on a snappy system
  * live-build/ubuntu-core/hooks/500-move-kernel-to-device-tar.binary:
    - do the device-azure.tar.gz extraction here
  * live-build/ubuntu-core/hooks/12-add-docker-user.chroot:
    - ensure docker group is used
2014-11-24 07:48:18 +00:00

16 lines
354 B
Bash

#!/bin/sh
set -ex
echo "I: Creating warning to use snappy when apt-get is used"
PREFIX=binary/boot/filesystem.dir
mkdir -p $PREFIX/usr/local/bin
cat >$PREFIX/usr/local/bin/apt-get <<EOF
#!/bin/sh
echo "apt is not available on snappy Ubuntu! Try our snappy command to install"
echo "and update your system"
EOF
chmod 755 $PREFIX/usr/local/bin/apt-get