From 2a549aa31a5b8a71bcc8c610777e11d11cec4daf Mon Sep 17 00:00:00 2001 From: g0t mi1k Date: Sun, 19 Jan 2025 15:39:19 +0000 Subject: [PATCH 01/16] Split simple-cdd/debian-cd & live-build ## Live `--live` = kali-live (previouly live-build-config) Uses live-build ## Installer `--installer` = kali-installer Uses simple-cdd (which is a wrapper for debian-cd) --- .getopt.sh | 4 +- .gitignore | 6 - README.md | 82 +++++++- build.sh | 185 ++---------------- build_all.sh | 1 - .../common/bootloaders/grub-pc/grub-theme.in | 95 --------- .../includes.installer/kali-finish-install | 2 +- kali-config/installer-default/packages | 23 --- kali-config/installer-everything/packages | 17 -- kali-config/installer-netinst/packages | 9 - kali-config/installer-purple/packages | 21 -- simple-cdd/disc-end-hook | 68 ------- simple-cdd/local_packages/.empty | 0 simple-cdd/profiles/default.downloads | 1 - simple-cdd/profiles/default.excludes | 1 - simple-cdd/profiles/default.packages | 1 - simple-cdd/profiles/default.preseed | 3 - simple-cdd/profiles/default.udebs | 1 - simple-cdd/profiles/kali-purple.postinst | 45 ----- simple-cdd/profiles/kali.postinst | 1 - simple-cdd/profiles/kali.preseed | 1 - simple-cdd/profiles/offline.downloads | 18 -- simple-cdd/profiles/offline.preseed | 3 - simple-cdd/simple-cdd.conf | 118 ----------- 24 files changed, 102 insertions(+), 604 deletions(-) delete mode 120000 build_all.sh delete mode 100644 kali-config/common/bootloaders/grub-pc/grub-theme.in delete mode 100644 kali-config/installer-default/packages delete mode 100644 kali-config/installer-everything/packages delete mode 100644 kali-config/installer-netinst/packages delete mode 100644 kali-config/installer-purple/packages delete mode 100755 simple-cdd/disc-end-hook delete mode 100644 simple-cdd/local_packages/.empty delete mode 120000 simple-cdd/profiles/default.downloads delete mode 120000 simple-cdd/profiles/default.excludes delete mode 100644 simple-cdd/profiles/default.packages delete mode 100644 simple-cdd/profiles/default.preseed delete mode 100644 simple-cdd/profiles/default.udebs delete mode 100755 simple-cdd/profiles/kali-purple.postinst delete mode 120000 simple-cdd/profiles/kali.postinst delete mode 120000 simple-cdd/profiles/kali.preseed delete mode 100644 simple-cdd/profiles/offline.downloads delete mode 100644 simple-cdd/profiles/offline.preseed delete mode 100644 simple-cdd/simple-cdd.conf diff --git a/.getopt.sh b/.getopt.sh index 96eedc6..6ef11f7 100644 --- a/.getopt.sh +++ b/.getopt.sh @@ -6,8 +6,6 @@ # -D | --debug # -s | --salt # -h | --help -# --installer -# --live # --variant # --version # --subdir @@ -16,4 +14,4 @@ # --clean BUILD_OPTS_SHORT="d:pa:vDsh" -BUILD_OPTS_LONG="distribution:,proposed-updates,arch:,verbose,debug,salt,installer,live,variant:,version:,subdir:,get-image-path,no-clean,clean,help" +BUILD_OPTS_LONG="distribution:,proposed-updates,arch:,verbose,debug,salt,variant:,version:,subdir:,get-image-path,no-clean,clean,help" diff --git a/.gitignore b/.gitignore index 94591ef..d93d35c 100644 --- a/.gitignore +++ b/.gitignore @@ -7,8 +7,6 @@ chroot/* config/* images local/* -simple-cdd/images/* -simple-cdd/tmp/* # Files .mirror @@ -27,10 +25,6 @@ live-image-*.hybrid.iso.zsync live-image-*.packages wget-log* -# Overwritten due to build.sh -simple-cdd/debian-cd/* -simple-cdd/profiles/kali.downloads - # Miscellaneous .lock .stage diff --git a/README.md b/README.md index 9cf42dc..45e2e51 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,83 @@ -# live-build configuration for Kali ISO images +# Kali-Live Build-Scripts + +_`live-build` configuration for Kali ISO images._ + +These are the same [build-scripts](https://gitlab.com/kalilinux/build-scripts) that the [Kali team](https://www.kali.org/) uses to generate the official Kali Linux base images, found here: [kali.org/get-kali/](https://www.kali.org/get-kali/). + +_Build your Kali Linux image today!_ + +- - - + +These images can be used to live boot into Kali, from such a USB/CD/DVD/sdCard, as well offers a basic installation. For more customization during setup, see [kali-installer](https://gitlab.com/kalilinux/build-scripts/kali-installer). + +- [kali-installer](https://gitlab.com/kalilinux/build-scripts/kali-installer) uses [Simple-CDD](https://wiki.debian.org/Simple-CDD) _(which is a wrapper for [debian-cd](https://wiki.debian.org/debian-cd))_ +- [kali-live](https://gitlab.com/kalilinux/build-scripts/kali-live) uses [live-build](https://live-team.pages.debian.net/live-manual/html/live-manual/index.en.html) + +- - - Have a look at [Live Build a Custom Kali ISO](https://www.kali.org/docs/development/live-build-a-custom-kali-iso/) for explanations on how to use this repository. + +There are also other [code examples of live-build](https://gitlab.com/kalilinux/recipes/live-build-config-examples), as well as [code examples for pre-seed to automate/unattended installation](https://gitlab.com/kalilinux/recipes/kali-preseed-examples). + +- - - + +## Help + +```console +$ ./build.sh --help +Usage: ./build.sh [