With this change, we do NOT set profiles based on DISKTYPE anymore.
Instead, we set profiles (and auto_profiles) in build.sh, depending on
the variant.
This change is in preparation for next commit, where we'll introduce a
new installer variant.
Otherwise we get plenty of error messages:
DEBUG build/debian-cd stderr: Use of uninitialized value
$ENV{"NONFREE_COMPONENTS"} in split at
<<DIR>>/simple-cdd/debian-cd/tools/which_deb line 23.
We recently switched from DVD to BD (Bluray Disc) because the image
didn't fit in a single layer DVD anymore and that changed broke
a further check enabling the offline logic.
We want debian-installer to see "ethX" device names and not the
other names that we have disabled via kali-defaults anyway. That
discrepancy even breaks networking for minimal installations
where /etc/network/interfaces gets the wrong name.
We move the default preseed to the kali profile so that the default
preseed can actually again enable simple-cdd-profiles that we need
because we want the other profiles to have their preseed and postinst
working (and they work through the script run when simple-cdd-profiles
is installed).
We add an offline profile that disables the network mirror (but not
the networking!) and we add a "postinst" script that is run in the
finish-install step to actually configure /etc/apt/sources.list that
is empty due to the preseed.
Debian defaults to linux-image-686 for i386 on all levels (simple-cdd,
debian-cd, debian-installer). Kali modified debian-installer to use
linux-image-686-pae in debian-installer (for the benefit of the live
image mainly!). We have to adjust simple-cdd (by way of the
kernel_packages configuration item) and debian-cd (with some live
patching of a copy).