packages=alsa-utils,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,qemu-kvm,qemu-system-gui,qemu-utils,rdesktop,ssh,synaptic,telnet,tmux,vlc
packages+=linux-image-4.19.0-11-amd64
packages+=firmware-atheros,firmware-brcm80211,firmware-iwlwifi,firmware-misc-nonfree
# packages+=firmware-ipw2x00
packages=alsa-utils,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,qemu-kvm,qemu-system-gui,qemu-utils,rdesktop,ssh,synaptic,telnet,tmux,vlc
packages+=linux-image-4.19.0-11-amd64
packages+=firmware-atheros,firmware-brcm80211,firmware-iwlwifi,firmware-misc-nonfree
# packages+=firmware-ipw2x00
-## Debian release, so far only stretch has been tested
-release=buster
-
-## Comma separated list of config modules from modules/ directory
-modules=nodm,xfce,live,approx
-
-
-## Wifi configuration, if a Wifi password is given, WPA encryption will be used
-## without the password, the system will try to connect to an open wifi
-#wifi=berlin.freifunk.net
-
-## In nodm, use full screen chromium web browser as session
-# webui=http://localhost/
-
-## When using NIS modules the directory server should be given
-# nis_server=nismaster
-
-## If the approxmodule is enabled, then one (and only one) apt-source
-## can be choosen to install packages from
-## See modules/approx.mk if you need more flexibility
_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"
_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"
-
-_config: cfg_root/usr/share/kxmlgui5/dolphin/dolphinui.rc
-_config: cfg_root/usr/local/bin/gksu
-
-cfg_root/usr/share/kxmlgui5/dolphin/dolphinui.rc: cfg_root _xfce
- mkdir -p "$(dir $@)"
- printf '%s\n' '<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">' \
- '<kpartgui name="dolphin" version="21">' \
- '<ActionProperties scheme="Default">' \
- '<Action name="new_tab" shortcut="Ctrl+T; "/>' \
- '</ActionProperties>' \
- '</kpartgui>' \
- >$@
-
-cfg_root/usr/local/bin/gksu:
- ln -s /usr/bin/sudo $@
- ln -s /usr/bin/sudo $@do
-
+.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"
_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"
_config: cfg_root/home/live/.bash_history
cfg_root/home/live/.bash_history: cfg_root _users
mkdir "$${CFGROOT}/home/live"
_config: cfg_root/home/live/.bash_history
cfg_root/home/live/.bash_history: cfg_root _users
mkdir "$${CFGROOT}/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
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' \
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' \