Add debian-installer preseed file to override apt configuration

We want to override the apt configuration from the preseed in the
initrd because it harcodes the kali repository and we want
kali-rolling ISO to use the kali-rolling repository too!

We do it in a way that still allows the user to put his own
preseed file.
debian-cd
Sophie Brun 10 years ago
parent ef1cf2936e
commit 9eeb33247b

@ -85,6 +85,24 @@ if [ -n "$enable_pu" ]; then
> config/archives/kali-proposed-updates.list.binary > config/archives/kali-proposed-updates.list.binary
fi fi
if [ -e config/includes.installer/preseed.cfg ]; then
sed -i -e '/^# KALI OPTIONS/,$ d' config/includes.installer/preseed.cfg
fi
cat >>config/includes.installer/preseed.cfg <<END
# KALI OPTIONS
# Default repository information
d-i mirror/country string enter information manually
d-i mirror/suite string $dist
d-i mirror/http/hostname string http.kali.org
d-i mirror/http/directory string /kali
# Add our own security mirror
d-i apt-setup/local0/repository string http://security.kali.org/kali-security $dist/updates main contrib non-free
d-i apt-setup/local0/comment string Security updates
d-i apt-setup/local0/source boolean false
END
lb config noauto \ lb config noauto \
--distribution "$dist" \ --distribution "$dist" \
--debian-installer-distribution "$dist" \ --debian-installer-distribution "$dist" \

Loading…
Cancel
Save