From dec36a71caaadb019d539bca0918ca0fe4af0d68 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Sat, 13 Apr 2019 19:03:16 +0000 Subject: [PATCH] added config files --- .../live/0010-disable-kexec-tools.hook.chroot | 1 + .../0050-disable-sysvinit-tmpfs.hook.chroot | 1 + .../0020-create-mtab-symlink.hook.chroot | 1 + .../normal/0030-enable-cryptsetup.hook.chroot | 1 + .../0040-create-locales-files.hook.chroot | 1 + ...0-remove-adjtime-configuration.hook.chroot | 1 + .../0110-remove-backup-files.hook.chroot | 1 + .../0120-remove-dbus-machine-id.hook.chroot | 1 + .../0130-remove-gnome-icon-cache.hook.chroot | 1 + .../normal/0140-remove-log-files.hook.chroot | 1 + ...150-remove-mdadm-configuration.hook.chroot | 1 + ...emove-openssh-server-host-keys.hook.chroot | 1 + .../normal/0170-remove-python-py.hook.chroot | 1 + ...0180-remove-systemd-machine-id.hook.chroot | 1 + .../0190-remove-temporary-files.hook.chroot | 1 + .../0195-remove-ssl-cert-snakeoil.hook.chroot | 1 + ...emove-udev-persistent-cd-rules.hook.chroot | 1 + ...move-udev-persistent-net-rules.hook.chroot | 1 + .../0400-update-apt-file-cache.hook.chroot | 1 + .../0410-update-apt-xapian-index.hook.chroot | 1 + .../0420-update-glx-alternative.hook.chroot | 1 + .../0430-update-mlocate-database.hook.chroot | 1 + ...0440-update-nvidia-alternative.hook.chroot | 1 + files/config/package-lists/live.list.chroot | 3 + templates/config/binary.j2 | 158 ++++++++++++++++++ templates/config/bootstrap.j2 | 73 ++++++++ templates/config/build.j2 | 10 ++ templates/config/chroot.j2 | 37 ++++ templates/config/common.j2 | 119 +++++++++++++ templates/config/source.j2 | 9 + 30 files changed, 432 insertions(+) create mode 120000 files/config/hooks/live/0010-disable-kexec-tools.hook.chroot create mode 120000 files/config/hooks/live/0050-disable-sysvinit-tmpfs.hook.chroot create mode 120000 files/config/hooks/normal/0020-create-mtab-symlink.hook.chroot create mode 120000 files/config/hooks/normal/0030-enable-cryptsetup.hook.chroot create mode 120000 files/config/hooks/normal/0040-create-locales-files.hook.chroot create mode 120000 files/config/hooks/normal/0100-remove-adjtime-configuration.hook.chroot create mode 120000 files/config/hooks/normal/0110-remove-backup-files.hook.chroot create mode 120000 files/config/hooks/normal/0120-remove-dbus-machine-id.hook.chroot create mode 120000 files/config/hooks/normal/0130-remove-gnome-icon-cache.hook.chroot create mode 120000 files/config/hooks/normal/0140-remove-log-files.hook.chroot create mode 120000 files/config/hooks/normal/0150-remove-mdadm-configuration.hook.chroot create mode 120000 files/config/hooks/normal/0160-remove-openssh-server-host-keys.hook.chroot create mode 120000 files/config/hooks/normal/0170-remove-python-py.hook.chroot create mode 120000 files/config/hooks/normal/0180-remove-systemd-machine-id.hook.chroot create mode 120000 files/config/hooks/normal/0190-remove-temporary-files.hook.chroot create mode 120000 files/config/hooks/normal/0195-remove-ssl-cert-snakeoil.hook.chroot create mode 120000 files/config/hooks/normal/0200-remove-udev-persistent-cd-rules.hook.chroot create mode 120000 files/config/hooks/normal/0300-remove-udev-persistent-net-rules.hook.chroot create mode 120000 files/config/hooks/normal/0400-update-apt-file-cache.hook.chroot create mode 120000 files/config/hooks/normal/0410-update-apt-xapian-index.hook.chroot create mode 120000 files/config/hooks/normal/0420-update-glx-alternative.hook.chroot create mode 120000 files/config/hooks/normal/0430-update-mlocate-database.hook.chroot create mode 120000 files/config/hooks/normal/0440-update-nvidia-alternative.hook.chroot create mode 100644 files/config/package-lists/live.list.chroot create mode 100644 templates/config/binary.j2 create mode 100644 templates/config/bootstrap.j2 create mode 100644 templates/config/build.j2 create mode 100644 templates/config/chroot.j2 create mode 100644 templates/config/common.j2 create mode 100644 templates/config/source.j2 diff --git a/files/config/hooks/live/0010-disable-kexec-tools.hook.chroot b/files/config/hooks/live/0010-disable-kexec-tools.hook.chroot new file mode 120000 index 0000000..996f766 --- /dev/null +++ b/files/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/files/config/hooks/live/0050-disable-sysvinit-tmpfs.hook.chroot b/files/config/hooks/live/0050-disable-sysvinit-tmpfs.hook.chroot new file mode 120000 index 0000000..5ddf090 --- /dev/null +++ b/files/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/files/config/hooks/normal/0020-create-mtab-symlink.hook.chroot b/files/config/hooks/normal/0020-create-mtab-symlink.hook.chroot new file mode 120000 index 0000000..58123fc --- /dev/null +++ b/files/config/hooks/normal/0020-create-mtab-symlink.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/0020-create-mtab-symlink.hook.chroot \ No newline at end of file diff --git a/files/config/hooks/normal/0030-enable-cryptsetup.hook.chroot b/files/config/hooks/normal/0030-enable-cryptsetup.hook.chroot new file mode 120000 index 0000000..c5ab625 --- /dev/null +++ b/files/config/hooks/normal/0030-enable-cryptsetup.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/0030-enable-cryptsetup.hook.chroot \ No newline at end of file diff --git a/files/config/hooks/normal/0040-create-locales-files.hook.chroot b/files/config/hooks/normal/0040-create-locales-files.hook.chroot new file mode 120000 index 0000000..036e7e0 --- /dev/null +++ b/files/config/hooks/normal/0040-create-locales-files.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/0040-create-locales-files.hook.chroot \ No newline at end of file diff --git a/files/config/hooks/normal/0100-remove-adjtime-configuration.hook.chroot b/files/config/hooks/normal/0100-remove-adjtime-configuration.hook.chroot new file mode 120000 index 0000000..b0ccdb6 --- /dev/null +++ b/files/config/hooks/normal/0100-remove-adjtime-configuration.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/0100-remove-adjtime-configuration.hook.chroot \ No newline at end of file diff --git a/files/config/hooks/normal/0110-remove-backup-files.hook.chroot b/files/config/hooks/normal/0110-remove-backup-files.hook.chroot new file mode 120000 index 0000000..8b68c5c --- /dev/null +++ b/files/config/hooks/normal/0110-remove-backup-files.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/0110-remove-backup-files.hook.chroot \ No newline at end of file diff --git a/files/config/hooks/normal/0120-remove-dbus-machine-id.hook.chroot b/files/config/hooks/normal/0120-remove-dbus-machine-id.hook.chroot new file mode 120000 index 0000000..4d55b27 --- /dev/null +++ b/files/config/hooks/normal/0120-remove-dbus-machine-id.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/0120-remove-dbus-machine-id.hook.chroot \ No newline at end of file diff --git a/files/config/hooks/normal/0130-remove-gnome-icon-cache.hook.chroot b/files/config/hooks/normal/0130-remove-gnome-icon-cache.hook.chroot new file mode 120000 index 0000000..54f6a9b --- /dev/null +++ b/files/config/hooks/normal/0130-remove-gnome-icon-cache.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/0130-remove-gnome-icon-cache.hook.chroot \ No newline at end of file diff --git a/files/config/hooks/normal/0140-remove-log-files.hook.chroot b/files/config/hooks/normal/0140-remove-log-files.hook.chroot new file mode 120000 index 0000000..2b99cec --- /dev/null +++ b/files/config/hooks/normal/0140-remove-log-files.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/0140-remove-log-files.hook.chroot \ No newline at end of file diff --git a/files/config/hooks/normal/0150-remove-mdadm-configuration.hook.chroot b/files/config/hooks/normal/0150-remove-mdadm-configuration.hook.chroot new file mode 120000 index 0000000..0c3cd2f --- /dev/null +++ b/files/config/hooks/normal/0150-remove-mdadm-configuration.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/0150-remove-mdadm-configuration.hook.chroot \ No newline at end of file diff --git a/files/config/hooks/normal/0160-remove-openssh-server-host-keys.hook.chroot b/files/config/hooks/normal/0160-remove-openssh-server-host-keys.hook.chroot new file mode 120000 index 0000000..e57b8d2 --- /dev/null +++ b/files/config/hooks/normal/0160-remove-openssh-server-host-keys.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/0160-remove-openssh-server-host-keys.hook.chroot \ No newline at end of file diff --git a/files/config/hooks/normal/0170-remove-python-py.hook.chroot b/files/config/hooks/normal/0170-remove-python-py.hook.chroot new file mode 120000 index 0000000..858a942 --- /dev/null +++ b/files/config/hooks/normal/0170-remove-python-py.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/0170-remove-python-py.hook.chroot \ No newline at end of file diff --git a/files/config/hooks/normal/0180-remove-systemd-machine-id.hook.chroot b/files/config/hooks/normal/0180-remove-systemd-machine-id.hook.chroot new file mode 120000 index 0000000..6cecf66 --- /dev/null +++ b/files/config/hooks/normal/0180-remove-systemd-machine-id.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/0180-remove-systemd-machine-id.hook.chroot \ No newline at end of file diff --git a/files/config/hooks/normal/0190-remove-temporary-files.hook.chroot b/files/config/hooks/normal/0190-remove-temporary-files.hook.chroot new file mode 120000 index 0000000..ada76d9 --- /dev/null +++ b/files/config/hooks/normal/0190-remove-temporary-files.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/0190-remove-temporary-files.hook.chroot \ No newline at end of file diff --git a/files/config/hooks/normal/0195-remove-ssl-cert-snakeoil.hook.chroot b/files/config/hooks/normal/0195-remove-ssl-cert-snakeoil.hook.chroot new file mode 120000 index 0000000..9fc0723 --- /dev/null +++ b/files/config/hooks/normal/0195-remove-ssl-cert-snakeoil.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/0195-remove-ssl-cert-snakeoil.hook.chroot \ No newline at end of file diff --git a/files/config/hooks/normal/0200-remove-udev-persistent-cd-rules.hook.chroot b/files/config/hooks/normal/0200-remove-udev-persistent-cd-rules.hook.chroot new file mode 120000 index 0000000..f893dcc --- /dev/null +++ b/files/config/hooks/normal/0200-remove-udev-persistent-cd-rules.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/0200-remove-udev-persistent-cd-rules.hook.chroot \ No newline at end of file diff --git a/files/config/hooks/normal/0300-remove-udev-persistent-net-rules.hook.chroot b/files/config/hooks/normal/0300-remove-udev-persistent-net-rules.hook.chroot new file mode 120000 index 0000000..a6ee33d --- /dev/null +++ b/files/config/hooks/normal/0300-remove-udev-persistent-net-rules.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/0300-remove-udev-persistent-net-rules.hook.chroot \ No newline at end of file diff --git a/files/config/hooks/normal/0400-update-apt-file-cache.hook.chroot b/files/config/hooks/normal/0400-update-apt-file-cache.hook.chroot new file mode 120000 index 0000000..380fdcf --- /dev/null +++ b/files/config/hooks/normal/0400-update-apt-file-cache.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/0400-update-apt-file-cache.hook.chroot \ No newline at end of file diff --git a/files/config/hooks/normal/0410-update-apt-xapian-index.hook.chroot b/files/config/hooks/normal/0410-update-apt-xapian-index.hook.chroot new file mode 120000 index 0000000..dd7150e --- /dev/null +++ b/files/config/hooks/normal/0410-update-apt-xapian-index.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/0410-update-apt-xapian-index.hook.chroot \ No newline at end of file diff --git a/files/config/hooks/normal/0420-update-glx-alternative.hook.chroot b/files/config/hooks/normal/0420-update-glx-alternative.hook.chroot new file mode 120000 index 0000000..4da25f8 --- /dev/null +++ b/files/config/hooks/normal/0420-update-glx-alternative.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/0420-update-glx-alternative.hook.chroot \ No newline at end of file diff --git a/files/config/hooks/normal/0430-update-mlocate-database.hook.chroot b/files/config/hooks/normal/0430-update-mlocate-database.hook.chroot new file mode 120000 index 0000000..13b49d7 --- /dev/null +++ b/files/config/hooks/normal/0430-update-mlocate-database.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/0430-update-mlocate-database.hook.chroot \ No newline at end of file diff --git a/files/config/hooks/normal/0440-update-nvidia-alternative.hook.chroot b/files/config/hooks/normal/0440-update-nvidia-alternative.hook.chroot new file mode 120000 index 0000000..0a65196 --- /dev/null +++ b/files/config/hooks/normal/0440-update-nvidia-alternative.hook.chroot @@ -0,0 +1 @@ +/usr/share/live/build/hooks/normal/0440-update-nvidia-alternative.hook.chroot \ No newline at end of file diff --git a/files/config/package-lists/live.list.chroot b/files/config/package-lists/live.list.chroot new file mode 100644 index 0000000..1e6ef96 --- /dev/null +++ b/files/config/package-lists/live.list.chroot @@ -0,0 +1,3 @@ +live-boot +live-config +live-config-systemd diff --git a/templates/config/binary.j2 b/templates/config/binary.j2 new file mode 100644 index 0000000..d575efe --- /dev/null +++ b/templates/config/binary.j2 @@ -0,0 +1,158 @@ +# config/binary - options for live-build(7), binary stage + +# $LB_BINARY_FILESYSTEM: set image filesystem +# (Default: fat32) +LB_BINARY_FILESYSTEM="fat32" + +# $LB_APT_INDICES: set apt/aptitude generic indices +# (Default: true) +LB_APT_INDICES="true" + +# $LB_BOOTAPPEND_LIVE: set boot parameters +# (Default: empty) +LB_BOOTAPPEND_LIVE="boot=live components quiet splash" + +# $LB_BOOTAPPEND_INSTALL: set boot parameters +# (Default: empty) +LB_BOOTAPPEND_INSTALL="" + +# $LB_BOOTAPPEND_LIVE_FAILSAFE: set boot parameters +# (Default: empty) +LB_BOOTAPPEND_LIVE_FAILSAFE="boot=live components memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal" + +# $LB_BOOTLOADERS: set bootloaders +# (Default: syslinux,grub-efi) +LB_BOOTLOADERS="syslinux,grub-efi" + +# $LB_CHECKSUMS: set checksums +# (Default: md5) +LB_CHECKSUMS="md5" + +# $LB_COMPRESSION: set compression +# (Default: none) +LB_COMPRESSION="none" + +# $LB_ZSYNC: set zsync +# (Default: true) +LB_ZSYNC="true" + +# ${LB_BUILD_WITH_CHROOT: control if we build binary images chrooted +# (Default: true) +# DO NEVER, *NEVER*, *N*E*V*E*R* SET THIS OPTION to false. +LB_BUILD_WITH_CHROOT="true" + +# $LB_DEBIAN_INSTALLER: set debian-installer +# (Default: false) +LB_DEBIAN_INSTALLER="false" + +# $LB_DEBIAN_INSTALLER_DISTRIBUTION: set debian-installer suite +# (Default: empty) +LB_DEBIAN_INSTALLER_DISTRIBUTION="stretch" + +# $LB_DEBIAN_INSTALLER_PRESEEDFILE: set debian-installer preseed filename/url +# (Default: ) +LB_DEBIAN_INSTALLER_PRESEEDFILE="" + +# $LB_DEBIAN_INSTALLER_GUI: toggle use of GUI debian-installer +# (Default: true) +LB_DEBIAN_INSTALLER_GUI="true" + +# $LB_GRUB_SPLASH: set custom grub splash +# (Default: empty) +LB_GRUB_SPLASH="" + +# $LB_HDD_LABEL: set hdd label +# (Default: DEBIAN_LIVE) +LB_HDD_LABEL="DEBIAN_LIVE" + +# $LB_HDD_SIZE: set hdd filesystem size +# (Default: auto) +LB_HDD_SIZE="auto" + +# $LB_HDD_PARTITION_START: set start of partition for the hdd target for BIOSes that expect a specific boot partition start (e.g. "63s"). If empty, use optimal layout. +# (Default: ) +LB_HDD_PARTITION_START="" + +# $LB_ISO_APPLICATION: set iso author +# (Default: Debian Live) +LB_ISO_APPLICATION="Debian Live" + +# $LB_ISO_PREPARER: set iso preparer +# (Default: live-build $VERSION; http://live-systems.org/devel/live-build) +LB_ISO_PREPARER="live-build $VERSION; http://live-systems.org/devel/live-build" + +# $LB_ISO_PUBLISHER: set iso publisher +# (Default: Live Systems project; http://live-systems.org/; debian-live@lists.debian.org) +LB_ISO_PUBLISHER="Live Systems project; http://live-systems.org/; debian-live@lists.debian.org" + +# $LB_ISO_VOLUME: set iso volume (max 32 chars) +# (Default: Debian stretch $(date +%Y%m%d-%H:%M)) +LB_ISO_VOLUME="Debian stretch $(date +%Y%m%d-%H:%M)" + +# $LB_JFFS2_ERASEBLOCK: set jffs2 eraseblock size +# (Default: unset) +LB_JFFS2_ERASEBLOCK="" + +# $LB_MEMTEST: set memtest +# (Default: none) +LB_MEMTEST="none" + +# $LB_LOADLIN: set loadlin +# (Default: false) +LB_LOADLIN="false" + +# $LB_WIN32_LOADER: set win32-loader +# (Default: false) +LB_WIN32_LOADER="false" + +# $LB_NET_ROOT_FILESYSTEM: set netboot filesystem +# (Default: nfs) +LB_NET_ROOT_FILESYSTEM="nfs" + +# $LB_NET_ROOT_MOUNTOPTIONS: set nfsopts +# (Default: empty) +LB_NET_ROOT_MOUNTOPTIONS="" + +# $LB_NET_ROOT_PATH: set netboot server directory +# (Default: /srv/debian-live) +LB_NET_ROOT_PATH="/srv/debian-live" + +# $LB_NET_ROOT_SERVER: set netboot server address +# (Default: 192.168.1.1) +LB_NET_ROOT_SERVER="192.168.1.1" + +# $LB_NET_COW_FILESYSTEM: set net client cow filesystem +# (Default: nfs) +LB_NET_COW_FILESYSTEM="nfs" + +# $LB_NET_COW_MOUNTOPTIONS: set cow mount options +# (Default: empty) +LB_NET_COW_MOUNTOPTIONS="" + +# $LB_NET_COW_PATH: set cow directory +# (Default: ) +LB_NET_COW_PATH="" + +# $LB_NET_COW_SERVER: set cow server +# (Default: ) +LB_NET_COW_SERVER="" + +# $LB_NET_TARBALL: set net tarball +# (Default: true) +LB_NET_TARBALL="true" + +# $LB_FIRMWARE_BINARY: include firmware packages in debian-installer +# (Default: true) +LB_FIRMWARE_BINARY="true" + +# $LB_FIRMWARE_CHROOT: include firmware packages in debian-installer +# (Default: true) +LB_FIRMWARE_CHROOT="true" + +# $LB_SWAP_FILE_PATH: set swap file path +# (Default: ) +LB_SWAP_FILE_PATH="" + +# $LB_SWAP_FILE_SIZE: set swap file size +# (Default: 512) +LB_SWAP_FILE_SIZE="512" diff --git a/templates/config/bootstrap.j2 b/templates/config/bootstrap.j2 new file mode 100644 index 0000000..7d12d94 --- /dev/null +++ b/templates/config/bootstrap.j2 @@ -0,0 +1,73 @@ +# config/bootstrap - options for live-build(7), bootstrap stage + +# $LB_DISTRIBUTION: select distribution to use +# (Default: stretch) +LB_DISTRIBUTION="stretch" + +# $LB_PARENT_DISTRIBUTION: select parent distribution to use +# (Default: stretch) +LB_PARENT_DISTRIBUTION="stretch" + +# $LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION: select parent distribution for debian-installer to use +# (Default: stretch) +LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION="stretch" + +# $LB_PARENT_MIRROR_BOOTSTRAP: set parent mirror to bootstrap from +# (Default: http://ftp.debian.org/debian/) +LB_PARENT_MIRROR_BOOTSTRAP="http://ftp.debian.org/debian/" + +# $LB_PARENT_MIRROR_CHROOT: set parent mirror to fetch packages from +# (Default: http://ftp.debian.org/debian/) +LB_PARENT_MIRROR_CHROOT="http://ftp.debian.org/debian/" + +# $LB_PARENT_MIRROR_CHROOT_SECURITY: set security parent mirror to fetch packages from +# (Default: http://security.debian.org/) +LB_PARENT_MIRROR_CHROOT_SECURITY="http://security.debian.org/" + +# $LB_PARENT_MIRROR_BINARY: set parent mirror which ends up in the image +# (Default: http://httpredir.debian.org/debian/) +LB_PARENT_MIRROR_BINARY="http://httpredir.debian.org/debian/" + +# $LB_PARENT_MIRROR_BINARY_SECURITY: set security parent mirror which ends up in the image +# (Default: http://security.debian.org/) +LB_PARENT_MIRROR_BINARY_SECURITY="http://security.debian.org/" + +# $LB_PARENT_MIRROR_DEBIAN_INSTALLER: set debian-installer parent mirror +# (Default: http://ftp.debian.org/debian/) +LB_PARENT_MIRROR_DEBIAN_INSTALLER="http://ftp.debian.org/debian/" + +# $LB_MIRROR_BOOTSTRAP: set mirror to bootstrap from +# (Default: http://ftp.debian.org/debian/) +LB_MIRROR_BOOTSTRAP="http://ftp.debian.org/debian/" + +# $LB_MIRROR_CHROOT: set mirror to fetch packages from +# (Default: http://ftp.debian.org/debian/) +LB_MIRROR_CHROOT="http://ftp.debian.org/debian/" + +# $LB_MIRROR_CHROOT_SECURITY: set security mirror to fetch packages from +# (Default: http://security.debian.org/) +LB_MIRROR_CHROOT_SECURITY="http://security.debian.org/" + +# $LB_MIRROR_BINARY: set mirror which ends up in the image +# (Default: http://httpredir.debian.org/debian/) +LB_MIRROR_BINARY="http://httpredir.debian.org/debian/" + +# $LB_MIRROR_BINARY_SECURITY: set security mirror which ends up in the image +# (Default: http://security.debian.org/) +LB_MIRROR_BINARY_SECURITY="http://security.debian.org/" + +# $LB_MIRROR_DEBIAN_INSTALLER: set debian-installer mirror +# (Default: http://ftp.debian.org/debian/) +LB_MIRROR_DEBIAN_INSTALLER="http://ftp.debian.org/debian/" + +# $LB_BOOTSTRAP_QEMU_ARCHITECTURES: architectures to use foreign bootstrap +# (Default: ) +LB_BOOTSTRAP_QEMU_ARCHITECTURES="" + +# $LB_BOOTSTRAP_QEMU_EXCLUDE: packages to exclude during foreign bootstrap +# (Default: ) +LB_BOOTSTRAP_QEMU_EXCLUDE="" + +# $LB_BOOTSTRAP_QEMU_STATIC: static qemu binary for foreign bootstrap +# (Default: ) +LB_BOOTSTRAP_QEMU_STATIC="" diff --git a/templates/config/build.j2 b/templates/config/build.j2 new file mode 100644 index 0000000..016eb23 --- /dev/null +++ b/templates/config/build.j2 @@ -0,0 +1,10 @@ +[Image] +Architecture: amd64 +Archive-Areas: main +Distribution: stretch +Mirror-Bootstrap: http://ftp.debian.org/debian/ + +[FIXME] +Configuration-Version: 1:20170213 +Name: live-image +Type: iso-hybrid diff --git a/templates/config/chroot.j2 b/templates/config/chroot.j2 new file mode 100644 index 0000000..4bb1e96 --- /dev/null +++ b/templates/config/chroot.j2 @@ -0,0 +1,37 @@ +# config/chroot - options for live-build(7), chroot stage + +# $LB_CHROOT_FILESYSTEM: set chroot filesystem +# (Default: squashfs) +LB_CHROOT_FILESYSTEM="squashfs" + +# $LB_UNION_FILESYSTEM: set union filesystem +# (Default: overlay) +LB_UNION_FILESYSTEM="overlay" + +# $LB_INTERACTIVE: set interactive build +# (Default: false) +LB_INTERACTIVE="false" + +# $LB_KEYRING_PACKAGES: set keyring packages +# (Default: empty) +LB_KEYRING_PACKAGES="debian-archive-keyring" + +# $LB_LINUX_FLAVOURS: set kernel flavour to use +# (Default: autodetected) +LB_LINUX_FLAVOURS="amd64" + +# $LB_LINUX_PACKAGES: set kernel packages to use +# (Default: autodetected) +LB_LINUX_PACKAGES="linux-image" + +# $LB_SECURITY: enable security updates +# (Default: true) +LB_SECURITY="true" + +# $LB_UPDATES: enable updates updates +# (Default: true) +LB_UPDATES="true" + +# $LB_BACKPORTS: enable backports updates +# (Default: false) +LB_BACKPORTS="false" diff --git a/templates/config/common.j2 b/templates/config/common.j2 new file mode 100644 index 0000000..856f78f --- /dev/null +++ b/templates/config/common.j2 @@ -0,0 +1,119 @@ +# config/common - common options for live-build(7) + +# $LB_APT: set package manager +# (Default: apt) +LB_APT="apt" + +# $LB_APT_FTP_PROXY: set apt/aptitude ftp proxy +# (Default: autodetected or empty) +LB_APT_FTP_PROXY="" + +# $LB_APT_HTTP_PROXY: set apt/aptitude http proxy +# (Default: autodetected or empty) +LB_APT_HTTP_PROXY="" + +# $LB_APT_PIPELINE: set apt/aptitude pipeline depth +# (Default: ) +LB_APT_PIPELINE="" + +# $LB_APT_RECOMMENDS: set apt/aptitude recommends +# (Default: true) +LB_APT_RECOMMENDS="true" + +# $LB_APT_SECURE: set apt/aptitude security +# (Default: true) +LB_APT_SECURE="true" + +# $LB_APT_SOURCE_ARCHIVES: set apt/aptitude source entries in sources.list +# (Default: true) +LB_APT_SOURCE_ARCHIVES="true" + +# $LB_CACHE: control cache +# (Default: true) +LB_CACHE="true" + +# $LB_CACHE_INDICES: control if downloaded package indices should be cached +# (Default: false) +LB_CACHE_INDICES="false" + +# $LB_CACHE_PACKAGES: control if downloaded packages files should be cached +# (Default: true) +LB_CACHE_PACKAGES="true" + +# $LB_CACHE_STAGES: control if completed stages should be cached +# (Default: bootstrap) +LB_CACHE_STAGES="bootstrap" + +# $LB_DEBCONF_FRONTEND: set debconf(1) frontend to use +# (Default: noninteractive) +LB_DEBCONF_FRONTEND="noninteractive" + +# $LB_DEBCONF_PRIORITY: set debconf(1) priority to use +# (Default: critical) +LB_DEBCONF_PRIORITY="critical" + +# $LB_INITRAMFS: set initramfs hook +# (Default: live-boot) +LB_INITRAMFS="live-boot" + +# $LB_INITRAMFS_COMPRESSION: set initramfs compression +# (Default: gzip) +LB_INITRAMFS_COMPRESSION="gzip" + +# $LB_INITSYSTEM: set init system +# (Default: systemd) +LB_INITSYSTEM="systemd" + +# $LB_FDISK: set fdisk program +# (Default: autodetected) +LB_FDISK="fdisk" + +# $LB_LOSETUP: set losetup program +# (Default: autodetected) +LB_LOSETUP="losetup" + +# $LB_MODE: set distribution mode +# (Default: debian) +LB_MODE="debian" + +# $LB_SYSTEM: set system type +# (Default: live) +LB_SYSTEM="live" + +# $LB_TASKSEL: set tasksel program +# (Default: apt) +LB_TASKSEL="apt" + +# live-build options + +# $_BREAKPOINTS: enable breakpoints +# (Default: false) +#_BREAKPOINTS="false" + +# $_DEBUG: enable debug +# (Default: false) +#_DEBUG="false" + +# $_COLOR: enable color +# (Default: false) +#_COLOR="false" + +# $_FORCE: enable force +# (Default: false) +#_FORCE="false" + +# $_QUIET: enable quiet +# (Default: false) +_QUIET="false" + +# $_VERBOSE: enable verbose +# (Default: false) +#_VERBOSE="false" + +# Internal stuff (FIXME) +APT_OPTIONS="--yes" +APTITUDE_OPTIONS="--assume-yes" +DEBOOTSTRAP_OPTIONS="" +DEBOOTSTRAP_SCRIPT="" +GZIP_OPTIONS="-6 --rsyncable" +ISOHYBRID_OPTIONS="" diff --git a/templates/config/source.j2 b/templates/config/source.j2 new file mode 100644 index 0000000..93a022a --- /dev/null +++ b/templates/config/source.j2 @@ -0,0 +1,9 @@ +# config/source - options for live-build(7), source stage + +# $LB_SOURCE: set source option +# (Default: false) +LB_SOURCE="false" + +# $LB_SOURCE_IMAGES: set image type +# (Default: tar) +LB_SOURCE_IMAGES="tar"