try to make a config we can inlcude
This commit is contained in:
parent
16479f771c
commit
a11ea37b2f
2 changed files with 8 additions and 8 deletions
5
conf/makeanything.conf
Normal file
5
conf/makeanything.conf
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#DEBOOTSTRAP_SUITE="bullseye"
|
||||||
|
#DEBOOTSTRAP_OPTS="--extra-suites=bullseye-backports,bullseye-updates --components=main,contrib,non-free"
|
||||||
|
#DEBOOTSTRAP_OPTS="--extra-suites=${DEBOOTSTRAP_SUITE}-updates --components=main,contrib,non-free,non-free-firmware"
|
||||||
|
DEBOOTSTRAP_SUITE="bookworm"
|
||||||
|
DEBOOTSTRAP_OPTS="--components=main,contrib,non-free,non-free-firmware"
|
|
@ -5,6 +5,9 @@
|
||||||
### By: DeltaLima
|
### By: DeltaLima
|
||||||
### 2023
|
### 2023
|
||||||
|
|
||||||
|
### include config
|
||||||
|
. conf/makeanything.conf
|
||||||
|
|
||||||
CHROOTCMD="sudo chroot build/chroot/"
|
CHROOTCMD="sudo chroot build/chroot/"
|
||||||
test -n "$VERSION" || VERSION="$(git describe --tags)" #-$(git rev-parse --short HEAD)"
|
test -n "$VERSION" || VERSION="$(git describe --tags)" #-$(git rev-parse --short HEAD)"
|
||||||
|
|
||||||
|
@ -80,13 +83,6 @@ do
|
||||||
test -d $dir || mkdir -p $dir
|
test -d $dir || mkdir -p $dir
|
||||||
done
|
done
|
||||||
|
|
||||||
### i have the problem, that fakechroot will not work atm. in ubuntu 22.04 i get libc6 version mismatch errors. so we run it direct as root. not my favorite, but works for now.
|
|
||||||
#DEBOOTSTRAP_SUITE="bullseye"
|
|
||||||
#DEBOOTSTRAP_OPTS="--extra-suites=bullseye-backports,bullseye-updates --components=main,contrib,non-free"
|
|
||||||
DEBOOTSTRAP_SUITE="bookworm"
|
|
||||||
#DEBOOTSTRAP_OPTS="--extra-suites=${DEBOOTSTRAP_SUITE}-updates --components=main,contrib,non-free,non-free-firmware"
|
|
||||||
DEBOOTSTRAP_OPTS="--components=main,contrib,non-free,non-free-firmware"
|
|
||||||
|
|
||||||
message "running debootstrap $DEBOOTSTRAP_OPTS $DEBOOTSTRAP_SUITE $MIRROR"
|
message "running debootstrap $DEBOOTSTRAP_OPTS $DEBOOTSTRAP_SUITE $MIRROR"
|
||||||
sudo debootstrap ${DEBOOTSTRAP_OPTS} ${DEBOOTSTRAP_SUITE} build/chroot/ $MIRROR || message warn "debootstrap exited with code $?"
|
sudo debootstrap ${DEBOOTSTRAP_OPTS} ${DEBOOTSTRAP_SUITE} build/chroot/ $MIRROR || message warn "debootstrap exited with code $?"
|
||||||
|
|
||||||
|
@ -98,7 +94,6 @@ sudo cp templates/install_base.tpl.sh build/chroot/tmp/install_base.sh || error
|
||||||
sudo cp templates/install_base.custompkg.tpl.sh build/chroot/tmp/ || error
|
sudo cp templates/install_base.custompkg.tpl.sh build/chroot/tmp/ || error
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
message "run install_base.sh"
|
message "run install_base.sh"
|
||||||
$CHROOTCMD /bin/bash /tmp/install_base.sh || error
|
$CHROOTCMD /bin/bash /tmp/install_base.sh || error
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue