乾:init写错了

This commit is contained in:
shenmo 2023-09-04 22:40:52 +08:00
parent a41397b0a2
commit 18eb44c8c3
2 changed files with 9 additions and 8 deletions
src
DEBIAN
opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bin

@ -1,8 +1,8 @@
Package: cn.flamescion.bookworm-compatibility-mode
Version: 12.1.9
Version: 12.1.10
Section: misc
Priority: optional
Depends: bubblewrap
Maintainer: shenmo <shenmo@spark-app.store>
Architecture: arm64
Architecture: amd64
Description: bwrap wrapper for install and running debs inside a bookworm container

@ -42,20 +42,20 @@ bwrap --dev-bind $chrootEnvPath/ / \
--dev-bind /media /media \
--dev-bind /tmp /tmp \
--dev /dev \
--dev-bind /dev/dri /dev/dri \
--dev-bind-try /dev/dri /dev/dri \
--proc /proc \
--dev-bind /sys /sys \
--dev-bind /run /run \
--dev-bind-try /run/user/$uid/pulse /run/user/$uid/pulse \
--dev-bind / /host \
--ro-bind /usr/share/themes /usr/local/share/themes \
--ro-bind /usr/share/icons /usr/local/share/icons \
--ro-bind /usr/share/fonts /usr/local/share/fonts \
--bind-try /usr/share/themes /usr/local/share/themes \
--bind-try /usr/share/icons /usr/local/share/icons \
--bind-try /usr/share/fonts /usr/local/share/fonts \
--hostname bookworm-compatibility-mode \
--unshare-uts \
--dev-bind /etc/resolv.conf /etc/resolv.conf \
--dev-bind /home /home \
bash -c "${container_command}"
$@
}
@ -200,7 +200,7 @@ sudo -u $(who | awk '{print $1}' | head -n 1) bwrap --dev-bind $chrootEnvPath/ /
--dev-bind /media /media \
--dev-bind /tmp /tmp \
--dev /dev \
--dev-bind /dev/dri /dev/dri \
--dev-bind-try /dev/dri /dev/dri \
--proc /proc \
--dev-bind /sys /sys \
--dev-bind /run /run \
@ -216,3 +216,4 @@ sudo -u $(who | awk '{print $1}' | head -n 1) bwrap --dev-bind $chrootEnvPath/ /
locale-gen
chown -R $(who | awk '{print $1}' | head -n 1) $chrootEnvPath