浏览代码

Replace buildah copy with mount

bryan 3 天之前
父节点
当前提交
9e67e5ffa5
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      installJRMC

+ 5 - 3
installJRMC

@@ -770,11 +770,13 @@ acquire_deb_new() {
   fi
   fi
 
 
   # Define the repositories to search
   # Define the repositories to search
+  local mnt
   apt_mc_container &&
   apt_mc_container &&
     execute sudo buildah run "$CNT" -- sh -c "
     execute sudo buildah run "$CNT" -- sh -c "
-      apt-get download --allow-unauthenticated mediacenter$MC_MVERSION &&
-      mkdir -p /download && mv *.deb /download/$fname" &&
-    execute sudo buildah copy "$CNT" "/download/$fname" "$MC_DEB" &&
+      apt-get download --allow-unauthenticated mediacenter$MC_MVERSION" &&
+    execute mnt="$(sudo buildah mount "$CNT")"
+    execute sudo cp "$mnt"/*.deb "$MC_DEB" &&
+    execute sudo buildah umount "$CNT" &&
     execute sudo buildah rm "$CNT"
     execute sudo buildah rm "$CNT"
 
 
   # Return if the download was successful
   # Return if the download was successful