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