From 91d293e78f4a8fb186e0d8e8f49f3efea69b8f20 Mon Sep 17 00:00:00 2001 From: Marcus Date: Mon, 1 May 2023 07:39:57 +0200 Subject: [PATCH] progress --- makeanything.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/makeanything.sh b/makeanything.sh index 2596398..24463c7 100755 --- a/makeanything.sh +++ b/makeanything.sh @@ -38,13 +38,10 @@ sudo apt install \ message "Checking build directory" test -f build/chroot || mkdir -p build/chroot -###fakeroot -s build/fakechroot.save fakechroot debootstrap --variant=fakechroot bullseye build/chroot/ http://ftp.de.debian.org/debian -###fakechroot fakeroot debootstrap bullseye build/chroot/ http://ftp.de.debian.org/debian - ### 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. - message "running debootstrap" -sudo debootstrap bullseye build/chroot/ http://ftp.de.debian.org/debian || sudo debootstrap bullseye build/chroot/ http://ftp.de.debian.org/debian +sudo debootstrap bullseye build/chroot/ http://mirror.ipb.de/debian/ || sudo debootstrap bullseye build/chroot/ http://mirror.ipb.de/debian/ + message "copy xdgmenumaker deb file into chroot" sudo cp deb/xdgmenumaker* build/chroot/tmp message "deploying install_base" @@ -96,8 +93,7 @@ apt install -y \\ ### set root password echo -e "debian\ndebian" | (passwd root) ### add debian user -#useradd -m -U -s /bin/bash debian -echo -e "debian\ndebian\n\n\n\n\n\n\n" | (adduser -q debian) +useradd -m -U -s /bin/bash debian ### set password echo -e "debian\ndebian" | (passwd debian) ### Configure timezone and locale @@ -121,6 +117,9 @@ EOF message "run install_base" $CHROOTCMD /bin/bash /tmp/install_base.sh || error +message "clear /tmp" +$CHROOTCMD /usr/bin/rm -Rf /tmp/* || error + ### copy nanodesk configs to chroot message "copy nanodesk config files into chroot" sudo cp -r src/* build/chroot/