更改主机名

This commit is contained in:
2023-11-13 15:09:59 +08:00
parent 60ef6a9893
commit 6322718144
5 changed files with 6 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
Package: cn.flamescion.bookworm-compatibility-mode Package: cn.flamescion.bookworm-compatibility-mode
Version: 12.3.5 Version: 12.3.6
Section: misc Section: misc
Priority: optional Priority: optional
Depends: bubblewrap,flatpak,zenity Depends: bubblewrap,flatpak,zenity

View File

@@ -67,6 +67,7 @@ else
for file in "$DPKG_INFO_PATH"/*.list; do for file in "$DPKG_INFO_PATH"/*.list; do
if grep -q "$IN_CONTAINER_PATH" "$file"; then if grep -q "$IN_CONTAINER_PATH" "$file"; then
PKGNAME_GUESS=$(basename "$file" .list | cut -d':' -f1) PKGNAME_GUESS=$(basename "$file" .list | cut -d':' -f1)
echo "Get pkgname $PKGNAME_GUESS, uninstalling..."
bookworm-run apt autopurge $PKGNAME_GUESS -y bookworm-run apt autopurge $PKGNAME_GUESS -y
ret=$? ret=$?
if [ "$ret" = "0" ];then if [ "$ret" = "0" ];then

View File

@@ -50,7 +50,7 @@ bwrap --dev-bind $chrootEnvPath/ / \
--bind-try /usr/share/themes /usr/local/share/themes \ --bind-try /usr/share/themes /usr/local/share/themes \
--bind-try /usr/share/icons /usr/local/share/icons \ --bind-try /usr/share/icons /usr/local/share/icons \
--bind-try /usr/share/fonts /usr/local/share/fonts \ --bind-try /usr/share/fonts /usr/local/share/fonts \
--hostname bookworm-compatibility-mode \ --hostname Amber-CE-Bookworm \
--unshare-uts \ --unshare-uts \
--dev-bind /etc/resolv.conf /etc/resolv.conf \ --dev-bind /etc/resolv.conf /etc/resolv.conf \
--dev-bind /home /home \ --dev-bind /home /home \
@@ -222,7 +222,7 @@ sudo -u $(who | awk '{print $1}' | head -n 1) bwrap --dev-bind $chrootEnvPath/ /
--ro-bind /usr/share/themes /usr/local/share/themes \ --ro-bind /usr/share/themes /usr/local/share/themes \
--ro-bind /usr/share/icons /usr/local/share/icons \ --ro-bind /usr/share/icons /usr/local/share/icons \
--ro-bind /usr/share/fonts /usr/local/share/fonts \ --ro-bind /usr/share/fonts /usr/local/share/fonts \
--hostname bookworm-compatibility-mode \ --hostname Amber-CE-Bookworm \
--unshare-uts \ --unshare-uts \
--dev-bind /etc/resolv.conf /etc/resolv.conf \ --dev-bind /etc/resolv.conf /etc/resolv.conf \
--dev-bind /home /home \ --dev-bind /home /home \

View File

@@ -68,7 +68,7 @@ bwrap --dev-bind / / \
--ro-bind /usr/share/themes /usr/local/share/themes \ --ro-bind /usr/share/themes /usr/local/share/themes \
--ro-bind /usr/share/icons /usr/share/icons \ --ro-bind /usr/share/icons /usr/share/icons \
--ro-bind /usr/share/fonts /usr/local/share/fonts \ --ro-bind /usr/share/fonts /usr/local/share/fonts \
--hostname bookworm-compatibility-mode \ --hostname Amber-CE-Bookworm \
--unshare-uts \ --unshare-uts \
--dev-bind /etc/resolv.conf /etc/resolv.conf \ --dev-bind /etc/resolv.conf /etc/resolv.conf \
--cap-add CAP_SYS_ADMIN \ --cap-add CAP_SYS_ADMIN \

View File

@@ -67,7 +67,7 @@ bwrap --dev-bind / / \
--ro-bind /usr/share/themes /usr/local/share/themes \ --ro-bind /usr/share/themes /usr/local/share/themes \
--ro-bind /usr/share/icons /usr/local/share/icons \ --ro-bind /usr/share/icons /usr/local/share/icons \
--ro-bind /usr/share/fonts /usr/local/share/fonts \ --ro-bind /usr/share/fonts /usr/local/share/fonts \
--hostname bookworm-compatibility-mode \ --hostname Amber-CE-Bookworm \
--unshare-uts \ --unshare-uts \
--dev-bind /etc/resolv.conf /etc/resolv.conf \ --dev-bind /etc/resolv.conf /etc/resolv.conf \
--cap-add CAP_SYS_ADMIN \ --cap-add CAP_SYS_ADMIN \