Commit Graph

531 Commits (main)
 

Author SHA1 Message Date
Arnaud Rebillout b31a1ddaa4 Sync 0031-kali-user-setup with kali-finish-install
Not sure why there was no info messsages at all in this script, I'm
adding it now to reduce the diff with kali-finish-install, hopefully I'm
not breaking anything by using stdout for informative messages...
2 weeks ago
Arnaud Rebillout f270865323 Document other duplicates of kali-finish-install 2 weeks ago
Arnaud Rebillout 8c4449180f Adjust .gitignore
Since commit cf029a87c9, I get this error:

```
$ git add --verbose kali-config/common/includes.chroot/usr/lib/live/config/0031-kali-user-setup
add 'kali-config/common/includes.chroot/usr/lib/live/config/0031-kali-user-setup'
The following paths are ignored by one of your .gitignore files:
kali-config/common/includes.chroot/usr/lib/live/config
hint: Use -f if you really want to add them.
hint: Disable this message with "git config advice.addIgnoredFile false"
```

This is because wildcards were dropped, ie `config/* became `config/`
and `chroot/*` became `chroot/`, and I don't really understand *why* it
caused the change in behavior, but let's not go down the rabbit hole.

It seems to me that we want to ignore directories at the root, so be
explicit about that, and that's enough to fix the issue.
2 weeks ago
Daniel Ruiz de Alegría f7c53c8738
Update boot menu background 4 weeks ago
Arnaud Rebillout b1be7b0cf4 Remove texlive-latex-extra (temporary)
In order to free some space on the live iso, which is too big at the
moment
4 weeks ago
Arnaud Rebillout 8ca1bfd664 Set executable bit on remove-bloat-from-recommended-packages.chroot
Doesn't change anything to the build. It's just that it's easier to spot
scripts when looking at the git repo with eg. `tree`: executable files
are highlighted.
4 weeks ago
Arnaud Rebillout bc4f41d5fe Add compat symlinks for xfce variants
The variants were renamed in 530b22106b,
breaking scripts that used the old name (like, our own build infra that
uses `--variant everything`, for example).

This commit adds compat symlinks so that things keep working.
1 month ago
Daniel Ruiz de Alegría 7abf80c77f
Optimize boot menu image 2 months ago
Daniel Ruiz de Alegría a7ed79a2f6
Merge remote-tracking branch 'origin/master' 2 months ago
Daniel Ruiz de Alegría 75b83129e6
Update boot menu background 2 months ago
g0t mi1k 843e7f3e5f Merge branch 'restructure' into 'main'
Restructure to split up live-build and simple-cdd

See merge request kalilinux/build-scripts/kali-live!18
2 months ago
g0t mi1k a328af3e0c Drop duplicate get-image-path 2 months ago
g0t mi1k a9d7f357ab Keep consistency with lines 2 months ago
g0t mi1k 7f241a3c73 Keep output consistency by dropping full stop 2 months ago
g0t mi1k 82780ef866 Hide output if package doesn't exists 2 months ago
g0t mi1k 3d6141b877 Move log, so --help doesn't trigger 2 months ago
g0t mi1k 61f2913e70 Change directory as soon as possible 2 months ago
g0t mi1k 789854a921 Add error handling when trying to create folder 2 months ago
g0t mi1k bd5b40620f Show full path of output file 2 months ago
g0t mi1k 5dbdcad8ed Add comments 2 months ago
g0t mi1k 4e4382e8c1 Sync preseed files 2 months ago
g0t mi1k fb95194293 Consistency: tabs to spaces 2 months ago
g0t mi1k 26efadcc71 Refresh live profile 2 months ago
g0t mi1k 530b22106b Prefix desktop to variant
Tool metapackages
2 months ago
g0t mi1k cf029a87c9 Clean up ignored 2 months ago
g0t mi1k 2d05f2b85b Drop --salt 2 months ago
g0t mi1k 2a549aa31a Split simple-cdd/debian-cd & live-build
## Live
`--live` = kali-live (previouly live-build-config)
<https://gitlab.com/kalilinux/build-scripts/kali-live>
Uses live-build

## Installer
`--installer` = kali-installer
<https://gitlab.com/kalilinux/build-scripts/kali-installer>
Uses simple-cdd (which is a wrapper for debian-cd)
2 months ago
Arnaud Rebillout 796bb62679
Configure default terminal according to the kali desktop package installed
This is necessary in case more than one terminal is installed, and they
both have the same alternative priority.

For example, while installing all packages at once, sometimes apt will
resolve a dependency "x-terminal-emulator" to one of the many packages
that provide it, for example "zutty". And then it will also install the
terminal listed in the "kali-desktop-${desktop}" metapackage that is
selected, eg. "qterminal" for "kali-desktop-xfce".

Both zutty and qterminal have a alternative priority of 40 at the
moment, so if zutty gets unpacked first, it will have precendence and be
the default terminal.

It's a long-standing issue. By the past, We tried to make sure that the
default desktop terminal is installed first, by listing it early in the
dependencies of the "kali-desktop-{desktop}" metapackage, and it kind of
works with the debian-installer, but it was hard to make it work (we had
to do some changes in tasksel), and it's still brittle as it relies on
apt's dependency solving, which is apt's internal sauce and might change
(hint, apt will get a new solver soon, cf [1]).

As it turns out, it doesn't work for the live iso, somehow we still get
zutty taking precedence over qterminal, I didn't check why, it probably
has to do with how live-build constructs the apt command-line in order
to install everything.

In any case: I think our approach so far didn't work, so with this
commit, we take another approach: we set the default terminal from the
finish-install script, for both the installer iso and the live iso. That
should solve the issue for good.

[1]: https://blog.jak-linux.org/2024/05/14/solver3/
8 months ago
Arnaud Rebillout 7d666c4f78
Add a function require_package to factorize code 9 months ago
Arnaud Rebillout 1834c9fcb0
Bump live-build requirement 9 months ago
Arnaud Rebillout 3499b2f3fb
Add eatmydata to offline.downloads
This should fix:

    in-target: E: Unable to locate package eatmydata
    eatmydata-udeb/eatmydata-install: error: unable to find /usr/bin/eatmydata after installing the eatmydata package

Cf. 31fb818dec
10 months ago
Arnaud Rebillout 50779f66db
Add espeakup to the list of offline packages
At the moment it's missing, leading to:

    finish-install: info: Running /usr/lib/finish-install.d/06espeakup
    [...]
    in-target: E: Unable to locate package espeakup
10 months ago
Arnaud Rebillout cdca823618
Add console-data for the live image
- https://bugs.kali.org/view.php?id=8741
- https://bugs.debian.org/1070679
11 months ago
Arszilla e4b6f567aa
Update .gitignore because wget-log was not included 1 year ago
Arnaud Rebillout 81bd738d0c Merge branch 'master' into 'master'
Add missing files to .gitignore

See merge request kalilinux/build-scripts/live-build-config!38
1 year ago
Arszilla 08ae4d4b9f
Add missing files to .gitignore 1 year ago
g0t mi1k 5faa0da23a Merge branch 'quote-args-in-debug-logs' into 'master'
Quote arguments where needs be, in debug logs

See merge request kalilinux/build-scripts/live-build-config!37
1 year ago
Arnaud Rebillout 56873621bd
Quote arguments where needs be, in debug logs
Before, looks like that:

    RUNNING: build-simple-cdd --verbose --debug --force-root
    --conf simple-cdd.conf --dist kali-rolling
    --debian-mirror http://kali.download/kali/
    --profiles kali offline
    --auto-profiles kali offline

After, looks like that:

    RUNNING: build-simple-cdd --verbose --debug --force-root
    --conf simple-cdd.conf --dist kali-rolling
    --debian-mirror http://kali.download/kali/
    --profiles 'kali offline'
    --auto-profiles 'kali offline'
1 year ago
Arnaud Rebillout 56fb4a09c3 Merge branch 'misc' into 'master'
Miscellaneous consistencies

See merge request kalilinux/build-scripts/live-build-config!36
1 year ago
Arnaud Rebillout 84891983b0 Merge branch 'kali.download' into 'master'
Simple-CDD: Switch to kali.download as default mirror

See merge request kalilinux/build-scripts/live-build-config!34
1 year ago
Ben Wilson ae9b552efd
Misc formatting 1 year ago
Ben Wilson 0a814e13a7
Simple-CDD: consistency with other settings 1 year ago
Ben Wilson 42f2e223d8
Simple-CDD: fix typo 1 year ago
Ben Wilson fc25ab4848
Simple-CDD: Switch to kali.download as default mirror 1 year ago
Daniel Ruiz de Alegría 474fa5f39a
Fix optimized png boot background not working 1 year ago
Daniel Ruiz de Alegría 3118f95975
Last tweaks to boot menu background 1 year ago
Arnaud Rebillout 96a7dee687
Bump live-build requirement
With this version, arm firmware are excluded from x86 isos, and the
other way round. In practice, it means that raspi-firmware won't be
installed on amd64 isos, and that's something we need.
1 year ago
Daniel Ruiz de Alegría 196e624229
Add bottom black gradient to boot background 1 year ago
Daniel Ruiz de Alegría cb86d249bf
Resize boot image 1 year ago
Daniel Ruiz de Alegría 651911def5
Optimize boot menu background 1 year ago