]> git.plutz.net Git - blast/blob - live-cd.mk
enable bullseye built
[blast] / live-cd.mk
1 iso=live-cd.iso
2
3 packages=aqemu,debian-installer-launcher,debootstrap,dnsutils,dosfstools,exfat-fuse,exfat-utils,firefox-esr,firefox-esr-l10n-de,git,gparted,gwenview,make,man-db,manpages-de,mousepad,ncat,network-manager-gnome,ntfs-3g,okular,pavucontrol,pulseaudio,pulseaudio-module-bluetooth,qemu-kvm,qemu-system-gui,qemu-utils,ssh,synaptic,telnet,tmux,vlc,xinput
4 packages+=linux-image-amd64
5 packages+=firmware-atheros,firmware-brcm80211,firmware-iwlwifi,firmware-misc-nonfree
6 # packages+=firmware-ipw2x00
7
8 release=bullseye
9
10 define SOURCES :=
11 deb     http://cdn.debian.net/debian ${release} main non-free
12 endef
13
14 modules=nodm,xfce,live,approx
15 hostname=live
16 rootpass=root
17 # rootkey=image_ssh
18 users=live
19 # wifi=MyWiFi
20 # wifipass=P4ssW0rD
21 timezone=Europe/Berlin
22 locales=de_DE.UTF-8 #,en_US.UTF-8
23 keyboard=de
24 nodm_user=live
25 approx=http://localhost:9000/debian
26
27 .PHONY: _live_initrd
28 _config: _live_initrd
29 _live_initrd: cfg_root _live_modules
30         # printf '%s\n' "isofs" "squashfs" "ata_generic" "usb_storage" "sr_mod" "mmc_block" >>"$${CFGROOT}/etc/initramfs-tools/modules"
31         sed -i 's;^MODULES=.*$$;MODULES=most;' "$${CFGROOT}/etc/initramfs-tools/initramfs.conf"
32 .PHONY: _favorites
33 _config: _favorites
34 _favorites: _xfce
35         printf 'favorites=debian-installer-launcher.desktop,libreoffice-startcenter.desktop,firefox-esr.desktop,xfce4-terminal.desktop,org.kde.dolphin.desktop,mousepad.desktop,synaptic.desktop,aqemu.desktop,gparted.desktop' \
36                 >"$${CFGROOT}/etc/xdg/xfce4/panel/whiskermenu-10.rc"
37
38 # Place some helpers in bash history ;-)
39 _config: cfg_root/home/live/.bash_history
40 cfg_root/home/live/.bash_history: cfg_root _users
41         mkdir "$${CFGROOT}/home/live"
42         printf '%s\n' \
43                 'sudo git clone https://git.plutz.net/git/blast /mnt/blast' \
44                 'for m in /proc /sys /dev /run; do sudo mount -o rbind $$m /mnt/$$m; done' \
45                 >$@
46         chroot "$${CFGROOT}" chown live:live -R /home/live
47
48 # Fake gksu/gksudo, because live password is empty anyway, needed for installer
49 _config: cfg_root/usr/local/bin/gksu
50 cfg_root/usr/local/bin/gksu:
51         ln -s /usr/bin/sudo $@
52         ln -s /usr/bin/sudo $@do
53
54
55 # include debian installer
56 _iso_image: iso_root/install/gtk/initrd.gz
57 iso_root/install/gtk/initrd.gz: /usr/lib/debian-installer/images/10/amd64/gtk/debian-installer/amd64/initrd.gz
58         mkdir -p "$(dir $@)"
59         cp "$<" "$@"
60
61 # Make boot folder available for browsing and for debian-installer
62 # Need to create boot folder in ramdrive because it will not be contained in squashfs
63 .PHONY: _bootmount
64 _isosquash: _bootmount
65 _bootmount: cfg_root _config
66         printf '@reboot mkdir -m755 /boot\n' >>"$${CFGROOT}/var/spool/cron/crontabs/root"
67         chmod 600 "$${CFGROOT}/var/spool/cron/crontabs/root"
68         printf  '%s     0 0\n' \
69                 '/run/live/medium       /boot/  bind    auto,bind' \
70                 '/run/live/medium       /lib/live/mount/medium  bind    auto,bind' \
71                 >"$${CFGROOT}/etc/fstab"
72