Compare commits
1 Commits
main
...
bc1f61e8cb
Author | SHA1 | Date | |
---|---|---|---|
bc1f61e8cb |
26
Makefile
26
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
|
||||
|
9
base/config/package-lists/base.list.chroot
Normal file
9
base/config/package-lists/base.list.chroot
Normal file
@@ -0,0 +1,9 @@
|
||||
curl
|
||||
pwgen
|
||||
python3-pip
|
||||
python3-venv
|
||||
stow
|
||||
tmux
|
||||
tree
|
||||
vim
|
||||
wireguard
|
Reference in New Issue
Block a user