From 07885b9077214deaa44ca2e9bb5cfd22dbd460dd Mon Sep 17 00:00:00 2001
From: shenmo <jifengshenmo@outlook.com>
Date: Thu, 27 Jul 2023 16:18:07 +0800
Subject: [PATCH] add-build-container

---
 .../files/build-container.sh                           | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100755 src/opt/apps/cn.flamescion.bookworm-compatibility-mode/files/build-container.sh

diff --git a/src/opt/apps/cn.flamescion.bookworm-compatibility-mode/files/build-container.sh b/src/opt/apps/cn.flamescion.bookworm-compatibility-mode/files/build-container.sh
new file mode 100755
index 0000000..c80d2c9
--- /dev/null
+++ b/src/opt/apps/cn.flamescion.bookworm-compatibility-mode/files/build-container.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+if [ `which debootstrap` = "" ];then
+echo "Need to install debootstrap!"
+exit
+fi
+
+cd "`dirname $0`"
+sudo debootstrap bookworm ./bookworm-env https://mirrors.ustc.edu.cn/debian/
+tar -cJvf bookworm-env.tar.xz bookworm-env/*
+sudo rm -rf bookworm-env