Skip to content
Snippets Groups Projects
Commit ae0e8a7f authored by alice's avatar alice
Browse files

main/busybox: fix bootstrap

can't execute a cross-compiled busybox without binfmt
parent d4e4f324
No related branches found
No related tags found
No related merge requests found
......@@ -274,8 +274,10 @@ EOF
# Install a list of symlinks installed by busybox. This is useful for
# building and analyzing Alpine-based images which contain busybox, where
# you don't want to run busybox --list-path at analysis or build time.
mkdir -p "$pkgdir"/etc/busybox-paths.d
"$pkgdir"/bin/busybox --list-path > "$pkgdir"/etc/busybox-paths.d/busybox
if [ "$CHOST" != "$CBUILD" ]; then
mkdir -p "$pkgdir"/etc/busybox-paths.d
"$pkgdir"/bin/busybox --list-path > "$pkgdir"/etc/busybox-paths.d/busybox
fi
}
extras() {
......@@ -286,8 +288,10 @@ extras() {
# Install a list of symlinks installed by busybox-extras. This is useful for
# building and analyzing Alpine-based images which contain busybox, where
# you don't want to run busybox --list-path at analysis or build time.
mkdir -p "$subpkgdir"/etc/busybox-paths.d
"$subpkgdir"/bin/busybox-extras --list-path > "$subpkgdir"/etc/busybox-paths.d/busybox-extras
if [ "$CHOST" != "$CBUILD" ]; then
mkdir -p "$subpkgdir"/etc/busybox-paths.d
"$subpkgdir"/bin/busybox-extras --list-path > "$subpkgdir"/etc/busybox-paths.d/busybox-extras
fi
}
suid() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment