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