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