CodeAsm / teeny-linux

An tiny linux kernel with initramfs for Qemu based on Mitch Galgs linux tutorials.
8 stars 1 forks source link

sh script is not sh compatible? secretly bash? #8

Open CodeAsm opened 3 years ago

CodeAsm commented 3 years ago

After trying a arm64 build, sh resulted into the kernel version subdivision error. might be bash/sh incompatible issue. after targeting /bin/bash, it worked sort of. first step is to fix SH. crosscompiling comes later.

CodeAsm commented 3 years ago

Richard from discord had the same fault, arm64 again. Some functions needed () and he sourced vars inside the build.sh.

https://stackoverflow.com/a/4732283 might be a proper fix to sh