]> git.plutz.net Git - blast/blob - live.mk
27e1e76a5ab4e643047979d36e056b792bd185e1
[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=chromium,chromium-sandbox,chromium-l10n,okular,libreoffice-writer,libreoffice-calc,libreoffice-l10n-de,libreoffice-gnome,hyphen-de,hunspell-de-de-frami,ssh,gparted,vlc,aqemu,qemu-kvm,leafpad,network-manager-gnome,synaptic,man,manpages-de,dolphin
11 packages=firefox-esr,firefox-esr-l10n-de,okular,libreoffice-writer,libreoffice-calc,libreoffice-l10n-de,libreoffice-gnome,hyphen-de,hunspell-de-de-frami,ssh,gparted,vlc,aqemu,qemu-kvm,qemu-utils,mousepad,network-manager-gnome,synaptic,man-db,manpages-de,dolphin,alsa-utils,pulseaudio,pavucontrol,konsole,inkscape,rdesktop,tmux,debootstrap,ntfs-3g,exfat-utils,exfat-fuse,dosfstools,qemu-system-gui
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 ## If nodm is installed, you can choose a user to login automatically
49 ## If no user is given here, then nodm will default to root
50 nodm_user=live
51
52 ## In nodm, use full screen chromium web browser as session
53 # webui=http://localhost/
54
55 ## When using NIS modules the directory server should be given
56 # nis_server=nismaster
57
58 ## If the approxmodule is enabled, then one (and only one) apt-source
59 ## can be choosen to install packages from
60 ## See modules/approx.mk if you need more flexibility
61 # approx=http://localhost:9000/debian
62
63 .PHONY: _live_initrd _favorites _kbdlayout #_bootmount
64 _config: _live_initrd _favorites _kbdlayout #_bootmount
65 _live_initrd: cfg_root _live_modules
66         # printf '%s\n' "isofs" "squashfs" "ata_generic" "usb_storage" "sr_mod" "mmc_block" >>"$${CFGROOT}/etc/initramfs-tools/modules"
67         sed -i 's;^MODULES=.*$$;MODULES=most;' "$${CFGROOT}/etc/initramfs-tools/initramfs.conf"
68
69 _config: cfg_root/usr/share/kxmlgui5/dolphin/dolphinui.rc
70
71 cfg_root/usr/share/kxmlgui5/dolphin/dolphinui.rc: cfg_root _xfce
72         mkdir -p "$(dir $@)"
73         printf '%s\n'   '<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">' \
74                         '<kpartgui name="dolphin" version="21">' \
75                         '<ActionProperties scheme="Default">' \
76                         '<Action name="new_tab" shortcut="Ctrl+T; "/>' \
77                         '</ActionProperties>' \
78                         '</kpartgui>' \
79                 >$@
80
81 _favorites: _xfce
82         printf 'favorites=libreoffice-startcenter.desktop,firefox-esr.desktop,xfce4-terminal.desktop,org.kde.dolphin.desktop,mousepad.desktop,synaptic.desktop,aqemu.desktop,gparted.desktop' \
83                 >"$${CFGROOT}/etc/xdg/xfce4/panel/whiskermenu-10.rc"
84
85 _kbdlayout: cfg_root
86         sed -Ei 's;^XKBLAYOUT=.*$$;XKBLAYOUT="de";;' "$${CFGROOT}/etc/default/keyboard"
87
88 #_bootmount: cfg_root
89 #       printf '/lib/live/mount/medium  /boot/  bind    auto,bind       0 0\n' >>"$${CFGROOT}/etc/fstab"