summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/customize-kernel.sh2
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