Use already fetched chroot script.

This will allow us to install sdk via wget https://raw.githubusercontent.com/noon92/femtofox/refs/heads/main/environment-setup/foxbuntu-builder.sh -O foxbuntu-builder.sh
This commit is contained in:
Ruledo 2025-01-03 22:25:27 -08:00
parent 1ccc08a323
commit 348bcd848a

4
environment-setup/foxbuntu-builder.sh Executable file → Normal file
View file

@ -200,7 +200,7 @@ modify_chroot() {
}
inject_chroot() {
chroot_script=${CHROOT_SCRIPT:-/home/${sudoer}/femtofox.chroot}
chroot_script=${CHROOT_SCRIPT:-/home/${sudoer}/femtofox/environment-setup/femtofox.chroot}
if [[ ! -f $chroot_script ]]; then
echo "Error: Chroot script $chroot_script not found."
exit 1
@ -250,7 +250,7 @@ install_rootfs() {
cp /home/${sudoer}/luckfox-pico/sysdrv/out/kernel_drv_ko/* /home/${sudoer}/luckfox-pico/sysdrv/out/rootfs_uclibc_rv1106/lib/modules/5.10.160/
which qemu-arm-static
chroot_script=${CHROOT_SCRIPT:-/home/${sudoer}/femtofox.chroot}
chroot_script=${CHROOT_SCRIPT:-/home/${sudoer}/femtofox/environment-setup/femtofox.chroot}
if [[ ! -f $chroot_script ]]; then
echo "Error: Chroot script $chroot_script not found."
exit 1