diff options
author | Helmut Grohne <helmut@subdivi.de> | 2023-01-24 11:28:54 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2023-01-24 11:28:54 +0100 |
commit | f695cb4c22b57b0fadf76b82abc2324d39763282 (patch) | |
tree | 5f1b562703dc920464bc9e1448d7b2fb2e024dca /share | |
parent | 325ef6f74ee3852e1fd005db8b863724241c207b (diff) | |
download | debvm-f695cb4c22b57b0fadf76b82abc2324d39763282.tar.gz |
debvm-create: fix parsing dpkg architecture in multiarch case
Diffstat (limited to 'share')
-rwxr-xr-x | share/customize-kernel.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/customize-kernel.sh b/share/customize-kernel.sh index 4fe5974..23c2cd0 100755 --- a/share/customize-kernel.sh +++ b/share/customize-kernel.sh @@ -14,7 +14,7 @@ if dpkg-query --root="$TARGET" --showformat='${db:Status-Status}\n' --show 'linu exit 0 fi -ARCHITECTURE=$(cat "$TARGET/var/lib/dpkg/arch") +ARCHITECTURE=$(head -n1 "$TARGET/var/lib/dpkg/arch") KERNEL_ARCH="$ARCHITECTURE" case "$ARCHITECTURE" in |