From 9e67e5ffa51d282ad0eb1596e2f06c888a3983f5 Mon Sep 17 00:00:00 2001 From: bryan Date: Thu, 24 Apr 2025 12:05:43 -0400 Subject: [PATCH] Replace buildah copy with mount --- installJRMC | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/installJRMC b/installJRMC index 6da8e24..1f188ed 100755 --- a/installJRMC +++ b/installJRMC @@ -770,11 +770,13 @@ acquire_deb_new() { fi # Define the repositories to search + local mnt apt_mc_container && 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" # Return if the download was successful