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.
On a Debian unstable system, the file `/etc/debian_version` contains
only `11.0`, so the script `build.sh` gives me this kind of log:
OS: 11.0
Not super informative. However the file `/usr/lib/os-release` provides
more details, and by using it we can get the following log:
OS: Debian GNU/Linux 11 (bullseye)
For a Kali system:
OS: Kali GNU/Linux 2021.2
The DVD size limit has been reached and the build currently fails due to
this. We don't really want to burn DVD as ISO images are written on USB
keys and the exact size doesn't really matter for use in virtual
machines. So let's instruct debian-cd to build a bluray image so that
we no longer are annoyed with the size limit.
At least everywhere where we can end up with the output of "pwd"
in the variable so that we don't break when some directory has
spaces or other unusual characters in it.
This reverts commit d2b4645fb4.
Initial commit said “run_and_log doesn't like redirects, but I don't
think thats an issue” but it is a real issue when the whole point of the
command is to modify/overwrite a file with a redirection.
Keep only run_and_log for the final file moves.
Export the bootloader so we don't attempt to install syslinux/patch isolinux which fails on arm64.
Also pass disable to uefi-secure-boot as we don't currently support it.
Signed-off-by: Steev Klimaszewski <steev@kali.org>
The default installer image now includes the packages for all the
options available in tasksel during initial installation, so all
the kali-linux-* except kali-linux-everything and most of the
kali-desktop-*.