Add base package with stow configuration system
This commit is contained in:
61
Makefile
61
Makefile
@@ -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 \
|
||||||
--name "$(NAME)" \
|
--connect "$(SESH)" \
|
||||||
--osinfo "$(INFO)" \
|
--name "$(NAME)" \
|
||||||
--machine q35 \
|
--osinfo "$(INFO)" \
|
||||||
--memory "$(MEM)" --vcpus "$(CPU)" \
|
--vcpus "$(VCPU)" \
|
||||||
--cpu host-model --virt-type kvm \
|
--memory "$(MEM)" \
|
||||||
--cdrom "$(ISO)" \
|
--machine "$(MACH)" \
|
||||||
--disk none \
|
--cpu "$(CPU)" \
|
||||||
--network none \
|
--virt-type kvm \
|
||||||
--graphics spice,listen=127.0.0.1 \
|
--cdrom "$(ISO)" \
|
||||||
--video virtio \
|
--disk none \
|
||||||
--noautoconsole
|
--network "$(NET)" \
|
||||||
|
--graphics spice,listen=127.0.0.1 \
|
||||||
|
--video virtio \
|
||||||
|
--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
|
||||||
|
13
base/config/package-lists/base.list.chroot
Normal file
13
base/config/package-lists/base.list.chroot
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
bind9-dnsutils
|
||||||
|
curl
|
||||||
|
openssh-client
|
||||||
|
pwgen
|
||||||
|
python3-pip
|
||||||
|
python3-venv
|
||||||
|
stow
|
||||||
|
tmux
|
||||||
|
traceroute
|
||||||
|
tree
|
||||||
|
vim
|
||||||
|
wget
|
||||||
|
wireguard
|
Reference in New Issue
Block a user