diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-02-28 19:18:50 +0100 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-02-28 19:30:42 +0100 |
| commit | 39dc9c98c687049d060b70a6b5d1a99bc7b35c34 (patch) | |
| tree | f7f67acc1707a0bb8e6aa2a908449b29a42bddec /scripts/utils | |
| parent | 16733f4e39c042a7a6e870cb881785bb55d51723 (diff) | |
| download | vyos-build-39dc9c98c687049d060b70a6b5d1a99bc7b35c34.tar.gz vyos-build-39dc9c98c687049d060b70a6b5d1a99bc7b35c34.zip | |
T8311: fix initramfs hook "dpkg-architecture: command not found"
Commit f4877564276947 ("T8311: De-hardcode arch for live-build-config
10-vyos-addons") introduced a regression where an unavailable third-party
helper script was invoked during initramfs hook execution, breaking the ISO
build process.
update-initramfs: Generating /boot/initrd.img-6.6.127-vyos
live-boot: core filesystems devices utils wget blockdev.
/etc/initramfs-tools/hooks/10-vyos-addons: line 3: dpkg-architecture: command not found
The dpkg-architecture helper, provided by the dpkg-dev package, is not
available during hook execution. The same result can be achieved using GNU
coreutils instead:
On x86_64 (aka amd64) both yield the same result:
$ echo $(uname -m)-linux-gnu
x86_64-linux-gnu
$ echo $(dpkg-architecture -qDEB_HOST_MULTIARCH)
x86_64-linux-gnu
On aarch64 (aka arm64) both yield the same result:
$ echo $(uname -m)-linux-gnu
aarch64-linux-gnu
$ echo $(dpkg-architecture -qDEB_HOST_MULTIARCH)
aarch64-linux-gnu
Diffstat (limited to 'scripts/utils')
0 files changed, 0 insertions, 0 deletions
