Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions scripts/create_ext2_disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,15 @@ else
mkdir -p "$MOUNT_DIR/usr/local/cbin"

# Install BusyBox with hardlinks for coreutils
# Auto-build if missing but build script and source exist
if [[ ! -f "$USERSPACE_DIR/busybox.elf" ]] && [[ -x "$SCRIPT_DIR/build-busybox.sh" ]]; then
echo " busybox.elf not found, attempting to build..."
if "$SCRIPT_DIR/build-busybox.sh" --arch "$ARCH"; then
echo " BusyBox built successfully"
else
echo " WARNING: BusyBox build failed (see build-busybox.sh for prerequisites)"
fi
fi
if [[ -f "$USERSPACE_DIR/busybox.elf" ]]; then
cp "$USERSPACE_DIR/busybox.elf" "$MOUNT_DIR/bin/busybox"
chmod 755 "$MOUNT_DIR/bin/busybox"
Expand Down
Loading