iso=live-cd.iso 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 packages+=linux-image-4.19.0-11-amd64 packages+=firmware-atheros,firmware-brcm80211,firmware-iwlwifi,firmware-misc-nonfree # packages+=firmware-ipw2x00 define SOURCES := deb http://cdn.debian.net/debian ${release} main non-free endef release=buster modules=nodm,xfce,live,approx hostname=live rootpass=root # rootkey=image_ssh users=live # wifi=MyWiFi # wifipass=P4ssW0rD timezone=Europe/Berlin locales=de_DE.UTF-8 #,en_US.UTF-8 keyboard=de nodm_user=live approx=http://localhost:9000/debian .PHONY: _live_initrd _config: _live_initrd _live_initrd: cfg_root _live_modules # printf '%s\n' "isofs" "squashfs" "ata_generic" "usb_storage" "sr_mod" "mmc_block" >>"$${CFGROOT}/etc/initramfs-tools/modules" sed -i 's;^MODULES=.*$$;MODULES=most;' "$${CFGROOT}/etc/initramfs-tools/initramfs.conf" .PHONY: _favorites _config: _favorites _favorites: _xfce 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' \ >"$${CFGROOT}/etc/xdg/xfce4/panel/whiskermenu-10.rc" # Place some helpers in bash history ;-) _config: cfg_root/home/live/.bash_history cfg_root/home/live/.bash_history: cfg_root _users mkdir "$${CFGROOT}/home/live" printf '%s\n' \ "sudo git clone https://git.plutz.net/git/blast /mnt/blast" \ "for m in /proc /sys /dev /run; do sudo mount -o rbind $$m /mnt/$$m; done" \ >$@ chroot "$${CFGROOT}" chown live:live -R /home/live # Fake gksu/gksudo, because live password is empty anyway, needed for installer _config: cfg_root/usr/local/bin/gksu cfg_root/usr/local/bin/gksu: ln -s /usr/bin/sudo $@ ln -s /usr/bin/sudo $@do # include debian installer _iso_image: iso_root/install/gtk/initrd.gz iso_root/install/gtk/initrd.gz: /usr/lib/debian-installer/images/10/amd64/gtk/debian-installer/amd64/initrd.gz mkdir -p "$(dir $@)" cp "$<" "$@" # Make boot folder available for browsing and for debian-installer # Need to create boot folder in ramdrive because it will not be contained in squashfs .PHONY: _bootmount _isosquash: _bootmount _bootmount: cfg_root _config printf '@reboot mkdir -m755 /boot\n' >>"$${CFGROOT}/var/spool/cron/crontabs/root" chmod 600 "$${CFGROOT}/var/spool/cron/crontabs/root" printf '%s 0 0\n' \ '/run/live/medium /boot/ bind auto,bind' \ '/run/live/medium /lib/live/mount/medium bind auto,bind' \ >"$${CFGROOT}/etc/fstab"