]> git.plutz.net Git - blast/blob - live.mk
merged updates from master
[blast] / live.mk
1 ## Choose only on of the possible target types
2 # image=disk.img
3 # squash=rootfs.squash
4 iso=live.iso
5
6 ## Image size in MB. Needs to be able to hold all software.
7 # imagesize=3072
8
9 ## Additional packages
10 packages=firefox-esr,firefox-esr-l10n-de,okular,ssh,gparted,qemu-kvm,mousepad,network-manager-gnome,synaptic,man-db,manpages-de,alsa-utils,pulseaudio,pavucontrol,rdesktop,tmux,debootstrap,ntfs-3g,exfat-utils,exfat-fuse,dosfstools,qemu-system-gui,ncat,make,dnsutils,telnet,debian-installer-launcher,aqemu,qemu-utils,vlc,dolphin,konsole,abiword,gnumeric,gnumeric-plugins-extra,fonts-liberation,aspell-de,frozen-bubble,kpat
11 # packages += ,libreoffice-writer,libreoffice-calc,libreoffice-l10n-de,libreoffice-gnome,hyphen-de,hunspell-de-de-frami
12
13 ## Debian release, so far only stretch has been tested
14 release=buster
15
16 ## Comma separated list of config modules from modules/ directory
17 modules=nodm,xfce,live #,approx
18
19 ## Hostname for the generated machine
20 hostname=live
21
22 ## Root password will be salted and encrypted in image
23 rootpass=root
24
25 ## The corresponding .pub file for the given rootkey will be applied as
26 ## SSH login file for the root user.
27 ## If the pub file is not found, a new key pair will be generated
28 # rootkey=image_ssh
29
30 ## Comma separated list of users to be set up.
31 ## User logins will start out with an empty password
32 ## If the live module is in use, users will also be added to the sudo group
33 # users=adam,steve
34 users=live
35
36 ## Wifi configuration, if a Wifi password is given, WPA encryption will be used
37 ## without the password, the system will try to connect to an open wifi
38 #wifi=berlin.freifunk.net
39 # wifi=MyWiFi
40 # wifipass=P4ssW0rD
41
42 ## Timezone as offered by Debians tzdata selection
43 timezone=Europe/Berlin
44
45 ## Comma separated list of locales, first one will become default locale
46 locales=de_DE.UTF-8 #,en_US.UTF-8
47
48 keyboard=de
49
50 ## If nodm is installed, you can choose a user to login automatically
51 ## If no user is given here, then nodm will default to root
52 nodm_user=live
53
54 ## In nodm, use full screen chromium web browser as session
55 # webui=http://localhost/
56
57 ## When using NIS modules the directory server should be given
58 # nis_server=nismaster
59
60 ## If the approxmodule is enabled, then one (and only one) apt-source
61 ## can be choosen to install packages from
62 ## See modules/approx.mk if you need more flexibility
63 # approx=http://localhost:9000/debian
64
65 .PHONY: _live_initrd _favorites _bootmount
66 _config: _live_initrd _favorites
67 _isosquash: _bootmount
68 _live_initrd: cfg_root _live_modules
69         # printf '%s\n' "isofs" "squashfs" "ata_generic" "usb_storage" "sr_mod" "mmc_block" >>"$${CFGROOT}/etc/initramfs-tools/modules"
70         sed -i 's;^MODULES=.*$$;MODULES=most;' "$${CFGROOT}/etc/initramfs-tools/initramfs.conf"
71         sed -i 's;^COMPRESS=.*$$;COMPRESS=xz;' "$${CFGROOT}/etc/initramfs-tools/initramfs.conf"
72
73 _config: cfg_root/usr/share/kxmlgui5/dolphin/dolphinui.rc
74 _config: cfg_root/usr/local/bin/gksu
75
76 cfg_root/usr/share/kxmlgui5/dolphin/dolphinui.rc: cfg_root _xfce
77         mkdir -p "$(dir $@)"
78         printf '%s\n'   '<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">' \
79                         '<kpartgui name="dolphin" version="21">' \
80                         '<ActionProperties scheme="Default">' \
81                         '<Action name="new_tab" shortcut="Ctrl+T; "/>' \
82                         '</ActionProperties>' \
83                         '</kpartgui>' \
84                 >$@
85
86 cfg_root/usr/local/bin/gksu:
87         ln -s /usr/bin/sudo $@
88         ln -s /usr/bin/sudo $@do
89
90 _favorites: _xfce
91         printf 'favorites=libreoffice-startcenter.desktop,firefox-esr.desktop,xfce4-terminal.desktop,org.kde.dolphin.desktop,mousepad.desktop,synaptic.desktop,aqemu.desktop,gparted.desktop' \
92                 >"$${CFGROOT}/etc/xdg/xfce4/panel/whiskermenu-10.rc"
93
94 _bootmount: cfg_root _config
95         printf '/lib/live/mount/medium  /boot/  bind    auto,bind       0 0\n' >>"$${CFGROOT}/etc/fstab"