Add script to create bookworm schroot
authorSadoon Albader <sadoon@soulserv.xyz>
Fri, 18 Aug 2023 12:17:14 +0000 (15:17 +0300)
committerSadoon Albader <sadoon@soulserv.xyz>
Fri, 18 Aug 2023 12:17:14 +0000 (15:17 +0300)
mk-schroot-bookworm [new file with mode: 0644]

diff --git a/mk-schroot-bookworm b/mk-schroot-bookworm
new file mode 100644 (file)
index 0000000..e660052
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+echo "SCRIPT IS STILL WIP, DO NOT RUN"
+
+if [ "$EUID" -ne 0 ]
+  then echo "Please run as root"
+  exit
+fi
+
+# These can be changed to fit your setup without harming the process
+SCHROOT_DIR=/srv/chroot/bookworm-ppc64el-sbuild
+DEBMIRROR=ftp.us.debian.org
+
+# This should not be changed until we want to build a future release
+RELEASE=bookworm
+
+sbuild-createchroot --include=eatmydata,ccache $RELEASE $SCHROOT_DIR http://127.0.0.1:3142/$DEBMIRROR/debian
+