Skip to content

Set PATH to prevent setup_alpine_rootfs.sh to fail#513

Open
grosioso wants to merge 1 commit into
ading2210:mainfrom
grosioso:main
Open

Set PATH to prevent setup_alpine_rootfs.sh to fail#513
grosioso wants to merge 1 commit into
ading2210:mainfrom
grosioso:main

Conversation

@grosioso

@grosioso grosioso commented May 1, 2026

Copy link
Copy Markdown

Set this PATH variable (export PATH="/sbin:/bin:/usr/bin:/usr/local/bin:/usr/sbin") to the script rootfs/opt/setup_alpine_rootfs.sh which exports the location of all installed binaries in order for the chroot environment to not fail.

Problem:

Executing:

sudo ./build_complete.sh <board_name> distro=alpine

will result in this error:

/opt/setup_rootfs_alpine.sh: line 23: setup-hostname: not found

instead of successfully continuing the script.

This is because the setup-* scripts Alpine included (and possibly all binaries) was nowhere to be found. The only way to fix this is by manually setting the PATH inside the script for the installed binaries to work.

Issues reporting this:

#510
#212 < the person who made the issue already fixed it themselves, all you have to do is include the PATH inside the script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant