Commit Graph

474 Commits (2023.2)
 

Author SHA1 Message Date
Arnaud Rebillout 41a8565ff5
Drop misc package from offline.downloads
These packages were added at a time when debian-cd didn't resolve
Recommends to the end, so we needed to list it explicitly there. But
it's been fixed now, in debian-cd 3.1.36 (cf. #601203), so we can drop
those lines.
2 years ago
Arnaud Rebillout 7e8fc6d6b3
Bump debian-cd requirement to 3.1.36
This is in preparation for next commit
2 years ago
Arnaud Rebillout a1c636e7a6
Drop usr-is-merged from offline.downloads and installer-netinst
usr-is-merged is included in simple-cdd offline.downloads's since
version 0.6.9. Not sure why I needed to list it in installer-netinst as
well at the time, but after testing, I can confirm it's not needed
anymore.
2 years ago
Arnaud Rebillout c8531ad33c
Drop python3-unicodedata2 from offline.downloads
As python 3.11 is now in Kali (rolling and last release)
2 years ago
Arnaud Rebillout 59023ecfce
Bump simple-cdd requirement to 0.6.9
Just so that it's a Debian version, it looks neater.
2 years ago
Arnaud Rebillout 17f0a70d80
Install kali-linux-firmware in Live images
It used to be pulled in as a dependency of kali-linux-headless, but it
just changed, now we must install it manually.
2 years ago
Arnaud Rebillout 828222a5b1
Make sure to include kali-linux-firmware in the installer images
Usually it's pulled in via dependency (as it's a dep of
kali-linux-headless IIRC itself a dep of kali-linux-default). But that's
not the case for Kali Purple, as it doesn't depend on
kali-linux-default.

Furthermore, kali-linux-firmware is now installed in all cases by
tasksel, so we must make sure it's there, instead of relying on
metapackage's dependencies.

Hopefully it will fix:
- https://gitlab.com/kalilinux/kali-purple/documentation/-/issues/8
- https://gitlab.com/kalilinux/kali-purple/documentation/-/issues/11
2 years ago
Arnaud Rebillout fa983c5966
Revert "Make sure to include kali-linux-firmare"
This reverts commit 7bb52e4991.

I wanted to make sure firmware are included in the installer image, but
I missed it, I modified a config file that is only for live images, it
seems...

Also, note that the previous commit message

  Kali purple: install kali-system-gui (instead of core)

Should have been:

  Kali purple: include kali-system-gui (instead of core) in the installer

Because this commit is really about having the package available in the
installer, but it doesn't "install it" on the system. Sorry for the
confusion.
2 years ago
Arnaud Rebillout af49e4d25a
Kali purple: install kali-system-gui (instead of core)
The dep chain is kali-system-gui > kali-system-cli > kali-system-core.

kali-system-cli contains wget and curl, which we probably want to have,
and will fix https://gitlab.com/kalilinux/kali-purple/documentation/-/issues/9

I'm not sure about kali-system-gui, but I have the impression that it
was the intention to install it in Kali Purple, but at some point it was
forgotten and we install kali-system-core instead.
2 years ago
Arnaud Rebillout 7bb52e4991
Make sure to include kali-linux-firmare
As it's now installed in all cases by tasksel, so we must make sure it's
there. This should fix:

- https://gitlab.com/kalilinux/kali-purple/documentation/-/issues/8
- https://gitlab.com/kalilinux/kali-purple/documentation/-/issues/11
2 years ago
Arnaud Rebillout 4561884cbe
Make Kali Purple installer offline
The package exploitdb-papers was removed from kali-tools-identify in
src:kali-meta 2023.1.11, so there's no need to exclude it here anymore.

As a consequence, no need for the network during installation anymore.
2 years ago
Ben Wilson 9502b5ff80
Match ordering 2 years ago
Arnaud Rebillout 37c1a23677
Bump live-build requirement (one more time) 2 years ago
Arnaud Rebillout 384f071f0a
Fix deb822 sources 2 years ago
Raphaël Hertzog e521a18dcf
Enable non-free-firmware by default everywhere
Even though it's currently empty, we want users to have this component
enabled so that they don't miss on updates when we start to move
packages from non-free to non-free-firmware.
2 years ago
Arnaud Rebillout cb8bd8b1c3
Bump live-build requirement (again)
Was missing the epoch, so it didn't trigger
2 years ago
Arnaud Rebillout a364ca4abf
Update kali-purple.postinst to use deb822 sources format 2 years ago
Arnaud Rebillout 243700c73f
Enable Kali Purple installer theme
Other things that I tried, but that didn't work, below:

