Group arm64 specific overrides in the same if statement

merge-requests/16/head
Raphaël Hertzog 4 years ago
parent af6111b2f9
commit 71ee6a3001
No known key found for this signature in database
GPG Key ID: 03881DABEBC29AB9

@ -45,11 +45,7 @@ fi
# Mirror tools # Mirror tools
mirror_tools="reprepro download" mirror_tools="reprepro download"
mirror_files="" # Don't try to download README doc/ tools/ mirror_files="" # Don't try to download README doc/ tools/
if [ "$ARCH" = "arm64" ]; then require_optional_packages="true"
require_optional_packages="false"
else
require_optional_packages="true"
fi
ignore_missing_checksums="true" ignore_missing_checksums="true"
# Mirror variables # Mirror variables
@ -64,14 +60,16 @@ mirror_components="main contrib non-free"
security_mirror="" security_mirror=""
updates_mirror="" updates_mirror=""
# Kernel related # Kernel and architecture related
if [ "$ARCH" = "i386" ]; then if [ "$ARCH" = "i386" ]; then
kernel_packages="linux-image-686-pae" kernel_packages="linux-image-686-pae"
fi fi
if [ "$ARCH" = "arm64" ]; then if [ "$ARCH" = "arm64" ]; then
kernel_packages="linux-image-arm64" kernel_packages="linux-image-arm64"
# ARM devices don't typically have a default console set, so we export one here # ARM devices don't typically have a default console set, so we export one here
export KERNEL_PARAMS="console=tty0 " export KERNEL_PARAMS="console=tty0 "
# Some packages are not available on arm64
require_optional_packages="false"
fi fi
# Random other variables # Random other variables

Loading…
Cancel
Save