aboutsummaryrefslogtreecommitdiffstats
path: root/stage2
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-08-05 19:52:58 +0200
committerSven Gothel <[email protected]>2021-08-05 19:52:58 +0200
commitc21dc9ad068f8b1304d0903007a7ea67b95a04cb (patch)
tree7e7062d649fbd303b5a90c3cbd591c563f1e0491 /stage2
parent4468cec003ec072e0f5c3ed52c3fc943aab481cb (diff)
TARGET_RASPI and TARGET_ARCH=armhf: Disable 'arm_64bit=1' in config.txt files
Diffstat (limited to 'stage2')
-rwxr-xr-xstage2/01-sys-tweaks/01-run.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh
index dc78c31..6cd75d6 100755
--- a/stage2/01-sys-tweaks/01-run.sh
+++ b/stage2/01-sys-tweaks/01-run.sh
@@ -172,6 +172,10 @@ if [ "${ROOTFS_RO}" = "1" ] ; then
install -m 644 files/boot/sys_arm64_000/cmdline-rootfs_ro.txt "${ROOTFS_DIR}/boot/sys_${TARGET_ARCH}_000/cmdline.txt"
sed -i "s/sys_arm64_000/sys_${TARGET_ARCH}_000/g" "${ROOTFS_DIR}/boot/config.txt"
sed -i "s/sys_arm64_000/sys_${TARGET_ARCH}_000/g" "${ROOTFS_DIR}/boot/sys_${TARGET_ARCH}_000/config.txt"
+ if [ "${TARGET_ARCH}" = "armhf" ]; then
+ sed -i "s/arm_64bit=1/# arm_64bit=1/g" "${ROOTFS_DIR}/boot/config.txt"
+ sed -i "s/arm_64bit=1/# arm_64bit=1/g" "${ROOTFS_DIR}/boot/sys_${TARGET_ARCH}_000/config.txt"
+ fi
else
install -m 644 files/grub/custom-rootfs_ro.cfg "${ROOTFS_DIR}/boot/grub/custom.cfg"
sed -i "s/sys_amd64_000/sys_${TARGET_ARCH}_000/g" "${ROOTFS_DIR}/boot/grub/custom.cfg"