mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-08 17:31:38 +00:00
preserve apt preferences for all projects
This commit is contained in:
parent
d38ceab06d
commit
fb31b64a7c
@ -1096,8 +1096,7 @@ rm -f /etc/fstab
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $PROJECT = ubuntu-base ]; then
|
cat > config/hooks/100-preserve-apt-prefs.chroot <<EOF
|
||||||
cat > config/hooks/100-preserve-ua-tools-prefs.chroot <<EOF
|
|
||||||
#! /bin/sh -ex
|
#! /bin/sh -ex
|
||||||
|
|
||||||
# live-build "helpfully" removes /etc/apt/preferences.d/* so we put a
|
# live-build "helpfully" removes /etc/apt/preferences.d/* so we put a
|
||||||
@ -1107,7 +1106,6 @@ if [ -n "$(ls -A /etc/apt/preferences.d)" ]; then
|
|||||||
cp -a /etc/apt/preferences.d /etc/apt/preferences.d.save
|
cp -a /etc/apt/preferences.d /etc/apt/preferences.d.save
|
||||||
fi
|
fi
|
||||||
EOF
|
EOF
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $PROJECT = ubuntukylin ]; then
|
if [ $PROJECT = ubuntukylin ]; then
|
||||||
cat > config/hooks/100-ubuntukylin.chroot <<EOF
|
cat > config/hooks/100-ubuntukylin.chroot <<EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user