I tried adding the preseed to simple-cdd/profiles/kali-purple.preseed,
however that didn't work, I guess that this preseed file is loaded only
later during installation, and that at this point the GUI was already
loaded and it's too late to set the theme.

I also tried to do this in simple-cdd.conf:

  # Theming
  if echo " $profiles " | grep -q " kali-purple "; then
    export KERNEL_PARAMS="${KERNEL_PARAMS} debian-installer/theme=Clearlooks-Purple "
  fi

But it doesn't work, seemingly 'profiles' is not set when simple-cdd
loads the conf, and even though we build with the command:

    build-simple-cdd [...] --profiles "$profiles" [...]

Given the fact that uppercase variables are exported, and what we
actually want to change is KERNEL_PARAMS, it seems that the most
straightforward is just to preset it from build.sh.
2 years ago
Arnaud Rebillout 0cb485307f
Bump live-build requirement 2 years ago
Arnaud Rebillout ede795dc4c
Drop comment in simple-cdd.conf
Kali won't have a non-free-firmware component in the short-term.
2 years ago
Arnaud Rebillout 735f0fe1c6 Merge branch 'kali-purple' into 'master'
Add kali purple variant

See merge request kalilinux/build-scripts/live-build-config!29
2 years ago
Arnaud Rebillout 209293f322
Add preseed for tripwire
tripwire comes as a Recommends of tiger, itself a Depends of
kali-tools-identify.

It needs to be heavily pre-seeded, otherwise it's very chatty.
2 years ago
Arnaud Rebillout 825d3dcc52
Add kali-purple simple-cdd profile
This profile does the following:
- it enables the elastic apt repo
- it also enables the network during installation
- finally, it makes sure to exclude the very big package
  exploitdb-papers, otherwise the iso is too big (~ 6 GB)

I'm a bit surprised that we need to enable the network via a preseed
file. I thought that it would be enough to just make sure that the
installer-purple variant does NOT include the offline profile, but in
practice no, it's not enough.
2 years ago
Arnaud Rebillout b327625da0
Add installer-purple variant
build.sh:

Note that the installer-purple variant does NOT include the offline
profile, that's on purpose. There's no requirement for this installer to
work offline, and on top of that, we can't include all the packages in
the iso at the moment (the package exploitdb-papers is too big). So we
very much expect to have network, and to download big packages during
the installation.

See next commits for more details.

    kali-config/installer-purple/packages:

Unlike other variants, the "base" metapackage is kali-system-core,
which is a very stripped down metapackage with no offensive tools.
(kali-system-core is basically what used to be kali-linux-core, minus
the few offensive tools that were in there).
2 years ago
Arnaud Rebillout ee4d243ac5
Set simple-cdd profiles from build.sh (instead of guessing from config)
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.
2 years ago
Arnaud Rebillout 7554441e39
Bump simple-cdd requirement 2 years ago
Arnaud Rebillout a0e7685a32
Update conf for debian-cd 3.1.36
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.
2 years ago
Daniel Ruiz de Alegría fad74bec02
Change hotsel background in syslinux menu 2 years ago
Daniel Ruiz de Alegría f292986de0
Tweak selected item background in syslinux menu 2 years ago
Daniel Ruiz de Alegría 84eca223b8
Update new boot images 2 years ago
Daniel Ruiz de Alegría a84dc79ee5
Remove win32 loader in installer image too 2 years ago
Arnaud Rebillout a626b13fa8
Add link to Debian bug for python3-unicodedata2 3 years ago
Arnaud Rebillout 0dac9978cf
Ensure python3-unicodedata2 is available in installer iso
Installation from the weekly installer image fails (2022-W40 and
2022-W41). From syslog:

    in-target: The following packages have unmet dependencies:
    in-target:  king-phisher : Depends: python3-matplotlib (>= 1.4.3) but it is not installable
    in-target:                 Recommends: python3-mpltoolkits.basemap (>= 1.0.7) but it is not installable

From a manual install, using the iso packages set in sources.list:

    # apt install king-phisher
    [...]
    The following packages have unmet dependencies:
     python3-fonttools : Depends: python3-unicodedata2 (>= 14.0.0) but it is not installable or
                                  python3-all (>= 3.11.0) but 3.10.6-1 is to be installed
    E: Unable to correct problems, you have held broken packages.

Dependency chain is as follow:

    king-phisher
    +-- python3-matplotlib
      +-- python3-fonttools
        +-- python3-unicodedata2 (>= 14.0.0) | python3-all (>= 3.11.0)

In the set of packages that are available in the iso, we don't have
python3-unicodedata2 , however we have python3-all , BUT it's at version
3.10.6-1 ... So nothing can satisfy the dependency.

