Live-debian_sway/makefile

53 lines
3 KiB
Makefile
Raw Normal View History

#!/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 linux-headers"
sudo lb config --debug --memtest memtest86+ --bootappend-live "boot=live component username=nihal" --distribution bookworm --debian-installer live --backports true --archive-areas "main contrib non-free non-free-firmware" --hdd-label NIHAL-bookworm --uefi-secure-boot disable --image-name NIHAL-bookworm --linux-packages "linux-image linux-headers"
# add debian installer
mkdir -p config/package-lists
mkdir -p config/includes.installer
#mkdir -p config/includes.chroot/hooks/live
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
cp .bashrc config/includes.chroot/etc/skel/.bashrc
mkdir -p config/includes.chroot/etc/skel/
mkdir -p config/includes.chroot/etc/systemd/system
cp vimrc config/includes.chroot/etc/skel/.vimrc
cp swaysystemd config/includes.chroot/etc/systemd/system/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