From 9eeb33247b7209646afc6fe2f4d02a19e80f4abb Mon Sep 17 00:00:00 2001 From: Sophie Brun Date: Thu, 26 Feb 2015 17:47:53 +0100 Subject: [PATCH] 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. --- auto/config | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/auto/config b/auto/config index 86e7392..6a361da 100755 --- a/auto/config +++ b/auto/config @@ -85,6 +85,24 @@ if [ -n "$enable_pu" ]; then > config/archives/kali-proposed-updates.list.binary 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 <