瀏覽代碼

判断是否安装 binfmt-support,qemu-user-static

侠义书生 3 年之前
父節點
當前提交
79876eefd2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      debootstrap/kylinos/rootfs.sh

+ 1 - 1
debootstrap/kylinos/rootfs.sh

@@ -63,7 +63,7 @@ function do_rootfs() {
     fi
 
     # 制作其他架构,判断是否安装 binfmt-support,qemu-user-static
-    if [ "$(dpkg --print-architecture)" = "${ARCH}" ]; then
+    if [ "$(dpkg --print-architecture)" != "${ARCH}" ]; then
         if ! dpkg -l | grep binfmt-support; then
             sudo apt install -y binfmt-support
         fi