Compare commits
No commits in common. "master" and "v0.2" have entirely different histories.
4 changed files with 2 additions and 36 deletions
|
|
@ -3,6 +3,5 @@
|
||||||
lb config noauto \
|
lb config noauto \
|
||||||
--architectures amd64 \
|
--architectures amd64 \
|
||||||
--distribution buster \
|
--distribution buster \
|
||||||
--backports true \
|
--bootappend-live "boot=live components initrd=/live/initrd.img"
|
||||||
--bootappend-live "boot=live components initrd=/live/initrd.img" \
|
|
||||||
"${@}"
|
"${@}"
|
||||||
|
|
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
BASEDIR=/var/lib/machines
|
|
||||||
ID=$(uuidgen | tr -d -)
|
|
||||||
NAME=debian-live-cd-$ID
|
|
||||||
DIR=$BASEDIR/$NAME
|
|
||||||
|
|
||||||
echo "Generating container under $DIR"
|
|
||||||
zfs snapshot ztstor/ROOT/archie/var/lib/machines/buster-template@${ID}
|
|
||||||
zfs clone \
|
|
||||||
-o mountpoint=$DIR \
|
|
||||||
ztstor/ROOT/archie/var/lib/machines/buster-template@${ID} \
|
|
||||||
ztstor/ROOT/archie/var/lib/machines/$NAME
|
|
||||||
|
|
||||||
mkdir $DIR/var/live-build/
|
|
||||||
rsync -av . $DIR/var/live-build/
|
|
||||||
|
|
||||||
# Execute stuff inside container
|
|
||||||
systemd-nspawn -q --pipe -D $DIR /bin/bash << EOF
|
|
||||||
apt update
|
|
||||||
apt install -y live-build binutils
|
|
||||||
cd /var/live-build/
|
|
||||||
lb clean --purge
|
|
||||||
lb config
|
|
||||||
lb build
|
|
||||||
EOF
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo "---"
|
|
||||||
echo "Image lying under /var/lib/machines/$NAME"
|
|
||||||
#echo "Removing container..."
|
|
||||||
#zfs destroy ztstor/ROOT/archie/var/lib/machines/$NAME
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
include menu.cfg
|
include menu.cfg
|
||||||
default vesamenu.c32
|
default vesamenu.c32
|
||||||
prompt 0
|
prompt 0
|
||||||
timeout 50
|
timeout 0
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
linux-headers-amd64
|
|
||||||
zfs-dkms/buster-backports
|
|
||||||
zfsutils-linux/buster-backports
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue