diff options
author | Sven Gothel <[email protected]> | 2021-08-05 21:04:04 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-08-05 21:04:04 +0200 |
commit | 14902a25bf09df61cae86dd7ffd0a6885da2ad36 (patch) | |
tree | 07335b007746e495095a1c912dc98f40ce0b7277 /stage2/01-sys-tweaks/01-run.sh | |
parent | 53b2203c5d25f86faf6ac4711b0a7e370bf8689e (diff) |
TARGET_RASPI and TARGET_ARCH=armhf: Disable 'arm_64bit=1' in config.txt files (also for mutable rootfs)
Diffstat (limited to 'stage2/01-sys-tweaks/01-run.sh')
-rwxr-xr-x | stage2/01-sys-tweaks/01-run.sh | 4 |
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 6cd75d6..9ac6542 100755 --- a/stage2/01-sys-tweaks/01-run.sh +++ b/stage2/01-sys-tweaks/01-run.sh @@ -210,6 +210,10 @@ else install -m 644 files/boot/sys_arm64_000/cmdline-rootfs_rw.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 sed -i 's/quiet//g' "${ROOTFS_DIR}/etc/default/grub" fi |