livecd-rootfs/live-build/ubuntu-cpc/hooks.d/chroot/100-preserve-apt-prefs.chroot
CloudBuilder 5e087d55ef Imported 2.525.36
No reason for CPC update specified.
2020-01-13 08:47:19 +00:00

9 lines
237 B
Bash
Executable File

#! /bin/sh -ex
# live-build "helpfully" removes /etc/apt/preferences.d/* so we put a
# copy somewhere it won't touch it.
if [ -n "$(ls -A /etc/apt/preferences.d)" ]; then
cp -a /etc/apt/preferences.d /etc/apt/preferences.d.save
fi