Adding support for a local /etc/apt/preferences file in config/chroot_apt/preferences.
This commit is contained in:
parent
c5f302869e
commit
e98b7dda9d
|
@ -106,6 +106,17 @@ case "${1}" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Configuring apt preferences
|
||||||
|
if [ -f config/chroot_apt/preferences ]
|
||||||
|
then
|
||||||
|
if [ -f chroot/etc/apt/preferences ]
|
||||||
|
then
|
||||||
|
mv chroot/etc/apt/preferences chroot/etc/apt/prefereces.orig
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp config/chroot_apt/preferences chroot/etc/apt/preferences
|
||||||
|
fi
|
||||||
|
|
||||||
# Creating stage file
|
# Creating stage file
|
||||||
Create_stagefile .stage/chroot_apt
|
Create_stagefile .stage/chroot_apt
|
||||||
;;
|
;;
|
||||||
|
@ -137,6 +148,14 @@ case "${1}" in
|
||||||
# Deconfiguring aptitude secure
|
# Deconfiguring aptitude secure
|
||||||
rm -f chroot/etc/apt/apt.conf.d/00secure
|
rm -f chroot/etc/apt/apt.conf.d/00secure
|
||||||
|
|
||||||
|
# Deconfiguring apt preferences
|
||||||
|
if [ -f config/chroot_apt/preferences.orig ]
|
||||||
|
then
|
||||||
|
mv chroot/etc/apt/preferences.orig chroot/etc/apt/preferences
|
||||||
|
else
|
||||||
|
rm -f chroot/etc/apt/preferences
|
||||||
|
fi
|
||||||
|
|
||||||
# Removing stage file
|
# Removing stage file
|
||||||
rm -f .stage/chroot_apt
|
rm -f .stage/chroot_apt
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -764,6 +764,7 @@ LH_SECTIONS="${LH_SECTIONS}"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Creating lh_chroot_* configuration
|
# Creating lh_chroot_* configuration
|
||||||
|
mkdir -p config/chroot_apt
|
||||||
mkdir -p config/chroot_local-hooks
|
mkdir -p config/chroot_local-hooks
|
||||||
mkdir -p config/chroot_local-includes
|
mkdir -p config/chroot_local-includes
|
||||||
mkdir -p config/chroot_local-packages
|
mkdir -p config/chroot_local-packages
|
||||||
|
|
Loading…
Reference in New Issue