diff --git a/.gitignore b/.gitignore index 06cf653..e86bd75 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,12 @@ cache +chroot +binary +.build +binary.modified_timestamps +chroot.files +chroot.packages.install +chroot.packages.live +live-image-amd64.contents +live-image-amd64.files +live-image-amd64.hybrid.iso +live-image-amd64.packages diff --git a/README.md b/README.md index 2b756f3..91e13f7 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,8 @@ freedom! +## Usage + + lb config --debian-installer live + lb build diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..40e799f --- /dev/null +++ b/build.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +rm config/bootstrap +lb clean +lb config --distribution trixie --archive-areas "main contrib non-free-firmware" --debian-installer live +lb build + diff --git a/config/binary b/config/binary index 45d97a4..7de139b 100644 --- a/config/binary +++ b/config/binary @@ -28,7 +28,7 @@ LB_BOOTLOADER_EFI="grub-efi" LB_BOOTLOADERS="" # Set checksums -LB_CHECKSUMS="sha256" +LB_CHECKSUMS="sha256 md5" # Set compression LB_COMPRESSION="none" @@ -50,10 +50,10 @@ LB_ZSYNC="false" LB_BUILD_WITH_CHROOT="true" # Set debian-installer -LB_DEBIAN_INSTALLER="none" +LB_DEBIAN_INSTALLER="live" # Set debian-installer suite -LB_DEBIAN_INSTALLER_DISTRIBUTION="testing" +LB_DEBIAN_INSTALLER_DISTRIBUTION="trixie" # Set debian-installer preseed filename/url LB_DEBIAN_INSTALLER_PRESEEDFILE="" @@ -80,7 +80,7 @@ LB_ISO_PREPARER="live-build @LB_VERSION@; https://salsa.debian.org/live-team/liv LB_ISO_PUBLISHER="Debian Live project; https://wiki.debian.org/DebianLive; debian-live@lists.debian.org" # Set iso volume (max 32 chars) -LB_ISO_VOLUME="Debian testing @ISOVOLUME_TS@" +LB_ISO_VOLUME="Debian trixie @ISOVOLUME_TS@" # Set jffs2 eraseblock size LB_JFFS2_ERASEBLOCK="" @@ -89,7 +89,7 @@ LB_JFFS2_ERASEBLOCK="" LB_MEMTEST="none" # Set loadlin -LB_LOADLIN="false" +LB_LOADLIN="true" # Set win32-loader LB_WIN32_LOADER="false" diff --git a/config/bootstrap b/config/bootstrap index 52b5c28..e17ffca 100644 --- a/config/bootstrap +++ b/config/bootstrap @@ -4,31 +4,31 @@ LB_ARCHITECTURE="amd64" # Select distribution to use -LB_DISTRIBUTION="testing" +LB_DISTRIBUTION="trixie" # Select parent distribution to use LB_PARENT_DISTRIBUTION="" # Select distribution to use in the chroot -LB_DISTRIBUTION_CHROOT="testing" +LB_DISTRIBUTION_CHROOT="trixie" # Select parent distribution to use in the chroot -LB_PARENT_DISTRIBUTION_CHROOT="testing" +LB_PARENT_DISTRIBUTION_CHROOT="trixie" # Select distribution to use in the final image -LB_DISTRIBUTION_BINARY="testing" +LB_DISTRIBUTION_BINARY="trixie" # Select parent distribution to use in the final image -LB_PARENT_DISTRIBUTION_BINARY="testing" +LB_PARENT_DISTRIBUTION_BINARY="trixie" # Select parent distribution for debian-installer to use -LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION="testing" +LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION="trixie" # Select archive areas to use -LB_ARCHIVE_AREAS="main" +LB_ARCHIVE_AREAS="main contrib non-free-firmware" # Select parent archive areas to use -LB_PARENT_ARCHIVE_AREAS="main" +LB_PARENT_ARCHIVE_AREAS="main contrib non-free-firmware" # Set parent mirror to bootstrap from LB_PARENT_MIRROR_BOOTSTRAP="http://deb.debian.org/debian/" diff --git a/config/config/bootstrap b/config/config/bootstrap new file mode 100644 index 0000000..2e432a8 --- /dev/null +++ b/config/config/bootstrap @@ -0,0 +1,76 @@ +# config/bootstrap - options for live-build(7), bootstrap stage + +# Select architecture to use +LB_ARCHITECTURE="amd64" + +# Select distribution to use +LB_DISTRIBUTION="testing" + +# Select parent distribution to use +LB_PARENT_DISTRIBUTION="" + +# Select distribution to use in the chroot +LB_DISTRIBUTION_CHROOT="testing" + +# Select parent distribution to use in the chroot +LB_PARENT_DISTRIBUTION_CHROOT="testing" + +# Select distribution to use in the final image +LB_DISTRIBUTION_BINARY="testing" + +# Select parent distribution to use in the final image +LB_PARENT_DISTRIBUTION_BINARY="testing" + +# Select parent distribution for debian-installer to use +LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION="" + +# Select archive areas to use +LB_ARCHIVE_AREAS="main" + +# Select parent archive areas to use +LB_PARENT_ARCHIVE_AREAS="main" + +# Set parent mirror to bootstrap from +LB_PARENT_MIRROR_BOOTSTRAP="http://deb.debian.org/debian/" + +# Set parent mirror to fetch packages from +LB_PARENT_MIRROR_CHROOT="http://deb.debian.org/debian/" + +# Set security parent mirror to fetch packages from +LB_PARENT_MIRROR_CHROOT_SECURITY="http://security.debian.org/" + +# Set parent mirror which ends up in the image +LB_PARENT_MIRROR_BINARY="http://deb.debian.org/debian/" + +# Set security parent mirror which ends up in the image +LB_PARENT_MIRROR_BINARY_SECURITY="http://security.debian.org/" + +# Set debian-installer parent mirror +LB_PARENT_MIRROR_DEBIAN_INSTALLER="http://deb.debian.org/debian/" + +# Set mirror to bootstrap from +LB_MIRROR_BOOTSTRAP="http://deb.debian.org/debian/" + +# Set mirror to fetch packages from +LB_MIRROR_CHROOT="http://deb.debian.org/debian/" + +# Set security mirror to fetch packages from +LB_MIRROR_CHROOT_SECURITY="http://security.debian.org/" + +# Set mirror which ends up in the image +LB_MIRROR_BINARY="http://deb.debian.org/debian/" + +# Set security mirror which ends up in the image +LB_MIRROR_BINARY_SECURITY="http://security.debian.org/" + +# Set debian-installer mirror +LB_MIRROR_DEBIAN_INSTALLER="http://deb.debian.org/debian/" + +# Set architectures to use foreign bootstrap +LB_BOOTSTRAP_QEMU_ARCHITECTURE="" + +# Set packages to exclude during foreign bootstrap +LB_BOOTSTRAP_QEMU_EXCLUDE="" + +# Set static qemu binary for foreign bootstrap +LB_BOOTSTRAP_QEMU_STATIC="" diff --git a/config/config/common b/config/config/common new file mode 100644 index 0000000..ed6874c --- /dev/null +++ b/config/config/common @@ -0,0 +1,102 @@ +# config/common - common options for live-build(7) + +# Version of live-build used to build config (config format version) +LB_CONFIGURATION_VERSION="20250505+deb13u1" + +# Set package manager +LB_APT="apt" + +# Set proxy for HTTP connections +LB_APT_HTTP_PROXY="" + +# Set apt/aptitude pipeline depth +LB_APT_PIPELINE="" + +# Set apt/aptitude recommends +LB_APT_RECOMMENDS="true" + +# Set apt/aptitude security +LB_APT_SECURE="true" + +# Set apt/aptitude source entries in sources.list +LB_APT_SOURCE_ARCHIVES="true" + +# Control cache +LB_CACHE="true" + +# Control if downloaded package indices should be cached +LB_CACHE_INDICES="false" + +# Control if downloaded packages files should be cached +LB_CACHE_PACKAGES="true" + +# Control if completed stages should be cached +LB_CACHE_STAGES="bootstrap" + +# Set debconf(1) frontend to use +LB_DEBCONF_FRONTEND="noninteractive" + +# Set debconf(1) priority to use +LB_DEBCONF_PRIORITY="critical" + +# Set initramfs hook +LB_INITRAMFS="live-boot" + +# Set initramfs compression +LB_INITRAMFS_COMPRESSION="gzip" + +# Set init system +LB_INITSYSTEM="systemd" + +# Set distribution mode +LB_MODE="debian" + +# Set system type +LB_SYSTEM="live" + +# Set base name of the image +LB_IMAGE_NAME="live-image" + +# Set options to use with apt +APT_OPTIONS="--yes -o Acquire::Retries=5" + +# Set options to use with aptitude +APTITUDE_OPTIONS="--assume-yes -o Acquire::Retries=5" + +# Set options to use with debootstrap +DEBOOTSTRAP_OPTIONS="" + +# Set script to use with debootstrap +DEBOOTSTRAP_SCRIPT="" + +# Set options to use with gzip +GZIP_OPTIONS="-6 --rsyncable" + +# Enable UTC timestamps +LB_UTC_TIME="false" + +# live-build options + +# Enable breakpoints +# If set here, overrides the command line option +#_BREAKPOINTS="false" + +# Enable debug +# If set here, overrides the command line option +#_DEBUG="false" + +# Enable color +# If set here, overrides the command line option +#_COLOR="auto" + +# Enable force +# If set here, overrides the command line option +#_FORCE="false" + +# Enable quiet +# If set here, overrides the command line option +#_QUIET="false" + +# Enable verbose +# If set here, overrides the command line option +#_VERBOSE="false" diff --git a/config/config/hooks/live/0010-disable-kexec-tools.hook.chroot b/config/config/hooks/live/0010-disable-kexec-tools.hook.chroot new file mode 120000 index 0000000..996f766 --- /dev/null +++ b/config/config/hooks/live/0010-disable-kexec-tools.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/live/0010-disable-kexec-tools.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/live/0050-disable-sysvinit-tmpfs.hook.chroot b/config/config/hooks/live/0050-disable-sysvinit-tmpfs.hook.chroot new file mode 120000 index 0000000..5ddf090 --- /dev/null +++ b/config/config/hooks/live/0050-disable-sysvinit-tmpfs.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/live/0050-disable-sysvinit-tmpfs.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/1000-create-mtab-symlink.hook.chroot b/config/config/hooks/normal/1000-create-mtab-symlink.hook.chroot new file mode 120000 index 0000000..55d1085 --- /dev/null +++ b/config/config/hooks/normal/1000-create-mtab-symlink.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/1000-create-mtab-symlink.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/1010-enable-cryptsetup.hook.chroot b/config/config/hooks/normal/1010-enable-cryptsetup.hook.chroot new file mode 120000 index 0000000..2d0ce43 --- /dev/null +++ b/config/config/hooks/normal/1010-enable-cryptsetup.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/1010-enable-cryptsetup.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/1020-create-locales-files.hook.chroot b/config/config/hooks/normal/1020-create-locales-files.hook.chroot new file mode 120000 index 0000000..f08fbf6 --- /dev/null +++ b/config/config/hooks/normal/1020-create-locales-files.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/1020-create-locales-files.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/5000-update-apt-file-cache.hook.chroot b/config/config/hooks/normal/5000-update-apt-file-cache.hook.chroot new file mode 120000 index 0000000..78ae30f --- /dev/null +++ b/config/config/hooks/normal/5000-update-apt-file-cache.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/5000-update-apt-file-cache.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/5010-update-apt-xapian-index.hook.chroot b/config/config/hooks/normal/5010-update-apt-xapian-index.hook.chroot new file mode 120000 index 0000000..29fc799 --- /dev/null +++ b/config/config/hooks/normal/5010-update-apt-xapian-index.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/5010-update-apt-xapian-index.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/5020-update-glx-alternative.hook.chroot b/config/config/hooks/normal/5020-update-glx-alternative.hook.chroot new file mode 120000 index 0000000..397d923 --- /dev/null +++ b/config/config/hooks/normal/5020-update-glx-alternative.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/5020-update-glx-alternative.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/5030-update-plocate-database.hook.chroot b/config/config/hooks/normal/5030-update-plocate-database.hook.chroot new file mode 120000 index 0000000..c8303b6 --- /dev/null +++ b/config/config/hooks/normal/5030-update-plocate-database.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/5030-update-plocate-database.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/5040-update-nvidia-alternative.hook.chroot b/config/config/hooks/normal/5040-update-nvidia-alternative.hook.chroot new file mode 120000 index 0000000..706bd9e --- /dev/null +++ b/config/config/hooks/normal/5040-update-nvidia-alternative.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/5040-update-nvidia-alternative.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/5050-dracut.hook.chroot b/config/config/hooks/normal/5050-dracut.hook.chroot new file mode 120000 index 0000000..e1a120f --- /dev/null +++ b/config/config/hooks/normal/5050-dracut.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/5050-dracut.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/8000-remove-adjtime-configuration.hook.chroot b/config/config/hooks/normal/8000-remove-adjtime-configuration.hook.chroot new file mode 120000 index 0000000..e11d36f --- /dev/null +++ b/config/config/hooks/normal/8000-remove-adjtime-configuration.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/8000-remove-adjtime-configuration.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/8010-remove-backup-files.hook.chroot b/config/config/hooks/normal/8010-remove-backup-files.hook.chroot new file mode 120000 index 0000000..91eac7d --- /dev/null +++ b/config/config/hooks/normal/8010-remove-backup-files.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/8010-remove-backup-files.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/8020-remove-dbus-machine-id.hook.chroot b/config/config/hooks/normal/8020-remove-dbus-machine-id.hook.chroot new file mode 120000 index 0000000..348dd26 --- /dev/null +++ b/config/config/hooks/normal/8020-remove-dbus-machine-id.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/8020-remove-dbus-machine-id.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/8030-truncate-log-files.hook.chroot b/config/config/hooks/normal/8030-truncate-log-files.hook.chroot new file mode 120000 index 0000000..57a3dc1 --- /dev/null +++ b/config/config/hooks/normal/8030-truncate-log-files.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/8030-truncate-log-files.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/8040-remove-mdadm-configuration.hook.chroot b/config/config/hooks/normal/8040-remove-mdadm-configuration.hook.chroot new file mode 120000 index 0000000..0182be1 --- /dev/null +++ b/config/config/hooks/normal/8040-remove-mdadm-configuration.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/8040-remove-mdadm-configuration.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/8050-remove-openssh-server-host-keys.hook.chroot b/config/config/hooks/normal/8050-remove-openssh-server-host-keys.hook.chroot new file mode 120000 index 0000000..818772a --- /dev/null +++ b/config/config/hooks/normal/8050-remove-openssh-server-host-keys.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/8050-remove-openssh-server-host-keys.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/8060-remove-systemd-machine-id.hook.chroot b/config/config/hooks/normal/8060-remove-systemd-machine-id.hook.chroot new file mode 120000 index 0000000..a130d14 --- /dev/null +++ b/config/config/hooks/normal/8060-remove-systemd-machine-id.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/8060-remove-systemd-machine-id.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/8070-remove-temporary-files.hook.chroot b/config/config/hooks/normal/8070-remove-temporary-files.hook.chroot new file mode 120000 index 0000000..558c6f5 --- /dev/null +++ b/config/config/hooks/normal/8070-remove-temporary-files.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/8070-remove-temporary-files.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/8080-reproducible-glibc.hook.chroot b/config/config/hooks/normal/8080-reproducible-glibc.hook.chroot new file mode 120000 index 0000000..ddf3b9f --- /dev/null +++ b/config/config/hooks/normal/8080-reproducible-glibc.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/8080-reproducible-glibc.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/8090-remove-ssl-cert-snakeoil.hook.chroot b/config/config/hooks/normal/8090-remove-ssl-cert-snakeoil.hook.chroot new file mode 120000 index 0000000..ff98622 --- /dev/null +++ b/config/config/hooks/normal/8090-remove-ssl-cert-snakeoil.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/8090-remove-ssl-cert-snakeoil.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/8100-remove-udev-persistent-cd-rules.hook.chroot b/config/config/hooks/normal/8100-remove-udev-persistent-cd-rules.hook.chroot new file mode 120000 index 0000000..e761a72 --- /dev/null +++ b/config/config/hooks/normal/8100-remove-udev-persistent-cd-rules.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/8100-remove-udev-persistent-cd-rules.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/8110-remove-udev-persistent-net-rules.hook.chroot b/config/config/hooks/normal/8110-remove-udev-persistent-net-rules.hook.chroot new file mode 120000 index 0000000..d0ca0a5 --- /dev/null +++ b/config/config/hooks/normal/8110-remove-udev-persistent-net-rules.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/8110-remove-udev-persistent-net-rules.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/9000-remove-gnome-icon-cache.hook.chroot b/config/config/hooks/normal/9000-remove-gnome-icon-cache.hook.chroot new file mode 120000 index 0000000..d48e646 --- /dev/null +++ b/config/config/hooks/normal/9000-remove-gnome-icon-cache.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/9000-remove-gnome-icon-cache.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/9010-remove-python-pyc.hook.chroot b/config/config/hooks/normal/9010-remove-python-pyc.hook.chroot new file mode 120000 index 0000000..9c1f673 --- /dev/null +++ b/config/config/hooks/normal/9010-remove-python-pyc.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/9010-remove-python-pyc.hook.chroot \ No newline at end of file diff --git a/config/config/hooks/normal/9020-remove-man-cache.hook.chroot b/config/config/hooks/normal/9020-remove-man-cache.hook.chroot new file mode 120000 index 0000000..b0eff9b --- /dev/null +++ b/config/config/hooks/normal/9020-remove-man-cache.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/9020-remove-man-cache.hook.chroot \ No newline at end of file diff --git a/config/config/package-lists/live.list.chroot b/config/config/package-lists/live.list.chroot new file mode 100644 index 0000000..ab91c73 --- /dev/null +++ b/config/config/package-lists/live.list.chroot @@ -0,0 +1,4 @@ +live-boot +live-config +live-config-systemd +systemd-sysv diff --git a/config/config/source b/config/config/source new file mode 100644 index 0000000..f8c29a1 --- /dev/null +++ b/config/config/source @@ -0,0 +1,7 @@ +# config/source - options for live-build(7), source stage + +# Set source option +LB_SOURCE="false" + +# Set image type +LB_SOURCE_IMAGES="tar" diff --git a/config/includes.chroot_after_packages/etc/dconf/db/local.d/00-background b/config/includes.chroot_after_packages/etc/dconf/db/local.d/00-background new file mode 100644 index 0000000..a4da9db --- /dev/null +++ b/config/includes.chroot_after_packages/etc/dconf/db/local.d/00-background @@ -0,0 +1,14 @@ +# Specify the dconf path +[org/gnome/desktop/background] + +# Specify the path to the desktop background image file +picture-uri='file://~/background/horse.png' + +# Specify one of the rendering options for the background image: +picture-options='scaled' + +# Specify the left or top color when drawing gradients, or the solid color +primary-color='FF00FF' + +# Specify the right or bottom color when drawing gradients +secondary-color='00FFFF' diff --git a/config/includes.chroot_after_packages/etc/skel/horse.png b/config/includes.chroot_after_packages/etc/skel/horse.png new file mode 100644 index 0000000..b797b1e Binary files /dev/null and b/config/includes.chroot_after_packages/etc/skel/horse.png differ