Compare commits

...

2 Commits

Author SHA1 Message Date
acfb32d51f 修复run-system-bwrap问题 2025-02-06 17:53:28 +08:00
4629bb495b 补充缺失依赖 2025-02-06 17:43:22 +08:00
2 changed files with 15 additions and 1 deletions
deb/DEBIAN
off-line-shell

@ -28,7 +28,8 @@ Depends: python3,
tree,
dpkg,
fakeroot,
bash
bash,
xdg-utils
Recommends: winbind,
wimtools | wimlib,
python3-pyquery,

@ -11,9 +11,22 @@ if [[ -d /usr/lib64 ]] && [[ -d $SHELL_FOLDER/lib64 ]]; then
option="$option --dev-bind $SHELL_FOLDER/lib64 /usr/lib64 "
fi
if [[ -d /usr/share/fonts ]]; then
option="$option --dev-bind /usr/share/fonts /usr/share/fonts "
fi
if [[ -d $SHELL_FOLDER/gnemul ]]; then
if [[ ! -d /usr/gnemul ]]; then
pkexec mkdir -p /usr/gnemul
fi
option="$option --dev-bind $SHELL_FOLDER/gnemul /usr/gnemul "
fi
bwrap --dev-bind / / \
--dev-bind "$SHELL_FOLDER/bin" /usr/bin \
--dev-bind "$SHELL_FOLDER/bin" /bin \
--dev-bind "$SHELL_FOLDER/lib" /usr/lib \
--dev-bind "$SHELL_FOLDER/lib" /lib \
--dev-bind /usr/lib/locale /usr/lib/locale \
--dev-bind "$SHELL_FOLDER/share" /usr/share \
$option \