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

diff --git a/mk-sffs-chroot b/mk-sffs-chroot
new file mode 100644 (file)
index 0000000..f32f116
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+echo "SCRIPT IS STILL WIP, DO NOT RUN"
+
+if [ "$EUID" -ne 0 ]
+  then echo "Please run as root"
+  exit
+fi
+
+REPODIR=/home/$LOGNAME/.local/src/bookworm-sffs/repo/
+RELEASE=bookworm
+CHROOT=/opt/chroot/$RELEASE-sffs/
+OPTS=--no-check-gpg --no-check-certificate
+
+debootstrap $RELEASE $CHROOT file://$REPODIR $OPTS