Commit Graph

431 Commits (2022.2)
 

Author SHA1 Message Date
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
Arnaud Rebillout 1c93b09f27
Ensure speech-dispatcher recommendations are in the installer
In a real situation, those packages are installed by the chain of
depends/recommends orca -> speech-dispatcher ->
(speech-dispatcher-espeak-ng, sound-icons).

However that chain is broken, in all likelyhood by debian-cd dependency
handling, cf. #601203.

This mention should ensure these packages are present in the generated
ISO.

Fixes: #46
3 years ago
Sophie Brun 444d0ba359
Add missing Utilities menu entry for UEFI 3 years ago
Sophie Brun 491815e7ae
Harmonize menus entries
* Override *.cfg instead of using hooks
* Harmonize the menu entries labels (same text, add architectures...)
3 years ago
Arnaud Rebillout 37a9e1ab9f
Drop comment about the installer-everything image 3 years ago
Daniel Ruiz de Alegría d6419ec940
Fix cpp error message parsing comments in grub-theme.in (fixes #43) 3 years ago
Sophie Brun 459f3c75a7
Change the Title for Live menu Bios mode 3 years ago
Raphaël Hertzog f673530399
Add reference to debian-cd bug to remember to drop the hacks when possible 3 years ago
Raphaël Hertzog dac570522f Merge branch 'fix-debian-cd-grub-theme' into 'master'
Update script to copy grub theme to installer iso

See merge request kalilinux/build-scripts/live-build-config!22
3 years ago
Daniel Ruiz de Alegría bb399b8bf6
Update script to copy grub theme to installer iso 3 years ago
Daniel Ruiz de Alegría 648025c21d
Grub theme tweaks 3 years ago
Daniel Ruiz de Alegría 12af40e63d
Add boot theme for installer image 3 years ago
Daniel Ruiz de Alegría fb21ce9c7c
Update syslinux boot theme 3 years ago
Daniel Ruiz de Alegría 3a48abc388
Update grub theme 3 years ago
Raphaël Hertzog 8c0a1c7b7d
Ensure pipewire-pulse is in the installer
In a real situation, the package is installed by a chain of recommends
pipewire-bin -> wireplumber -> pipewire-pulse and that chain is broken
either by debian-cd's dependency handling or by simple-cdd's logic to
build its local mirror. But this mention should ensure its presence in
the generated ISO.
3 years ago
Arnaud Rebillout 9a252cc2d9
Indent nitpick 3 years ago
Arnaud Rebillout 1ec65ba50c
Revert "Remove empty folders"
This reverts commit d1ad9e1ea2.

The empty directory `local_packages` was there for a reason.
`simple-cdd` gives a warning when this directory doesn't exist:

  WARNING local package source /home/kali/live-build-config/simple-cdd/local_packages is neither a file nor a directory

So re-instate this empty dir to keep the logs clean.

I assume that `variant-minimal` was also there for a good reason.
3 years ago
Raphaël Hertzog 0f9a2fcbc5
Disable kali-linux-large in the installer image
We would like to provide kali-linux-large in our installer images
but we end up with ISO images that are too big for our CDN. So disable
it for now.
3 years ago
Arnaud Rebillout 27ed601b0b
Revert "Add cryptsetup-initramfs to the list of packages"
This reverts commit 50a06be454.

This commit was needed only in order to include the package in the
2021.3a Kali images. Not needed anymore, and not needed to build 2021.4.
3 years ago
Arnaud Rebillout fb799cf349
Nitpick, sort some lists alphabetically 3 years ago
Arnaud Rebillout b8cf725719
Install open-vm-tools in the arm64 Live image 3 years ago
Steev Klimaszewski caae8735cd Revert "Move open-vm-tools-desktop out of the if statement"
This reverts commit aaf1a294ee.

The arm64 version of openvm-tools-desktop is still hiding in kali-experimental
so adding it in now would break the ISO builds.
4 years ago
Steev Klimaszewski aaf1a294ee Move open-vm-tools-desktop out of the if statement
Now that the open-vm-tools package supports arm64 and VMWare fusion is available for the M1 Macbooks, lets make sure that open-vm-tools-desktop is also available for arm64.
4 years ago
Arnaud Rebillout 50a06be454
Add cryptsetup-initramfs to the list of packages
Fixes:
* https://bugs.kali.org/view.php?id=7339
* https://bugs.kali.org/view.php?id=7373
4 years ago
Raphaël Hertzog 4b2dcf1c67 Merge branch 'help' into 'master'
Add --help

See merge request kalilinux/build-scripts/live-build-config!17
4 years ago
g0t mi1k 6d475a2833 Add --help 4 years ago
Raphaël Hertzog ce9af61f73
Ensure presence of kali-linux-firmware on netinst image
Fixes #36
4 years ago
Raphaël Hertzog 154bd211e7
Hardcode the list of firmware instead of relying on -headless 4 years ago
Raphaël Hertzog 1bddde91e9
kali-linux-headless is the package depending on firmwares
This is a temporary fix to be able to build fixed netinst
images for 2021.3 but in the long term, we need to move the
firmware dependencies to a dedicated package to avoid that kind
of issue.

Relates to #36.
4 years ago
Raphaël Hertzog 69bf2252e4
Enable offline installation for all images except NETINST
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.
4 years ago
Arnaud Rebillout 1458b05c8e
Install xrdp
« XRDP is what enables Hyper-V's Enhanced session mode. It also enables
Hyper-V to automatically connect via RDP, which is what fixes input
lag/allows simpler window resizing/shared clipboard. »

Big thanks to @jetbennett for the detailed report. For more context:
https://gitlab.com/kalilinux/build-scripts/live-build-config/-/issues/32#note_645975695

Fixes: #33
4 years ago
Raphaël Hertzog d6fadc55dc
Add "everything" variant for the installer image
It's easy to do but the resulting image is not so useful so we will
likely not generate it.
4 years ago
Raphaël Hertzog 3991285477
Clarify that this file only lists packages made available
The packages listed here are not automatically installed. The end users
select what to install dynamically through tasksel.
4 years ago
Raphaël Hertzog f50c8a35ca
Add the "everything" variant for the live image 4 years ago
Arnaud Rebillout 499cc3a3dc
Whitespace typo 4 years ago
Arnaud Rebillout 5667da24fc
Also install xserver-xorg-input-all explicitly
For the complete explanation, refer to:
https://gitlab.com/kalilinux/build-scripts/live-build-config/-/issues/32
4 years ago
Arnaud Rebillout 623576629a
Move xserver-xorg-video-all in firmware.list, rename it to hardware-support.list 4 years ago
Arnaud Rebillout f7ecc1411c Merge branch 'install-virt-pkgs' into 'master'
Install packages for virtualization support in the live image

See merge request kalilinux/build-scripts/live-build-config!15
4 years ago
Arnaud Rebillout b7e23058ed
Use wget in place of curl
This is the only line that requires curl. Other than that, Live Build
already depends on wget (through debootstrap), so let's use it as it's
already a requirement.
4 years ago
Arnaud Rebillout b5de1c0c3f
Make sure to install xserver-xorg-video-all 4 years ago
Arnaud Rebillout 71d6357806
Install packages for virtualization support in the live image 4 years ago
Arnaud Rebillout 88e5ec963b
Favor os-release over debian_version, as it gives more details on the host OS
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
4 years ago
Arnaud Rebillout d8c4e39495
Add the kali user to the adm group
So that the kali user can run `journalctl` or read log files in
`/var/log`, without the need for sudo.

Fixes: #31
4 years ago
Raphaël Hertzog dbbf0c2b9e
Switch DISKTYPE to BD for Bluray Disk
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.
4 years ago