]> git.plutz.net Git - blast/blob - live-cd.mk
added items to package list (git, synaptic)
[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,make,man-db,manpages-de,mousepad,ncat,network-manager-gnome,ntfs-3g,xpdf,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 deb     http://cdn.debian.net/debian            ${release}-backports    main
13 deb     http://deb.debian.org/debian-security/  ${release}-security     main
14 endef
15
16 modules=nodm,xfce,live,approx
17 hostname=live
18 rootpass=root
19 # rootkey=image_ssh
20 users=live
21 # wifi=MyWiFi
22 # wifipass=P4ssW0rD
23 timezone=Europe/Berlin
24 locales=de_DE.UTF-8 #,en_US.UTF-8
25 keyboard=de
26 nodm_user=live
27 approx=http://localhost:9000/debian
28
29 .PHONY: _live_initrd
30 _config: _live_initrd
31 _live_initrd: cfg_root _live_modules
32         # printf '%s\n' "isofs" "squashfs" "ata_generic" "usb_storage" "sr_mod" "mmc_block" >>"$${CFGROOT}/etc/initramfs-tools/modules"
33         sed -i 's;^MODULES=.*$$;MODULES=most;' "$${CFGROOT}/etc/initramfs-tools/initramfs.conf"
34 .PHONY: _favorites
35 _config: _favorites
36 _favorites: _xfce
37         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' \
38                 >"$${CFGROOT}/etc/xdg/xfce4/panel/whiskermenu-10.rc"
39
40 # Place some helpers in bash history ;-)
41 _config: cfg_root/home/live/.bash_history
42 cfg_root/home/live/.bash_history: cfg_root _users
43         mkdir "$${CFGROOT}/home/live"
44         printf '%s\n' \
45                 'sudo git clone https://git.plutz.net/git/blast /mnt/blast' \
46                 'for m in /proc /sys /dev /run; do sudo mount -o rbind $$m /mnt/$$m; done' \
47                 >$@
48         chroot "$${CFGROOT}" chown live:live -R /home/live
49
50 # Fake gksu/gksudo, because live password is empty anyway, needed for installer
51 _config: cfg_root/usr/local/bin/gksu
52 cfg_root/usr/local/bin/gksu:
53         ln -s /usr/bin/sudo $@
54         ln -s /usr/bin/sudo $@do
55
56
57 # include debian installer
58 _iso_image: iso_root/install/gtk/initrd.gz
59 iso_root/install/gtk/initrd.gz: /usr/lib/debian-installer/images/10/amd64/gtk/debian-installer/amd64/initrd.gz
60         mkdir -p "$(dir $@)"
61         cp "$<" "$@"
62
63 # Make boot folder available for browsing and for debian-installer
64 # Need to create boot folder in ramdrive because it will not be contained in squashfs
65 .PHONY: _bootmount
66 _isosquash: _bootmount
67 _bootmount: cfg_root _config
68         printf '@reboot mkdir -m755 /boot\n' >>"$${CFGROOT}/var/spool/cron/crontabs/root"
69         chmod 600 "$${CFGROOT}/var/spool/cron/crontabs/root"
70         printf  '%s     0 0\n' \
71                 '/run/live/medium       /boot/  bind    auto,bind' \
72                 '/run/live/medium       /lib/live/mount/medium  bind    auto,bind' \
73                 >"$${CFGROOT}/etc/fstab"
74