Add base package with stow configuration system

This commit is contained in:
2025-09-23 00:11:59 -04:00
parent 3e0ae9f2b3
commit 809418ff98
2 changed files with 51 additions and 23 deletions

View File

@@ -1,37 +1,52 @@
.PHONY: build install clean .PHONY: default init configure build install clean
DIST := trixie DIST := trixie
INFO := debian13 INFO := debian13
ISO := $(shell readlink -f ./builds/trixie/live-image-amd64.hybrid.iso)
NAME := live_$(DIST) NAME := live_$(DIST)
MEM := 16384 SESH := qemu:///session
CPU := 2 PKGS := base
STOW := base
MACH := q35
VCPU := 2
MEM := 8192
NET := user,model=virtio
CPU := host-passthrough
ISO := $(shell readlink -f ./builds/$(DIST)/live-image-amd64.hybrid.iso)
default: build default: init configure build
build: init:
mkdir -p builds/$(DIST) mkdir -p builds/$(DIST)
cd builds/$(DIST) && \ cd builds/$(DIST) && \
lb config \ lb config --distribution $(DIST) --debian-installer live
--distribution $(DIST) \
--debian-installer live && \ configure:
stow -t ./builds/$(DIST) -D $(PKGS)
stow -t ./builds/$(DIST) $(STOW)
build:
cd builds/$(DIST) && \
sudo lb clean --chroot && \
sudo lb build sudo lb build
install: install:
virt-install --connect qemu:///session \ virt-install \
--connect "$(SESH)" \
--name "$(NAME)" \ --name "$(NAME)" \
--osinfo "$(INFO)" \ --osinfo "$(INFO)" \
--machine q35 \ --vcpus "$(VCPU)" \
--memory "$(MEM)" --vcpus "$(CPU)" \ --memory "$(MEM)" \
--cpu host-model --virt-type kvm \ --machine "$(MACH)" \
--cpu "$(CPU)" \
--virt-type kvm \
--cdrom "$(ISO)" \ --cdrom "$(ISO)" \
--disk none \ --disk none \
--network none \ --network "$(NET)" \
--graphics spice,listen=127.0.0.1 \ --graphics spice,listen=127.0.0.1 \
--video virtio \ --video virtio \
--noautoconsole --noautoconsole
clean: clean:
virsh --connect qemu:///session \ virsh --connect "$(SESH)" destroy "$(NAME)" || true
undefine --nvram --snapshots-metadata "$(NAME)" || true virsh --connect "$(SESH)" undefine "$(NAME)" || true
sudo rm -rf ./builds sudo rm -rf ./builds

View File

@@ -0,0 +1,13 @@
bind9-dnsutils
curl
openssh-client
pwgen
python3-pip
python3-venv
stow
tmux
traceroute
tree
vim
wget
wireguard