Inital arm64 work

merge-requests/16/head
Steev Klimaszewski 4 years ago
parent 426ea9ff6d
commit 817f168d8c

@ -75,7 +75,7 @@ fi
# Define options that vary across architectures # Define options that vary across architectures
case "$arch" in case "$arch" in
amd64) amd64|arm64)
lb_opts="$lb_opts --debian-installer live" lb_opts="$lb_opts --debian-installer live"
;; ;;
i386) i386)

@ -27,7 +27,7 @@ image_name() {
live_image_name() { live_image_name() {
case "$KALI_ARCH" in case "$KALI_ARCH" in
i386|amd64) i386|amd64|arm64)
echo "live-image-$KALI_ARCH.hybrid.iso" echo "live-image-$KALI_ARCH.hybrid.iso"
;; ;;
armel|armhf) armel|armhf)
@ -145,6 +145,9 @@ if [ -n "$OPT_pu" ]; then
KALI_CONFIG_OPTS="$KALI_CONFIG_OPTS --proposed-updates" KALI_CONFIG_OPTS="$KALI_CONFIG_OPTS --proposed-updates"
KALI_DIST="$KALI_DIST+pu" KALI_DIST="$KALI_DIST+pu"
fi fi
if [ "$ARCHES" = "arm64" ]; then
KALI_CONFIG_OPTS="$KALI_CONFIG_OPTS --uefi-secure-boot disable"
fi
# Set sane PATH (cron seems to lack /sbin/ dirs) # Set sane PATH (cron seems to lack /sbin/ dirs)
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

@ -20,3 +20,7 @@ grub-efi-ia32
grub-efi grub-efi
grub-efi-amd64 grub-efi-amd64
#endif #endif
#if ARCHITECTURES arm64
# Note: There is no grub-efi package on arm64
grub-efi-arm64
#endif

@ -11,6 +11,8 @@ ARCHES=$5
cd $CDDIR cd $CDDIR
# Rebrand Debian into Kali # Rebrand Debian into Kali
# The theme doesn't exist on arm64...
if [ "$ARCHES" != "arm64" ]; then
sed -i -e 's|Debian GNU/Linux|Kali Linux|g' \ sed -i -e 's|Debian GNU/Linux|Kali Linux|g' \
-e 's|Kali GNU/Linux|Kali Linux|g' \ -e 's|Kali GNU/Linux|Kali Linux|g' \
-e 's|Debian kali-rolling|Kali Rolling|g' \ -e 's|Debian kali-rolling|Kali Rolling|g' \
@ -20,6 +22,7 @@ sed -i -e 's|Debian GNU/Linux|Kali Linux|g' \
../boot$DISKNUM/isolinux/*.txt \ ../boot$DISKNUM/isolinux/*.txt \
boot/grub/theme/* \ boot/grub/theme/* \
autorun.inf autorun.inf
fi
# Replace Debian specific documentation # Replace Debian specific documentation
rm -rf css rm -rf css

@ -45,7 +45,11 @@ 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/
require_optional_packages="true" if [ "$ARCH" = "arm64" ]; then
require_optional_packages="false"
else
require_optional_packages="true"
fi
ignore_missing_checksums="true" ignore_missing_checksums="true"
# Mirror variables # Mirror variables
@ -64,6 +68,9 @@ updates_mirror=""
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
kernel_packages="linux-image-arm64"
fi
# Random other variables # Random other variables
export default_desktop="xfce" export default_desktop="xfce"

Loading…
Cancel
Save