diff --git a/Makefile b/Makefile index a2b7b21..f13a882 100644 --- a/Makefile +++ b/Makefile @@ -1,24 +1,30 @@ -.PHONY: build install clean +.PHONY: default configure build install clean DIST := trixie INFO := debian13 -ISO := $(shell readlink -f ./builds/trixie/live-image-amd64.hybrid.iso) NAME := live_$(DIST) +PKGS := base +STOW := base +ISO := $(shell readlink -f ./builds/$(DIST)/live-image-amd64.hybrid.iso) MEM := 16384 CPU := 2 -default: build +default: configure build -build: +configure: mkdir -p builds/$(DIST) cd builds/$(DIST) && \ - lb config \ - --distribution $(DIST) \ - --debian-installer live && \ + lb config --distribution $(DIST) --debian-installer live + stow -t ./builds/$(DIST) -D $(PKGS) + stow -t ./builds/$(DIST) $(STOW) + +build: + cd builds/$(DIST) && \ + sudo lb clean --chroot && \ sudo lb build install: - virt-install --connect qemu:///session \ + virt-install \ --name "$(NAME)" \ --osinfo "$(INFO)" \ --machine q35 \ @@ -32,6 +38,6 @@ install: --noautoconsole clean: - virsh --connect qemu:///session \ - undefine --nvram --snapshots-metadata "$(NAME)" || true + virsh destroy "$(NAME)" || true + virsh undefine "$(NAME)" || true sudo rm -rf ./builds diff --git a/base/config/package-lists/base.list.chroot b/base/config/package-lists/base.list.chroot new file mode 100644 index 0000000..dec175a --- /dev/null +++ b/base/config/package-lists/base.list.chroot @@ -0,0 +1,9 @@ +curl +pwgen +python3-pip +python3-venv +stow +tmux +tree +vim +wireguard