From 32322960234c8ec91e0d42835a3ec5ee63305070 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 2 Feb 2019 11:00:00 +0100 Subject: Adding upstream version 20190202. Signed-off-by: Daniel Baumann --- system-build/share/bin/Packages | 31 ++ .../share/bootloaders/extlinux/advanced.cfg | 7 + .../share/bootloaders/extlinux/extlinux.conf | 4 + system-build/share/bootloaders/extlinux/hdt.c32 | 1 + .../share/bootloaders/extlinux/install.cfg | 11 + .../share/bootloaders/extlinux/ldlinux.c32 | 1 + .../share/bootloaders/extlinux/libcom32.c32 | 1 + system-build/share/bootloaders/extlinux/libgpl.c32 | 1 + .../share/bootloaders/extlinux/libmenu.c32 | 1 + .../share/bootloaders/extlinux/libutil.c32 | 1 + .../share/bootloaders/extlinux/live.cfg.in | 12 + system-build/share/bootloaders/extlinux/menu.cfg | 17 + system-build/share/bootloaders/extlinux/splash.svg | 383 +++++++++++++++++++++ .../share/bootloaders/extlinux/stdmenu.cfg | 15 + .../share/bootloaders/extlinux/vesamenu.c32 | 1 + .../share/bootloaders/grub-legacy/menu.lst | 9 + .../share/bootloaders/grub-legacy/splash.xpm.gz | Bin 0 -> 32058 bytes system-build/share/bootloaders/grub-pc/grub.cfg | 12 + system-build/share/bootloaders/grub-pc/splash.tga | Bin 0 -> 50004 bytes .../share/bootloaders/isolinux/advanced.cfg | 7 + system-build/share/bootloaders/isolinux/hdt.c32 | 1 + .../share/bootloaders/isolinux/install.cfg | 11 + .../share/bootloaders/isolinux/isolinux.bin | 1 + .../share/bootloaders/isolinux/isolinux.cfg | 4 + .../share/bootloaders/isolinux/ldlinux.c32 | 1 + .../share/bootloaders/isolinux/libcom32.c32 | 1 + system-build/share/bootloaders/isolinux/libgpl.c32 | 1 + .../share/bootloaders/isolinux/libmenu.c32 | 1 + .../share/bootloaders/isolinux/libutil.c32 | 1 + .../share/bootloaders/isolinux/live.cfg.in | 12 + system-build/share/bootloaders/isolinux/menu.cfg | 17 + system-build/share/bootloaders/isolinux/splash.svg | 383 +++++++++++++++++++++ .../share/bootloaders/isolinux/stdmenu.cfg | 15 + .../share/bootloaders/isolinux/vesamenu.c32 | 1 + .../share/bootloaders/pxelinux/advanced.cfg | 7 + system-build/share/bootloaders/pxelinux/hdt.c32 | 1 + .../share/bootloaders/pxelinux/install.cfg | 11 + .../share/bootloaders/pxelinux/ldlinux.c32 | 1 + .../share/bootloaders/pxelinux/libcom32.c32 | 1 + system-build/share/bootloaders/pxelinux/libgpl.c32 | 1 + .../share/bootloaders/pxelinux/libmenu.c32 | 1 + .../share/bootloaders/pxelinux/libutil.c32 | 1 + .../share/bootloaders/pxelinux/live.cfg.in | 12 + system-build/share/bootloaders/pxelinux/menu.cfg | 17 + system-build/share/bootloaders/pxelinux/pxelinux.0 | 1 + .../bootloaders/pxelinux/pxelinux.cfg/default | 4 + system-build/share/bootloaders/pxelinux/splash.svg | 383 +++++++++++++++++++++ .../share/bootloaders/pxelinux/stdmenu.cfg | 15 + .../share/bootloaders/pxelinux/vesamenu.c32 | 1 + .../share/bootloaders/syslinux/advanced.cfg | 7 + system-build/share/bootloaders/syslinux/hdt.c32 | 1 + .../share/bootloaders/syslinux/install.cfg | 11 + .../share/bootloaders/syslinux/ldlinux.c32 | 1 + .../share/bootloaders/syslinux/libcom32.c32 | 1 + system-build/share/bootloaders/syslinux/libgpl.c32 | 1 + .../share/bootloaders/syslinux/libmenu.c32 | 1 + .../share/bootloaders/syslinux/libutil.c32 | 1 + .../share/bootloaders/syslinux/live.cfg.in | 12 + system-build/share/bootloaders/syslinux/menu.cfg | 17 + system-build/share/bootloaders/syslinux/splash.svg | 383 +++++++++++++++++++++ .../share/bootloaders/syslinux/stdmenu.cfg | 15 + .../share/bootloaders/syslinux/syslinux.cfg | 4 + .../share/bootloaders/syslinux/vesamenu.c32 | 1 + .../live/0010-disable-kexec-tools.hook.chroot | 16 + .../live/0050-disable-sysvinit-tmpfs.hook.chroot | 10 + .../normal/0020-create-mtab-symlink.hook.chroot | 11 + .../normal/0030-enable-cryptsetup.hook.chroot | 21 ++ .../normal/0040-create-locales-files.hook.chroot | 7 + .../0100-remove-adjtime-configuration.hook.chroot | 11 + .../normal/0110-remove-backup-files.hook.chroot | 21 ++ .../normal/0120-remove-dbus-machine-id.hook.chroot | 9 + .../0130-remove-gnome-icon-cache.hook.chroot | 9 + .../hooks/normal/0140-remove-log-files.hook.chroot | 9 + .../0150-remove-mdadm-configuration.hook.chroot | 7 + ...160-remove-openssh-server-host-keys.hook.chroot | 10 + .../hooks/normal/0170-remove-python-py.hook.chroot | 9 + .../0180-remove-systemd-machine-id.hook.chroot | 13 + ...185-remove-systemd-journal-database.hook.chroot | 6 + .../normal/0190-remove-temporary-files.hook.chroot | 14 + .../0195-remove-ssl-cert-snakeoil.hook.chroot | 13 + .../0196-remote-apt-auto-removal.hook.chroot | 6 + ...200-remove-udev-persistent-cd-rules.hook.chroot | 13 + ...00-remove-udev-persistent-net-rules.hook.chroot | 16 + .../normal/0400-update-apt-file-cache.hook.chroot | 14 + .../0410-update-apt-xapian-index.hook.chroot | 14 + .../normal/0420-update-glx-alternative.hook.chroot | 9 + .../0430-update-mlocate-database.hook.chroot | 14 + .../0440-update-nvidia-alternative.hook.chroot | 9 + .../hooks/normal/0910-remove-apt-sources-lists | 8 + 89 files changed, 2177 insertions(+) create mode 100755 system-build/share/bin/Packages create mode 100644 system-build/share/bootloaders/extlinux/advanced.cfg create mode 100644 system-build/share/bootloaders/extlinux/extlinux.conf create mode 120000 system-build/share/bootloaders/extlinux/hdt.c32 create mode 100644 system-build/share/bootloaders/extlinux/install.cfg create mode 120000 system-build/share/bootloaders/extlinux/ldlinux.c32 create mode 120000 system-build/share/bootloaders/extlinux/libcom32.c32 create mode 120000 system-build/share/bootloaders/extlinux/libgpl.c32 create mode 120000 system-build/share/bootloaders/extlinux/libmenu.c32 create mode 120000 system-build/share/bootloaders/extlinux/libutil.c32 create mode 100644 system-build/share/bootloaders/extlinux/live.cfg.in create mode 100644 system-build/share/bootloaders/extlinux/menu.cfg create mode 100644 system-build/share/bootloaders/extlinux/splash.svg create mode 100644 system-build/share/bootloaders/extlinux/stdmenu.cfg create mode 120000 system-build/share/bootloaders/extlinux/vesamenu.c32 create mode 100644 system-build/share/bootloaders/grub-legacy/menu.lst create mode 100644 system-build/share/bootloaders/grub-legacy/splash.xpm.gz create mode 100644 system-build/share/bootloaders/grub-pc/grub.cfg create mode 100644 system-build/share/bootloaders/grub-pc/splash.tga create mode 100644 system-build/share/bootloaders/isolinux/advanced.cfg create mode 120000 system-build/share/bootloaders/isolinux/hdt.c32 create mode 100644 system-build/share/bootloaders/isolinux/install.cfg create mode 120000 system-build/share/bootloaders/isolinux/isolinux.bin create mode 100644 system-build/share/bootloaders/isolinux/isolinux.cfg create mode 120000 system-build/share/bootloaders/isolinux/ldlinux.c32 create mode 120000 system-build/share/bootloaders/isolinux/libcom32.c32 create mode 120000 system-build/share/bootloaders/isolinux/libgpl.c32 create mode 120000 system-build/share/bootloaders/isolinux/libmenu.c32 create mode 120000 system-build/share/bootloaders/isolinux/libutil.c32 create mode 100644 system-build/share/bootloaders/isolinux/live.cfg.in create mode 100644 system-build/share/bootloaders/isolinux/menu.cfg create mode 100644 system-build/share/bootloaders/isolinux/splash.svg create mode 100644 system-build/share/bootloaders/isolinux/stdmenu.cfg create mode 120000 system-build/share/bootloaders/isolinux/vesamenu.c32 create mode 100644 system-build/share/bootloaders/pxelinux/advanced.cfg create mode 120000 system-build/share/bootloaders/pxelinux/hdt.c32 create mode 100644 system-build/share/bootloaders/pxelinux/install.cfg create mode 120000 system-build/share/bootloaders/pxelinux/ldlinux.c32 create mode 120000 system-build/share/bootloaders/pxelinux/libcom32.c32 create mode 120000 system-build/share/bootloaders/pxelinux/libgpl.c32 create mode 120000 system-build/share/bootloaders/pxelinux/libmenu.c32 create mode 120000 system-build/share/bootloaders/pxelinux/libutil.c32 create mode 100644 system-build/share/bootloaders/pxelinux/live.cfg.in create mode 100644 system-build/share/bootloaders/pxelinux/menu.cfg create mode 120000 system-build/share/bootloaders/pxelinux/pxelinux.0 create mode 100644 system-build/share/bootloaders/pxelinux/pxelinux.cfg/default create mode 100644 system-build/share/bootloaders/pxelinux/splash.svg create mode 100644 system-build/share/bootloaders/pxelinux/stdmenu.cfg create mode 120000 system-build/share/bootloaders/pxelinux/vesamenu.c32 create mode 100644 system-build/share/bootloaders/syslinux/advanced.cfg create mode 120000 system-build/share/bootloaders/syslinux/hdt.c32 create mode 100644 system-build/share/bootloaders/syslinux/install.cfg create mode 120000 system-build/share/bootloaders/syslinux/ldlinux.c32 create mode 120000 system-build/share/bootloaders/syslinux/libcom32.c32 create mode 120000 system-build/share/bootloaders/syslinux/libgpl.c32 create mode 120000 system-build/share/bootloaders/syslinux/libmenu.c32 create mode 120000 system-build/share/bootloaders/syslinux/libutil.c32 create mode 100644 system-build/share/bootloaders/syslinux/live.cfg.in create mode 100644 system-build/share/bootloaders/syslinux/menu.cfg create mode 100644 system-build/share/bootloaders/syslinux/splash.svg create mode 100644 system-build/share/bootloaders/syslinux/stdmenu.cfg create mode 100644 system-build/share/bootloaders/syslinux/syslinux.cfg create mode 120000 system-build/share/bootloaders/syslinux/vesamenu.c32 create mode 100755 system-build/share/hooks/live/0010-disable-kexec-tools.hook.chroot create mode 100755 system-build/share/hooks/live/0050-disable-sysvinit-tmpfs.hook.chroot create mode 100755 system-build/share/hooks/normal/0020-create-mtab-symlink.hook.chroot create mode 100755 system-build/share/hooks/normal/0030-enable-cryptsetup.hook.chroot create mode 100755 system-build/share/hooks/normal/0040-create-locales-files.hook.chroot create mode 100755 system-build/share/hooks/normal/0100-remove-adjtime-configuration.hook.chroot create mode 100755 system-build/share/hooks/normal/0110-remove-backup-files.hook.chroot create mode 100755 system-build/share/hooks/normal/0120-remove-dbus-machine-id.hook.chroot create mode 100755 system-build/share/hooks/normal/0130-remove-gnome-icon-cache.hook.chroot create mode 100755 system-build/share/hooks/normal/0140-remove-log-files.hook.chroot create mode 100755 system-build/share/hooks/normal/0150-remove-mdadm-configuration.hook.chroot create mode 100755 system-build/share/hooks/normal/0160-remove-openssh-server-host-keys.hook.chroot create mode 100755 system-build/share/hooks/normal/0170-remove-python-py.hook.chroot create mode 100755 system-build/share/hooks/normal/0180-remove-systemd-machine-id.hook.chroot create mode 100755 system-build/share/hooks/normal/0185-remove-systemd-journal-database.hook.chroot create mode 100755 system-build/share/hooks/normal/0190-remove-temporary-files.hook.chroot create mode 100755 system-build/share/hooks/normal/0195-remove-ssl-cert-snakeoil.hook.chroot create mode 100755 system-build/share/hooks/normal/0196-remote-apt-auto-removal.hook.chroot create mode 100755 system-build/share/hooks/normal/0200-remove-udev-persistent-cd-rules.hook.chroot create mode 100755 system-build/share/hooks/normal/0300-remove-udev-persistent-net-rules.hook.chroot create mode 100755 system-build/share/hooks/normal/0400-update-apt-file-cache.hook.chroot create mode 100755 system-build/share/hooks/normal/0410-update-apt-xapian-index.hook.chroot create mode 100755 system-build/share/hooks/normal/0420-update-glx-alternative.hook.chroot create mode 100755 system-build/share/hooks/normal/0430-update-mlocate-database.hook.chroot create mode 100755 system-build/share/hooks/normal/0440-update-nvidia-alternative.hook.chroot create mode 100755 system-build/share/hooks/normal/0910-remove-apt-sources-lists (limited to 'system-build/share') diff --git a/system-build/share/bin/Packages b/system-build/share/bin/Packages new file mode 100755 index 0000000..fa6cbba --- /dev/null +++ b/system-build/share/bin/Packages @@ -0,0 +1,31 @@ +#!/bin/sh + +## live-build(7) - System Build Scripts +## Copyright (C) 2006-2015 Daniel Baumann +## +## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING. +## This is free software, and you are welcome to redistribute it +## under certain conditions; see COPYING for details. + + +set -e + +if [ ! -e /usr/bin/grep-aptavail ] +then + echo "E: /usr/bin/grep-aptavail: No such file." + + exit 1 +fi + +if [ -z "${2}" ] +then + echo "Usage: $(basename ${0}) FIELD VALUE" + + exit 1 +fi + +_FIELD="${1}" +_VALUE="${2}" + +# For compatibility with tasksel, exclude lib and non-main packages +grep-aptavail -n -sPackage -F${_FIELD} ${_VALUE} -a -! -e -FSection '^(lib|/)' | sort diff --git a/system-build/share/bootloaders/extlinux/advanced.cfg b/system-build/share/bootloaders/extlinux/advanced.cfg new file mode 100644 index 0000000..373451a --- /dev/null +++ b/system-build/share/bootloaders/extlinux/advanced.cfg @@ -0,0 +1,7 @@ +label hdt + menu label ^Hardware Detection Tool (HDT) + com32 hdt.c32 + +label memtest + menu label ^Memory Diagnostic Tool (memtest86+) + linux /live/memtest diff --git a/system-build/share/bootloaders/extlinux/extlinux.conf b/system-build/share/bootloaders/extlinux/extlinux.conf new file mode 100644 index 0000000..a3e3eab --- /dev/null +++ b/system-build/share/bootloaders/extlinux/extlinux.conf @@ -0,0 +1,4 @@ +include menu.cfg +default vesamenu.c32 +prompt 0 +timeout 0 diff --git a/system-build/share/bootloaders/extlinux/hdt.c32 b/system-build/share/bootloaders/extlinux/hdt.c32 new file mode 120000 index 0000000..f84c641 --- /dev/null +++ b/system-build/share/bootloaders/extlinux/hdt.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/hdt.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/extlinux/install.cfg b/system-build/share/bootloaders/extlinux/install.cfg new file mode 100644 index 0000000..ba09752 --- /dev/null +++ b/system-build/share/bootloaders/extlinux/install.cfg @@ -0,0 +1,11 @@ +label install + menu label ^Install + linux /install/vmlinuz + initrd /install/initrd.gz + append vga=788 @APPEND_INSTALL@ --- quiet + +label installgui + menu label ^Graphical install + linux /install/gtk/vmlinuz + initrd /install/gtk/initrd.gz + append video=vesa:ywrap,mtrr vga=788 @APPEND_INSTALL@ --- quiet diff --git a/system-build/share/bootloaders/extlinux/ldlinux.c32 b/system-build/share/bootloaders/extlinux/ldlinux.c32 new file mode 120000 index 0000000..df554c7 --- /dev/null +++ b/system-build/share/bootloaders/extlinux/ldlinux.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/ldlinux.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/extlinux/libcom32.c32 b/system-build/share/bootloaders/extlinux/libcom32.c32 new file mode 120000 index 0000000..44ab36b --- /dev/null +++ b/system-build/share/bootloaders/extlinux/libcom32.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/libcom32.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/extlinux/libgpl.c32 b/system-build/share/bootloaders/extlinux/libgpl.c32 new file mode 120000 index 0000000..81c83fb --- /dev/null +++ b/system-build/share/bootloaders/extlinux/libgpl.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/libgpl.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/extlinux/libmenu.c32 b/system-build/share/bootloaders/extlinux/libmenu.c32 new file mode 120000 index 0000000..2491ff9 --- /dev/null +++ b/system-build/share/bootloaders/extlinux/libmenu.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/libmenu.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/extlinux/libutil.c32 b/system-build/share/bootloaders/extlinux/libutil.c32 new file mode 120000 index 0000000..478194e --- /dev/null +++ b/system-build/share/bootloaders/extlinux/libutil.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/libutil.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/extlinux/live.cfg.in b/system-build/share/bootloaders/extlinux/live.cfg.in new file mode 100644 index 0000000..97ceb92 --- /dev/null +++ b/system-build/share/bootloaders/extlinux/live.cfg.in @@ -0,0 +1,12 @@ +label live-@FLAVOUR@ + menu label ^Live (@FLAVOUR@) + menu default + linux @LINUX@ + initrd @INITRD@ + append @APPEND_LIVE@ + +label live-@FLAVOUR@-failsafe + menu label ^Live (@FLAVOUR@ failsafe) + linux @LINUX@ + initrd @INITRD@ + append @APPEND_LIVE_FAILSAFE@ diff --git a/system-build/share/bootloaders/extlinux/menu.cfg b/system-build/share/bootloaders/extlinux/menu.cfg new file mode 100644 index 0000000..d2daa80 --- /dev/null +++ b/system-build/share/bootloaders/extlinux/menu.cfg @@ -0,0 +1,17 @@ +menu hshift 0 +menu width 82 + +menu title Boot menu +include stdmenu.cfg +include live.cfg +include install.cfg +menu begin advanced + menu title Advanced options + include stdmenu.cfg + label mainmenu + menu label ^Back.. + menu exit + include advanced.cfg +menu end + +menu clear diff --git a/system-build/share/bootloaders/extlinux/splash.svg b/system-build/share/bootloaders/extlinux/splash.svg new file mode 100644 index 0000000..963624c --- /dev/null +++ b/system-build/share/bootloaders/extlinux/splash.svg @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + @PROJECT@ @VERSION@ (@DISTRIBUTION@)@ARCHITECTURE@Build: @YEAR@-@MONTH@-@DAY@ @HOUR@:@MINUTE@:@SECOND@linux: @LINUX_VERSIONS@system-build: @SYSTEM_BUILD_VERSION@system-boot: @SYSTEM_BOOT_VERSION@system-config: @SYSTEM_CONFIG_VERSION@ + + + + + + + + + + + + + + + + diff --git a/system-build/share/bootloaders/extlinux/stdmenu.cfg b/system-build/share/bootloaders/extlinux/stdmenu.cfg new file mode 100644 index 0000000..671b16f --- /dev/null +++ b/system-build/share/bootloaders/extlinux/stdmenu.cfg @@ -0,0 +1,15 @@ +menu background splash.png +menu color title * #FFFFFFFF * +menu color border * #00000000 #00000000 none +menu color sel * #ffffffff #76a1d0ff * +menu color hotsel 1;7;37;40 #ffffffff #76a1d0ff * +menu color tabmsg * #ffffffff #00000000 * +menu color help 37;40 #ffdddd00 #00000000 none +menu vshift 12 +menu rows 10 +menu helpmsgrow 15 +# The command line must be at least one line from the bottom. +menu cmdlinerow 16 +menu timeoutrow 16 +menu tabmsgrow 18 +menu tabmsg Press ENTER to boot or TAB to edit a menu entry diff --git a/system-build/share/bootloaders/extlinux/vesamenu.c32 b/system-build/share/bootloaders/extlinux/vesamenu.c32 new file mode 120000 index 0000000..84e2eff --- /dev/null +++ b/system-build/share/bootloaders/extlinux/vesamenu.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/vesamenu.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/grub-legacy/menu.lst b/system-build/share/bootloaders/grub-legacy/menu.lst new file mode 100644 index 0000000..3b866e5 --- /dev/null +++ b/system-build/share/bootloaders/grub-legacy/menu.lst @@ -0,0 +1,9 @@ +default 0 +color cyan/blue white/blue +splashimage /boot/grub/splash.xpm.gz + +LINUX_LIVE + +LINUX_INSTALL + +MEMTEST diff --git a/system-build/share/bootloaders/grub-legacy/splash.xpm.gz b/system-build/share/bootloaders/grub-legacy/splash.xpm.gz new file mode 100644 index 0000000..f32e228 Binary files /dev/null and b/system-build/share/bootloaders/grub-legacy/splash.xpm.gz differ diff --git a/system-build/share/bootloaders/grub-pc/grub.cfg b/system-build/share/bootloaders/grub-pc/grub.cfg new file mode 100644 index 0000000..3430b63 --- /dev/null +++ b/system-build/share/bootloaders/grub-pc/grub.cfg @@ -0,0 +1,12 @@ +set default=0 + +insmod tga +background_image ($root)/boot/grub/splash.tga +set color_normal=cyan/blue +set color_highlight=white/blue + +LINUX_LIVE + +LINUX_INSTALL + +MEMTEST diff --git a/system-build/share/bootloaders/grub-pc/splash.tga b/system-build/share/bootloaders/grub-pc/splash.tga new file mode 100644 index 0000000..90b790d Binary files /dev/null and b/system-build/share/bootloaders/grub-pc/splash.tga differ diff --git a/system-build/share/bootloaders/isolinux/advanced.cfg b/system-build/share/bootloaders/isolinux/advanced.cfg new file mode 100644 index 0000000..373451a --- /dev/null +++ b/system-build/share/bootloaders/isolinux/advanced.cfg @@ -0,0 +1,7 @@ +label hdt + menu label ^Hardware Detection Tool (HDT) + com32 hdt.c32 + +label memtest + menu label ^Memory Diagnostic Tool (memtest86+) + linux /live/memtest diff --git a/system-build/share/bootloaders/isolinux/hdt.c32 b/system-build/share/bootloaders/isolinux/hdt.c32 new file mode 120000 index 0000000..f84c641 --- /dev/null +++ b/system-build/share/bootloaders/isolinux/hdt.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/hdt.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/isolinux/install.cfg b/system-build/share/bootloaders/isolinux/install.cfg new file mode 100644 index 0000000..ba09752 --- /dev/null +++ b/system-build/share/bootloaders/isolinux/install.cfg @@ -0,0 +1,11 @@ +label install + menu label ^Install + linux /install/vmlinuz + initrd /install/initrd.gz + append vga=788 @APPEND_INSTALL@ --- quiet + +label installgui + menu label ^Graphical install + linux /install/gtk/vmlinuz + initrd /install/gtk/initrd.gz + append video=vesa:ywrap,mtrr vga=788 @APPEND_INSTALL@ --- quiet diff --git a/system-build/share/bootloaders/isolinux/isolinux.bin b/system-build/share/bootloaders/isolinux/isolinux.bin new file mode 120000 index 0000000..33a2ad6 --- /dev/null +++ b/system-build/share/bootloaders/isolinux/isolinux.bin @@ -0,0 +1 @@ +/usr/lib/ISOLINUX/isolinux.bin \ No newline at end of file diff --git a/system-build/share/bootloaders/isolinux/isolinux.cfg b/system-build/share/bootloaders/isolinux/isolinux.cfg new file mode 100644 index 0000000..a3e3eab --- /dev/null +++ b/system-build/share/bootloaders/isolinux/isolinux.cfg @@ -0,0 +1,4 @@ +include menu.cfg +default vesamenu.c32 +prompt 0 +timeout 0 diff --git a/system-build/share/bootloaders/isolinux/ldlinux.c32 b/system-build/share/bootloaders/isolinux/ldlinux.c32 new file mode 120000 index 0000000..df554c7 --- /dev/null +++ b/system-build/share/bootloaders/isolinux/ldlinux.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/ldlinux.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/isolinux/libcom32.c32 b/system-build/share/bootloaders/isolinux/libcom32.c32 new file mode 120000 index 0000000..44ab36b --- /dev/null +++ b/system-build/share/bootloaders/isolinux/libcom32.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/libcom32.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/isolinux/libgpl.c32 b/system-build/share/bootloaders/isolinux/libgpl.c32 new file mode 120000 index 0000000..81c83fb --- /dev/null +++ b/system-build/share/bootloaders/isolinux/libgpl.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/libgpl.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/isolinux/libmenu.c32 b/system-build/share/bootloaders/isolinux/libmenu.c32 new file mode 120000 index 0000000..2491ff9 --- /dev/null +++ b/system-build/share/bootloaders/isolinux/libmenu.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/libmenu.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/isolinux/libutil.c32 b/system-build/share/bootloaders/isolinux/libutil.c32 new file mode 120000 index 0000000..478194e --- /dev/null +++ b/system-build/share/bootloaders/isolinux/libutil.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/libutil.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/isolinux/live.cfg.in b/system-build/share/bootloaders/isolinux/live.cfg.in new file mode 100644 index 0000000..97ceb92 --- /dev/null +++ b/system-build/share/bootloaders/isolinux/live.cfg.in @@ -0,0 +1,12 @@ +label live-@FLAVOUR@ + menu label ^Live (@FLAVOUR@) + menu default + linux @LINUX@ + initrd @INITRD@ + append @APPEND_LIVE@ + +label live-@FLAVOUR@-failsafe + menu label ^Live (@FLAVOUR@ failsafe) + linux @LINUX@ + initrd @INITRD@ + append @APPEND_LIVE_FAILSAFE@ diff --git a/system-build/share/bootloaders/isolinux/menu.cfg b/system-build/share/bootloaders/isolinux/menu.cfg new file mode 100644 index 0000000..d2daa80 --- /dev/null +++ b/system-build/share/bootloaders/isolinux/menu.cfg @@ -0,0 +1,17 @@ +menu hshift 0 +menu width 82 + +menu title Boot menu +include stdmenu.cfg +include live.cfg +include install.cfg +menu begin advanced + menu title Advanced options + include stdmenu.cfg + label mainmenu + menu label ^Back.. + menu exit + include advanced.cfg +menu end + +menu clear diff --git a/system-build/share/bootloaders/isolinux/splash.svg b/system-build/share/bootloaders/isolinux/splash.svg new file mode 100644 index 0000000..963624c --- /dev/null +++ b/system-build/share/bootloaders/isolinux/splash.svg @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + @PROJECT@ @VERSION@ (@DISTRIBUTION@)@ARCHITECTURE@Build: @YEAR@-@MONTH@-@DAY@ @HOUR@:@MINUTE@:@SECOND@linux: @LINUX_VERSIONS@system-build: @SYSTEM_BUILD_VERSION@system-boot: @SYSTEM_BOOT_VERSION@system-config: @SYSTEM_CONFIG_VERSION@ + + + + + + + + + + + + + + + + diff --git a/system-build/share/bootloaders/isolinux/stdmenu.cfg b/system-build/share/bootloaders/isolinux/stdmenu.cfg new file mode 100644 index 0000000..671b16f --- /dev/null +++ b/system-build/share/bootloaders/isolinux/stdmenu.cfg @@ -0,0 +1,15 @@ +menu background splash.png +menu color title * #FFFFFFFF * +menu color border * #00000000 #00000000 none +menu color sel * #ffffffff #76a1d0ff * +menu color hotsel 1;7;37;40 #ffffffff #76a1d0ff * +menu color tabmsg * #ffffffff #00000000 * +menu color help 37;40 #ffdddd00 #00000000 none +menu vshift 12 +menu rows 10 +menu helpmsgrow 15 +# The command line must be at least one line from the bottom. +menu cmdlinerow 16 +menu timeoutrow 16 +menu tabmsgrow 18 +menu tabmsg Press ENTER to boot or TAB to edit a menu entry diff --git a/system-build/share/bootloaders/isolinux/vesamenu.c32 b/system-build/share/bootloaders/isolinux/vesamenu.c32 new file mode 120000 index 0000000..84e2eff --- /dev/null +++ b/system-build/share/bootloaders/isolinux/vesamenu.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/vesamenu.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/pxelinux/advanced.cfg b/system-build/share/bootloaders/pxelinux/advanced.cfg new file mode 100644 index 0000000..373451a --- /dev/null +++ b/system-build/share/bootloaders/pxelinux/advanced.cfg @@ -0,0 +1,7 @@ +label hdt + menu label ^Hardware Detection Tool (HDT) + com32 hdt.c32 + +label memtest + menu label ^Memory Diagnostic Tool (memtest86+) + linux /live/memtest diff --git a/system-build/share/bootloaders/pxelinux/hdt.c32 b/system-build/share/bootloaders/pxelinux/hdt.c32 new file mode 120000 index 0000000..f84c641 --- /dev/null +++ b/system-build/share/bootloaders/pxelinux/hdt.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/hdt.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/pxelinux/install.cfg b/system-build/share/bootloaders/pxelinux/install.cfg new file mode 100644 index 0000000..ba09752 --- /dev/null +++ b/system-build/share/bootloaders/pxelinux/install.cfg @@ -0,0 +1,11 @@ +label install + menu label ^Install + linux /install/vmlinuz + initrd /install/initrd.gz + append vga=788 @APPEND_INSTALL@ --- quiet + +label installgui + menu label ^Graphical install + linux /install/gtk/vmlinuz + initrd /install/gtk/initrd.gz + append video=vesa:ywrap,mtrr vga=788 @APPEND_INSTALL@ --- quiet diff --git a/system-build/share/bootloaders/pxelinux/ldlinux.c32 b/system-build/share/bootloaders/pxelinux/ldlinux.c32 new file mode 120000 index 0000000..df554c7 --- /dev/null +++ b/system-build/share/bootloaders/pxelinux/ldlinux.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/ldlinux.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/pxelinux/libcom32.c32 b/system-build/share/bootloaders/pxelinux/libcom32.c32 new file mode 120000 index 0000000..44ab36b --- /dev/null +++ b/system-build/share/bootloaders/pxelinux/libcom32.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/libcom32.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/pxelinux/libgpl.c32 b/system-build/share/bootloaders/pxelinux/libgpl.c32 new file mode 120000 index 0000000..81c83fb --- /dev/null +++ b/system-build/share/bootloaders/pxelinux/libgpl.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/libgpl.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/pxelinux/libmenu.c32 b/system-build/share/bootloaders/pxelinux/libmenu.c32 new file mode 120000 index 0000000..2491ff9 --- /dev/null +++ b/system-build/share/bootloaders/pxelinux/libmenu.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/libmenu.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/pxelinux/libutil.c32 b/system-build/share/bootloaders/pxelinux/libutil.c32 new file mode 120000 index 0000000..478194e --- /dev/null +++ b/system-build/share/bootloaders/pxelinux/libutil.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/libutil.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/pxelinux/live.cfg.in b/system-build/share/bootloaders/pxelinux/live.cfg.in new file mode 100644 index 0000000..97ceb92 --- /dev/null +++ b/system-build/share/bootloaders/pxelinux/live.cfg.in @@ -0,0 +1,12 @@ +label live-@FLAVOUR@ + menu label ^Live (@FLAVOUR@) + menu default + linux @LINUX@ + initrd @INITRD@ + append @APPEND_LIVE@ + +label live-@FLAVOUR@-failsafe + menu label ^Live (@FLAVOUR@ failsafe) + linux @LINUX@ + initrd @INITRD@ + append @APPEND_LIVE_FAILSAFE@ diff --git a/system-build/share/bootloaders/pxelinux/menu.cfg b/system-build/share/bootloaders/pxelinux/menu.cfg new file mode 100644 index 0000000..d2daa80 --- /dev/null +++ b/system-build/share/bootloaders/pxelinux/menu.cfg @@ -0,0 +1,17 @@ +menu hshift 0 +menu width 82 + +menu title Boot menu +include stdmenu.cfg +include live.cfg +include install.cfg +menu begin advanced + menu title Advanced options + include stdmenu.cfg + label mainmenu + menu label ^Back.. + menu exit + include advanced.cfg +menu end + +menu clear diff --git a/system-build/share/bootloaders/pxelinux/pxelinux.0 b/system-build/share/bootloaders/pxelinux/pxelinux.0 new file mode 120000 index 0000000..f723d02 --- /dev/null +++ b/system-build/share/bootloaders/pxelinux/pxelinux.0 @@ -0,0 +1 @@ +/usr/lib/PXELINUX/pxelinux.0 \ No newline at end of file diff --git a/system-build/share/bootloaders/pxelinux/pxelinux.cfg/default b/system-build/share/bootloaders/pxelinux/pxelinux.cfg/default new file mode 100644 index 0000000..a3e3eab --- /dev/null +++ b/system-build/share/bootloaders/pxelinux/pxelinux.cfg/default @@ -0,0 +1,4 @@ +include menu.cfg +default vesamenu.c32 +prompt 0 +timeout 0 diff --git a/system-build/share/bootloaders/pxelinux/splash.svg b/system-build/share/bootloaders/pxelinux/splash.svg new file mode 100644 index 0000000..963624c --- /dev/null +++ b/system-build/share/bootloaders/pxelinux/splash.svg @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + @PROJECT@ @VERSION@ (@DISTRIBUTION@)@ARCHITECTURE@Build: @YEAR@-@MONTH@-@DAY@ @HOUR@:@MINUTE@:@SECOND@linux: @LINUX_VERSIONS@system-build: @SYSTEM_BUILD_VERSION@system-boot: @SYSTEM_BOOT_VERSION@system-config: @SYSTEM_CONFIG_VERSION@ + + + + + + + + + + + + + + + + diff --git a/system-build/share/bootloaders/pxelinux/stdmenu.cfg b/system-build/share/bootloaders/pxelinux/stdmenu.cfg new file mode 100644 index 0000000..671b16f --- /dev/null +++ b/system-build/share/bootloaders/pxelinux/stdmenu.cfg @@ -0,0 +1,15 @@ +menu background splash.png +menu color title * #FFFFFFFF * +menu color border * #00000000 #00000000 none +menu color sel * #ffffffff #76a1d0ff * +menu color hotsel 1;7;37;40 #ffffffff #76a1d0ff * +menu color tabmsg * #ffffffff #00000000 * +menu color help 37;40 #ffdddd00 #00000000 none +menu vshift 12 +menu rows 10 +menu helpmsgrow 15 +# The command line must be at least one line from the bottom. +menu cmdlinerow 16 +menu timeoutrow 16 +menu tabmsgrow 18 +menu tabmsg Press ENTER to boot or TAB to edit a menu entry diff --git a/system-build/share/bootloaders/pxelinux/vesamenu.c32 b/system-build/share/bootloaders/pxelinux/vesamenu.c32 new file mode 120000 index 0000000..84e2eff --- /dev/null +++ b/system-build/share/bootloaders/pxelinux/vesamenu.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/vesamenu.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/syslinux/advanced.cfg b/system-build/share/bootloaders/syslinux/advanced.cfg new file mode 100644 index 0000000..373451a --- /dev/null +++ b/system-build/share/bootloaders/syslinux/advanced.cfg @@ -0,0 +1,7 @@ +label hdt + menu label ^Hardware Detection Tool (HDT) + com32 hdt.c32 + +label memtest + menu label ^Memory Diagnostic Tool (memtest86+) + linux /live/memtest diff --git a/system-build/share/bootloaders/syslinux/hdt.c32 b/system-build/share/bootloaders/syslinux/hdt.c32 new file mode 120000 index 0000000..f84c641 --- /dev/null +++ b/system-build/share/bootloaders/syslinux/hdt.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/hdt.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/syslinux/install.cfg b/system-build/share/bootloaders/syslinux/install.cfg new file mode 100644 index 0000000..ba09752 --- /dev/null +++ b/system-build/share/bootloaders/syslinux/install.cfg @@ -0,0 +1,11 @@ +label install + menu label ^Install + linux /install/vmlinuz + initrd /install/initrd.gz + append vga=788 @APPEND_INSTALL@ --- quiet + +label installgui + menu label ^Graphical install + linux /install/gtk/vmlinuz + initrd /install/gtk/initrd.gz + append video=vesa:ywrap,mtrr vga=788 @APPEND_INSTALL@ --- quiet diff --git a/system-build/share/bootloaders/syslinux/ldlinux.c32 b/system-build/share/bootloaders/syslinux/ldlinux.c32 new file mode 120000 index 0000000..df554c7 --- /dev/null +++ b/system-build/share/bootloaders/syslinux/ldlinux.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/ldlinux.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/syslinux/libcom32.c32 b/system-build/share/bootloaders/syslinux/libcom32.c32 new file mode 120000 index 0000000..44ab36b --- /dev/null +++ b/system-build/share/bootloaders/syslinux/libcom32.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/libcom32.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/syslinux/libgpl.c32 b/system-build/share/bootloaders/syslinux/libgpl.c32 new file mode 120000 index 0000000..81c83fb --- /dev/null +++ b/system-build/share/bootloaders/syslinux/libgpl.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/libgpl.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/syslinux/libmenu.c32 b/system-build/share/bootloaders/syslinux/libmenu.c32 new file mode 120000 index 0000000..2491ff9 --- /dev/null +++ b/system-build/share/bootloaders/syslinux/libmenu.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/libmenu.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/syslinux/libutil.c32 b/system-build/share/bootloaders/syslinux/libutil.c32 new file mode 120000 index 0000000..478194e --- /dev/null +++ b/system-build/share/bootloaders/syslinux/libutil.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/libutil.c32 \ No newline at end of file diff --git a/system-build/share/bootloaders/syslinux/live.cfg.in b/system-build/share/bootloaders/syslinux/live.cfg.in new file mode 100644 index 0000000..97ceb92 --- /dev/null +++ b/system-build/share/bootloaders/syslinux/live.cfg.in @@ -0,0 +1,12 @@ +label live-@FLAVOUR@ + menu label ^Live (@FLAVOUR@) + menu default + linux @LINUX@ + initrd @INITRD@ + append @APPEND_LIVE@ + +label live-@FLAVOUR@-failsafe + menu label ^Live (@FLAVOUR@ failsafe) + linux @LINUX@ + initrd @INITRD@ + append @APPEND_LIVE_FAILSAFE@ diff --git a/system-build/share/bootloaders/syslinux/menu.cfg b/system-build/share/bootloaders/syslinux/menu.cfg new file mode 100644 index 0000000..9368260 --- /dev/null +++ b/system-build/share/bootloaders/syslinux/menu.cfg @@ -0,0 +1,17 @@ +menu hshift 0 +menu width 82 + +menu title Boot menu +include stdmenu.cfg +include live.cfg +include install.cfg +menu begin advanced + menu title ^Advanced options + include stdmenu.cfg + label mainmenu + menu label ^Back.. + menu exit + include advanced.cfg +menu end + +menu clear diff --git a/system-build/share/bootloaders/syslinux/splash.svg b/system-build/share/bootloaders/syslinux/splash.svg new file mode 100644 index 0000000..963624c --- /dev/null +++ b/system-build/share/bootloaders/syslinux/splash.svg @@ -0,0 +1,383 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + @PROJECT@ @VERSION@ (@DISTRIBUTION@)@ARCHITECTURE@Build: @YEAR@-@MONTH@-@DAY@ @HOUR@:@MINUTE@:@SECOND@linux: @LINUX_VERSIONS@system-build: @SYSTEM_BUILD_VERSION@system-boot: @SYSTEM_BOOT_VERSION@system-config: @SYSTEM_CONFIG_VERSION@ + + + + + + + + + + + + + + + + diff --git a/system-build/share/bootloaders/syslinux/stdmenu.cfg b/system-build/share/bootloaders/syslinux/stdmenu.cfg new file mode 100644 index 0000000..671b16f --- /dev/null +++ b/system-build/share/bootloaders/syslinux/stdmenu.cfg @@ -0,0 +1,15 @@ +menu background splash.png +menu color title * #FFFFFFFF * +menu color border * #00000000 #00000000 none +menu color sel * #ffffffff #76a1d0ff * +menu color hotsel 1;7;37;40 #ffffffff #76a1d0ff * +menu color tabmsg * #ffffffff #00000000 * +menu color help 37;40 #ffdddd00 #00000000 none +menu vshift 12 +menu rows 10 +menu helpmsgrow 15 +# The command line must be at least one line from the bottom. +menu cmdlinerow 16 +menu timeoutrow 16 +menu tabmsgrow 18 +menu tabmsg Press ENTER to boot or TAB to edit a menu entry diff --git a/system-build/share/bootloaders/syslinux/syslinux.cfg b/system-build/share/bootloaders/syslinux/syslinux.cfg new file mode 100644 index 0000000..a3e3eab --- /dev/null +++ b/system-build/share/bootloaders/syslinux/syslinux.cfg @@ -0,0 +1,4 @@ +include menu.cfg +default vesamenu.c32 +prompt 0 +timeout 0 diff --git a/system-build/share/bootloaders/syslinux/vesamenu.c32 b/system-build/share/bootloaders/syslinux/vesamenu.c32 new file mode 120000 index 0000000..84e2eff --- /dev/null +++ b/system-build/share/bootloaders/syslinux/vesamenu.c32 @@ -0,0 +1 @@ +/usr/lib/syslinux/modules/bios/vesamenu.c32 \ No newline at end of file diff --git a/system-build/share/hooks/live/0010-disable-kexec-tools.hook.chroot b/system-build/share/hooks/live/0010-disable-kexec-tools.hook.chroot new file mode 100755 index 0000000..403d1d4 --- /dev/null +++ b/system-build/share/hooks/live/0010-disable-kexec-tools.hook.chroot @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +# Disable kexec-tools + +if [ -e /sbin/kexec ] +then + echo "kexec-tools kexec-tools/load_kexec boolean false" > /root/preseed + + debconf-set-selections /root/preseed + + rm -f /root/preseed + + dpkg-reconfigure kexec-tools +fi diff --git a/system-build/share/hooks/live/0050-disable-sysvinit-tmpfs.hook.chroot b/system-build/share/hooks/live/0050-disable-sysvinit-tmpfs.hook.chroot new file mode 100755 index 0000000..37750b3 --- /dev/null +++ b/system-build/share/hooks/live/0050-disable-sysvinit-tmpfs.hook.chroot @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +# Disable tmpfs on /tmp + +if [ -e /etc/default/rcS ] +then + sed -i -e 's|^ *RAMTMP=.*|RAMTMP=no|' /etc/default/rcS +fi diff --git a/system-build/share/hooks/normal/0020-create-mtab-symlink.hook.chroot b/system-build/share/hooks/normal/0020-create-mtab-symlink.hook.chroot new file mode 100755 index 0000000..5c2fa64 --- /dev/null +++ b/system-build/share/hooks/normal/0020-create-mtab-symlink.hook.chroot @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +# Create /etc/mtab symlink, replacing a regular file if necessary + +if [ ! -L /etc/mtab ] +then + rm -f /etc/mtab + ln -s /proc/mounts /etc/mtab +fi diff --git a/system-build/share/hooks/normal/0030-enable-cryptsetup.hook.chroot b/system-build/share/hooks/normal/0030-enable-cryptsetup.hook.chroot new file mode 100755 index 0000000..54c2978 --- /dev/null +++ b/system-build/share/hooks/normal/0030-enable-cryptsetup.hook.chroot @@ -0,0 +1,21 @@ +#!/bin/sh + +set -e + +# Enable cryptsetup + +if [ -e /sbin/cryptsetup ] +then + if [ ! -e /etc/initramfs-tools/conf.d/cryptsetup ] + then + mkdir -p /etc/initramfs-tools/conf.d + +cat > /etc/initramfs-tools/conf.d/cryptsetup << EOF +# /etc/initramfs-tools/conf.d/cryptsetup + +CRYPTSETUP=yes +export CRYPTSETUP +EOF + + fi +fi diff --git a/system-build/share/hooks/normal/0040-create-locales-files.hook.chroot b/system-build/share/hooks/normal/0040-create-locales-files.hook.chroot new file mode 100755 index 0000000..8a5a867 --- /dev/null +++ b/system-build/share/hooks/normal/0040-create-locales-files.hook.chroot @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +# Create /etc/environment and /etc/default/locale +touch /etc/environment +touch /etc/default/locale diff --git a/system-build/share/hooks/normal/0100-remove-adjtime-configuration.hook.chroot b/system-build/share/hooks/normal/0100-remove-adjtime-configuration.hook.chroot new file mode 100755 index 0000000..7fe5bbd --- /dev/null +++ b/system-build/share/hooks/normal/0100-remove-adjtime-configuration.hook.chroot @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +# Reset generated file + +cat > /etc/adjtime << EOF +0.0 0 0.0 +0 +UTC +EOF diff --git a/system-build/share/hooks/normal/0110-remove-backup-files.hook.chroot b/system-build/share/hooks/normal/0110-remove-backup-files.hook.chroot new file mode 100755 index 0000000..8fe1726 --- /dev/null +++ b/system-build/share/hooks/normal/0110-remove-backup-files.hook.chroot @@ -0,0 +1,21 @@ +#!/bin/sh + +set -e + +# Remove backup files +rm -f /boot/*.bak +rm -f /boot/*.old-dkms + +rm -f /etc/apt/sources.list~ +rm -f /etc/apt/trusted.gpg~ + +rm -f /etc/passwd- +rm -f /etc/group- +rm -f /etc/shadow- +rm -f /etc/gshadow- + +rm -f /var/cache/debconf/*-old +rm -f /var/lib/dpkg/*-old + +# Workaround for user-setup +touch /etc/passwd- diff --git a/system-build/share/hooks/normal/0120-remove-dbus-machine-id.hook.chroot b/system-build/share/hooks/normal/0120-remove-dbus-machine-id.hook.chroot new file mode 100755 index 0000000..230099e --- /dev/null +++ b/system-build/share/hooks/normal/0120-remove-dbus-machine-id.hook.chroot @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +# Remove dbus machine id. +# +# This removes dbus machine id that cache that makes each system unique. + +rm -f /var/lib/dbus/machine-id diff --git a/system-build/share/hooks/normal/0130-remove-gnome-icon-cache.hook.chroot b/system-build/share/hooks/normal/0130-remove-gnome-icon-cache.hook.chroot new file mode 100755 index 0000000..ab35a1d --- /dev/null +++ b/system-build/share/hooks/normal/0130-remove-gnome-icon-cache.hook.chroot @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +# Remove GNOME icon cache. +# +# This saves space some space. + +rm -f /usr/share/icons/*/icon-theme.cache diff --git a/system-build/share/hooks/normal/0140-remove-log-files.hook.chroot b/system-build/share/hooks/normal/0140-remove-log-files.hook.chroot new file mode 100755 index 0000000..f95e546 --- /dev/null +++ b/system-build/share/hooks/normal/0140-remove-log-files.hook.chroot @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +# Truncate log files +for _FILE in $(find /var/log/ -type f) +do + : > ${_FILE} +done diff --git a/system-build/share/hooks/normal/0150-remove-mdadm-configuration.hook.chroot b/system-build/share/hooks/normal/0150-remove-mdadm-configuration.hook.chroot new file mode 100755 index 0000000..206b494 --- /dev/null +++ b/system-build/share/hooks/normal/0150-remove-mdadm-configuration.hook.chroot @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +# Remove generated files + +rm -f /etc/mdadm/mdadm.conf diff --git a/system-build/share/hooks/normal/0160-remove-openssh-server-host-keys.hook.chroot b/system-build/share/hooks/normal/0160-remove-openssh-server-host-keys.hook.chroot new file mode 100755 index 0000000..b108526 --- /dev/null +++ b/system-build/share/hooks/normal/0160-remove-openssh-server-host-keys.hook.chroot @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +# Remove OpenSSH Host Keys. +# +# This removes openssh-server host keys, they are regenerated by system-config +# on system start. + +rm -f /etc/ssh/ssh_host_*_key /etc/ssh/ssh_host_*_key.pub diff --git a/system-build/share/hooks/normal/0170-remove-python-py.hook.chroot b/system-build/share/hooks/normal/0170-remove-python-py.hook.chroot new file mode 100755 index 0000000..ff70583 --- /dev/null +++ b/system-build/share/hooks/normal/0170-remove-python-py.hook.chroot @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +# Remove Python *.py files. +# +# This removes byte-compiled Python modules to save some space. + +find /usr -name "*.pyc" -print0 | xargs -0r rm -f diff --git a/system-build/share/hooks/normal/0180-remove-systemd-machine-id.hook.chroot b/system-build/share/hooks/normal/0180-remove-systemd-machine-id.hook.chroot new file mode 100755 index 0000000..ed5d6bf --- /dev/null +++ b/system-build/share/hooks/normal/0180-remove-systemd-machine-id.hook.chroot @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +# Blank out systemd machine id. If it does not exist, systemd-journald +# will fail, but if it exists and is empty, systemd will automatically +# set up a new unique ID. + +if [ -e /etc/machine-id ] +then + rm -f /etc/machine-id + : > /etc/machine-id +fi diff --git a/system-build/share/hooks/normal/0185-remove-systemd-journal-database.hook.chroot b/system-build/share/hooks/normal/0185-remove-systemd-journal-database.hook.chroot new file mode 100755 index 0000000..01ac200 --- /dev/null +++ b/system-build/share/hooks/normal/0185-remove-systemd-journal-database.hook.chroot @@ -0,0 +1,6 @@ +#!/bin/sh + +set -e + +# Remove journal database +rm -f /var/lib/systemd/catalog/database diff --git a/system-build/share/hooks/normal/0190-remove-temporary-files.hook.chroot b/system-build/share/hooks/normal/0190-remove-temporary-files.hook.chroot new file mode 100755 index 0000000..fd220e0 --- /dev/null +++ b/system-build/share/hooks/normal/0190-remove-temporary-files.hook.chroot @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +# Remove temporary files +rm -rf /var/cache/man/* + +for _DIRECTORY in /tmp /var/tmp +do + rm -rf ${_DIRECTORY} + + mkdir -p ${_DIRECTORY} + chmod 1777 ${_DIRECTORY} +done diff --git a/system-build/share/hooks/normal/0195-remove-ssl-cert-snakeoil.hook.chroot b/system-build/share/hooks/normal/0195-remove-ssl-cert-snakeoil.hook.chroot new file mode 100755 index 0000000..cdfe39d --- /dev/null +++ b/system-build/share/hooks/normal/0195-remove-ssl-cert-snakeoil.hook.chroot @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +# Remove ssl-cert snakeoil + +if [ -e /etc/ssl/certs/ssl-cert-snakeoil.pem ] +then + rm -f /etc/ssl/certs/$(openssl x509 -hash -noout -in /etc/ssl/certs/ssl-cert-snakeoil.pem) + + rm -f /etc/ssl/certs/ssl-cert-snakeoil.pem + rm -f /etc/ssl/private/ssl-cert-snakeoil.key +fi diff --git a/system-build/share/hooks/normal/0196-remote-apt-auto-removal.hook.chroot b/system-build/share/hooks/normal/0196-remote-apt-auto-removal.hook.chroot new file mode 100755 index 0000000..9bbfec7 --- /dev/null +++ b/system-build/share/hooks/normal/0196-remote-apt-auto-removal.hook.chroot @@ -0,0 +1,6 @@ +#!/bin/sh + +set -e + +# Remove auto-generated file +rm -f /etc/apt/apt.conf.d/01autoremove-kernels diff --git a/system-build/share/hooks/normal/0200-remove-udev-persistent-cd-rules.hook.chroot b/system-build/share/hooks/normal/0200-remove-udev-persistent-cd-rules.hook.chroot new file mode 100755 index 0000000..bdfe52d --- /dev/null +++ b/system-build/share/hooks/normal/0200-remove-udev-persistent-cd-rules.hook.chroot @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +# Remove udev persistent rules. +# +# This removes udev persistent rules that cache the host systems cd drive as +# well as the running live systems cd drive to remember its device name. + +if [ -e /etc/udev/rules.d ] +then + > /etc/udev/rules.d/70-persistent-cd.rules +fi diff --git a/system-build/share/hooks/normal/0300-remove-udev-persistent-net-rules.hook.chroot b/system-build/share/hooks/normal/0300-remove-udev-persistent-net-rules.hook.chroot new file mode 100755 index 0000000..148ba30 --- /dev/null +++ b/system-build/share/hooks/normal/0300-remove-udev-persistent-net-rules.hook.chroot @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +# Remove udev persistent rules. +# +# This removes udev persistent rules that cache the host systems mac address to +# remember its device name. + +for _FILE in /etc/udev/rules.d/*persistent-net.rules +do + if [ -e "${_FILE}" ] + then + : > ${_FILE} + fi +done diff --git a/system-build/share/hooks/normal/0400-update-apt-file-cache.hook.chroot b/system-build/share/hooks/normal/0400-update-apt-file-cache.hook.chroot new file mode 100755 index 0000000..771e903 --- /dev/null +++ b/system-build/share/hooks/normal/0400-update-apt-file-cache.hook.chroot @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +# Update the Apt File cache. +# +# This allows to use using apt-file out-of-the-box. + +. /live-build/config/binary + +if [ -x /usr/bin/apt-file ] && [ "${LB_APT_INDICES}" = "true" ] +then + apt-file update +fi diff --git a/system-build/share/hooks/normal/0410-update-apt-xapian-index.hook.chroot b/system-build/share/hooks/normal/0410-update-apt-xapian-index.hook.chroot new file mode 100755 index 0000000..dcb39b2 --- /dev/null +++ b/system-build/share/hooks/normal/0410-update-apt-xapian-index.hook.chroot @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +# Update the Apt Xapian index. +# +# The package would do this itself, but (a) it checks policy-rc.d which says it +# is not allowed to, and (b) it wants to build the index in the background which +# will be racy in the context of live-build. + +if [ -x /usr/sbin/update-apt-xapian-index ] +then + PYTHONDONTWRITEBYTECODE=1 /usr/sbin/update-apt-xapian-index --force --quiet +fi diff --git a/system-build/share/hooks/normal/0420-update-glx-alternative.hook.chroot b/system-build/share/hooks/normal/0420-update-glx-alternative.hook.chroot new file mode 100755 index 0000000..8c36c43 --- /dev/null +++ b/system-build/share/hooks/normal/0420-update-glx-alternative.hook.chroot @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +# Use mesa renderer by default +if [ -e /etc/alternatives/glx ] +then + update-alternatives --quiet --set glx /usr/lib/mesa-diverted +fi diff --git a/system-build/share/hooks/normal/0430-update-mlocate-database.hook.chroot b/system-build/share/hooks/normal/0430-update-mlocate-database.hook.chroot new file mode 100755 index 0000000..6bfdb3d --- /dev/null +++ b/system-build/share/hooks/normal/0430-update-mlocate-database.hook.chroot @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +# Update the mlocate database. +# +# It is convenient for this to be already up to date on the live system, and it +# means that if the live system is later installed to a hard disk then less +# work will be required after installation. + +if [ -x /usr/bin/updatedb.mlocate ] +then + updatedb.mlocate +fi diff --git a/system-build/share/hooks/normal/0440-update-nvidia-alternative.hook.chroot b/system-build/share/hooks/normal/0440-update-nvidia-alternative.hook.chroot new file mode 100755 index 0000000..e73b967 --- /dev/null +++ b/system-build/share/hooks/normal/0440-update-nvidia-alternative.hook.chroot @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +# Use newest nvidia version by default +if [ -e /etc/alternatives/nvidia ] && [ -e /usr/lib/nvidia/current ] +then + update-alternatives --quiet --set nvidia /usr/lib/nvidia/current +fi diff --git a/system-build/share/hooks/normal/0910-remove-apt-sources-lists b/system-build/share/hooks/normal/0910-remove-apt-sources-lists new file mode 100755 index 0000000..1c8ca2d --- /dev/null +++ b/system-build/share/hooks/normal/0910-remove-apt-sources-lists @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +# Remove apt sources.list files + +rm -f /etc/apt/sources.list +rm -f /etc/apt/sources.list.d/*.list -- cgit v1.2.3