projects
/
dev-env-setup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c4baa6
)
Add script to create sffs chroot
author
Sadoon Albader
<sadoon@soulserv.xyz>
Fri, 18 Aug 2023 12:18:04 +0000
(15:18 +0300)
committer
Sadoon Albader
<sadoon@soulserv.xyz>
Fri, 18 Aug 2023 12:18:04 +0000
(15:18 +0300)
mk-sffs-chroot
[new file with mode: 0644]
patch
|
blob
diff --git a/mk-sffs-chroot
b/mk-sffs-chroot
new file mode 100644
(file)
index 0000000..
f32f116
--- /dev/null
+++ b/
mk-sffs-chroot
@@ -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