Skip to content

Commit

Permalink
bin/ubuntu-core-initramfs: pass missing environment to dpkg-architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
valentindavid authored and alfonsosanchezbeato committed Aug 13, 2024
1 parent 1086714 commit a47447d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ubuntu-core-initramfs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def install_misc(dest_dir, sysroot):
proc_env = os.environ.copy()
proc_env["DPKG_DATADIR"] = sysroot + "/usr/share/dpkg"
out = check_output(["dpkg-architecture", "-q",
"DEB_HOST_MULTIARCH"]).decode("utf-8")
"DEB_HOST_MULTIARCH"], env=proc_env).decode("utf-8")
deb_arch = out.splitlines()[0]
files = [
"/usr/bin/kmod",
Expand Down

0 comments on commit a47447d

Please sign in to comment.