mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-10-24 13:34:16 +00:00
Imported using git-ubuntu import.
Changelog parent: c9aadc4a6985a3327e7dc52bc471f3156ae9d764
New changelog entries:
[ Michael Vogt ]
* live-build/ubuntu-core/hooks/400-create-apt-get-warning.binary:
- improve apt-get output
* live-build/auto/config:
- add click-apparmor for system-image
* live-build/ubuntu-core/hooks/400-create-apt-get-warning.binary:
- fix incorrect "echo"
- add missing wrappers for apt, apt-cache
- fix message
* live-build/ubuntu-core/hooks/14-set-motd.chroot:
- update motd
[ James Hunt ]
* live-build/ubuntu-core/hooks/10-remove-documentation.binary:
- compress remaining documentation to save further space.
20 lines
394 B
Bash
20 lines
394 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/no-apt <<EOF
|
|
#!/bin/sh
|
|
cat <<EOF
|
|
Ubuntu Core does not use apt-get, see 'snappy --help'!
|
|
EOF
|
|
chmod 755 $PREFIX/usr/local/bin/no-apt
|
|
|
|
for cmd in apt apt-cache apt-get; do
|
|
ln -s no-apt $PREFIX/usr/local/bin/$cmd
|
|
done
|