For now, let's manually force python3-unicodedata2 in the iso, as a
workaround.
3 years ago
Raphaël Hertzog 0679a761cb
Revert "Work-around non-co-installability of nvidia-tesla-kernel-support and nvidia-tesla-470-kernel-support"
This reverts commit 8bd6060b07.

Actually --firmware-binary is also affected by the same issue and there
I'd rather not remove the logic to include the firmwares in the
installer. So instead I went for a temporary solution where I excluded
nvidia-graphics-drivers-tesla-470 from Kali entirely.
3 years ago
Raphaël Hertzog 8bd6060b07
Work-around non-co-installability of nvidia-tesla-kernel-support and nvidia-tesla-470-kernel-support
Issue has been reported to Debian in https://bugs.debian.org/1018873
3 years ago
Arnaud Rebillout d904078515
Disable the encfs error message
Ths first line ('... boolean true') is needed to trick debian-cd into
believing that the type of the question is a boolean.

Otherwise debian-cd will think that the question doesn't exist, probably
because it doesn't know the type, probably because there's no type to
start with (this is an error message, not a question).

FTR, without the first line, it fails with:

  2022-08-04 10:05:37,846 DEBUG Checking configuration...
  error: Cannot find a question for encfs/security-information
  2022-08-04 10:05:38,016 ERROR preseed file invalid:
    <<LBDIR>>/simple-cdd/profiles/kali.preseed
3 years ago
Arnaud Rebillout f20801c8ed
Add usr-is-merged to netinst 3 years ago
Arnaud Rebillout 9088bb6a4f
Workaround mariadb crash, seemingly due to overlayfs 3 years ago
Arnaud Rebillout 3e4b4863af Merge branch 'usr-is-merged' into 'master'
Add usr-is-merged to the list of offline packages

See merge request kalilinux/build-scripts/live-build-config!27
3 years ago
Arnaud Rebillout 35e8e43efa
Add usr-is-merged to the list of offline packages 3 years ago
Daniel Ruiz de Alegría 8b53fff039 Remove windows loader 3 years ago
Daniel Ruiz de Alegría e75c056b37
Add hook to remove bloat from xfce variant 3 years ago
Daniel Ruiz de Alegría 9523854ff0
Remove apt cache bloat 3 years ago
Raphaël Hertzog d24fbca130
Switch to memtest86+
memtest86 is no longer in Debian testing / Kali Rolling
3 years ago
Arnaud Rebillout dd2d78c7d6
get_user_list: output warning to stderr
The function get_user_list returns a list of users on stdout, so
obviously it can't use stdout to also display messages. Use stderr
instead.

Note that we could also silently skip if we find a directory in /home
that is not a user. Does it happen in practice?
3 years ago
Raphaël Hertzog c8b4287985 Merge branch 'vboxsf-group' into 'master'
Add the kali user to the vboxsf group, if it exists

See merge request kalilinux/build-scripts/live-build-config!25
3 years ago
Arnaud Rebillout a90925b444
Add kali user to the vboxsf group, if ever it exists
The vboxsf group is created by the postinst script of the package
virtualbox-guest-utils. The kali user needs to be part of this group
in order to access VirtualBox's shared folders.

This change does just that. It's effective for all the Live images
(where VirtualBox guest additions are installed unconditionnally),
and for the systems installed by the Installer image where VirtualBox
was detected (and therefore VirtualBox guest additions were installed).

Ref: <https://bugs.kali.org/view.php?id=7643>
3 years ago
Arnaud Rebillout 6ea2a3ce82
Add kali user to additional groups one by one
Up to now, it was fine to use a command such as:

    usermod -a -G group1,group2,... kali

However a limitation is that all the groups that are given to the option
-G must exist. If that's not the case, usermod fails (return code: 6)
without doing anything, and the user is not added to any group.

So with this commit, we prepare the code to support optional groups,
that might or might not exist. If ever a group does not exist, it's
skipped silently.
3 years ago
Arnaud Rebillout da484826f4
Nitpicks in kali-{user-setup,finish-install}
Changes:
- order groups alphabetically
- use the same comment "Ensure those groups exist" consistently in the 2
  scripts, and also drop the comment regarding a "generically named"
  function.
- adds "|| true" to the usermod command in kali-user-setup (only for
  consistency, the script is not run with "set -e" anyway).

After those changes, the two functions "configure_usergroups()" are very
similar, and it's very easy to spot the differences between both.
3 years ago
Arnaud Rebillout 10bf866807
Don't add root to any group
This was introduced in 5989ec37de, and
probably that was not the intention.

Adding root to groups doesn't break anything, but I don't think it makes
any sense either.
3 years ago