Live-debian_sway/makefile

57 lines
2.9 KiB
Makefile
Executable file

#!/usr/bin/make -f
# Change the default shell /bin/sh which does not implement 'source'
# source is needed to work in a python virtualenv
SHELL := /bin/bash
##############################
build:
# Build the live system/ISO image↵
sudo lb clean --all
#sudo lb config --debug --distribution bullseye --backports true --archive-areas "main contrib non-free non-free-firmware" --hdd-label NIHAL --uefi-secure-boot disable --image-name NIHAL-bullseye --linux-packages "linux-image li nux-headers"
lb config \
--debian-installer live \
--image-name NIHAL- \
--hdd-label NIHAL \
# add debian installer
mkdir -p config/package-lists
mkdir -p config/includes.installer
mkdir -p config/includes.chroot/lib/live/config
mkdir -p config/includes.chroot/etc/skel/.vim/colors
mkdir -p config/includes.chroot/etc/skel/.config/sway
mkdir -p config/includes.chroot/etc/skel/.config/waybar
mkdir -p config/includes.chroot/etc/skel/.config/wofi
# add debian-installer
echo "debian-installer-launcher" > config/package-lists/installer.list.chroot
echo "d-i debian-installer/locale string en_UK" > config/includes.installer/preseed.cfg
# add packages
cat packages.list > config/package-lists/desktop.list.chroot
# automaticially start sway after start
#echo "exec sway" > config/includes.chroot/etc/skel/rc.local
# add User-Config
cp bash_profile config/includes.chroot/etc/skel/.bash_profile
mkdir -p config/includes.chroot/etc/skel/
mkdir -p config/includes.chroot/etc/systemd/system
#mkdir -p config/includes.chroot/etc/systemd/system/graphical.target.wants
cp vimrc config/includes.chroot/etc/skel/.vimrc
cp swaysystemd config/includes.chroot/etc/systemd/system/sway.service
#cp swaysystemd config/includes.chroot/etc/systemd/system/graphical.target.wants/sway.service
cp startscript.sh config/hooks/live/startscript.hook.chroot
cp forest_refuge.vim config/includes.chroot/etc/skel/.vim/colors/
cp swayconfig config/includes.chroot/etc/skel/.config/sway/config
cp swayaudio.sh config/includes.chroot/etc/skel/.config/sway/audio.sh
cp swayexit.sh config/includes.chroot/etc/skel/.config/sway/exit.sh
#cp rc.local config/includes.chroot/etc/rc.local
cp swaylock_screen.sh config/includes.chroot/etc/skel/.config/sway/lock_screen.sh
#cp waybarconfig config/includes.chroot/etc/skel/.config/waybar/config
#cp waybarstyles.css config/includes.chroot/etc/skel/.config/waybar/syles.css
cp woficonfig config/includes.chroot/etc/skel/.config/wofi/config
cp wofistyles.css config/includes.chroot/etc/skel/.config/wofi/styles.css
cp sirius.png config/includes.chroot/etc/skel/.config/sway/sirius.png
#echo "exec --no-startup-id feh --bg-scale /home/user/.config/sway/sirius.png" >>config/includes.chroot/etc/skel/.config/sway/config
# modify grub -> not in VM with QEMU??
cp -r /usr/share/live/build/bootloaders config/
cp sirius.png config/bootloaders/grub-pc/splash.png
sudo lb build 2>&1 | tee build.log