- Add perl to Dockerfile for rfs OpenSSL compilation - Clean up rustup environment (remove gcc complications) - Ready for complete build debugging
303 lines
18 KiB
Plaintext
303 lines
18 KiB
Plaintext
|
|
==================================================
|
|
== ZERO-OS ALPINE INITRAMFS BUILDER ==
|
|
== ThreeFold Edition ==
|
|
==================================================
|
|
|
|
|
|
==================================================
|
|
SECTION: Setting up build environment
|
|
==================================================
|
|
[INFO] 2025-08-31 15:40:53 - Starting section: Setting up build environment
|
|
[INFO] 2025-08-31 15:40:53 - Project root: /home/delandtj/Threefold/zosbuilder
|
|
[INFO] 2025-08-31 15:40:53 - Alpine version: 3.22
|
|
[INFO] 2025-08-31 15:40:53 - Kernel version: 6.12.44
|
|
[INFO] 2025-08-31 15:40:53 - Rust target: x86_64-unknown-linux-musl
|
|
[INFO] 2025-08-31 15:40:53 - Optimization level: max
|
|
[INFO] 2025-08-31 15:40:53 - Skipping directory creation on host (container will create them)
|
|
[INFO] 2025-08-31 15:40:53 - All dependencies satisfied
|
|
|
|
==================================================
|
|
SECTION: Verifying Configuration Files
|
|
==================================================
|
|
[INFO] 2025-08-31 15:40:53 - Starting section: Verifying Configuration Files
|
|
[INFO] 2025-08-31 15:40:53 - ✓ Configuration found: packages.list
|
|
[INFO] 2025-08-31 15:40:53 - ✓ Configuration found: sources.conf
|
|
[INFO] 2025-08-31 15:40:53 - ✓ Configuration found: modules.conf
|
|
[INFO] 2025-08-31 15:40:53 - ✓ Configuration found: kernel.config
|
|
[INFO] 2025-08-31 15:40:53 - ✓ Configuration found: firmware.conf
|
|
[INFO] 2025-08-31 15:40:53 - All configuration files verified
|
|
[INFO] 2025-08-31 15:40:53 - Build environment setup complete
|
|
[INFO] 2025-08-31 15:40:53 - Starting container build
|
|
|
|
==================================================
|
|
SECTION: Detecting Container Runtime
|
|
==================================================
|
|
[INFO] 2025-08-31 15:40:53 - Starting section: Detecting Container Runtime
|
|
[INFO] 2025-08-31 15:40:53 - Using Podman as container runtime
|
|
|
|
==================================================
|
|
SECTION: Verifying Rootless Container Setup
|
|
==================================================
|
|
[INFO] 2025-08-31 15:40:53 - Starting section: Verifying Rootless Container Setup
|
|
[INFO] 2025-08-31 15:40:53 - Checking podman rootless configuration
|
|
[INFO] 2025-08-31 15:40:53 - Executing: podman system info
|
|
[INFO] 2025-08-31 15:40:53 - Testing rootless container execution
|
|
[INFO] 2025-08-31 15:40:53 - Executing: podman run --rm alpine:3.22 echo Rootless container test successful
|
|
[INFO] 2025-08-31 15:40:54 - Rootless container setup verified
|
|
|
|
==================================================
|
|
SECTION: Building Container Image
|
|
==================================================
|
|
[INFO] 2025-08-31 15:40:54 - Starting section: Building Container Image
|
|
[INFO] 2025-08-31 15:40:54 - Building container image: zero-os-builder:latest
|
|
[INFO] 2025-08-31 15:40:54 - Executing: podman build -t zero-os-builder:latest -f /home/delandtj/Threefold/zosbuilder/Dockerfile /home/delandtj/Threefold/zosbuilder
|
|
[INFO] 2025-08-31 15:40:54 - Container image built successfully: zero-os-builder:latest
|
|
|
|
==================================================
|
|
SECTION: Running Build in Container
|
|
==================================================
|
|
[INFO] 2025-08-31 15:40:54 - Starting section: Running Build in Container
|
|
[INFO] 2025-08-31 15:40:54 - Executing: chmod +x /home/delandtj/Threefold/zosbuilder/./scripts/build.sh
|
|
[INFO] 2025-08-31 15:40:54 - Executing build command in container: ./scripts/build.sh --skip-tests
|
|
[INFO] 2025-08-31 15:40:54 - Executing: podman run --rm --privileged -v /home/delandtj/Threefold/zosbuilder:/workspace -w /workspace zero-os-builder:latest ./scripts/build.sh --skip-tests
|
|
[ERROR] 2025-08-31 15:41:01 - Command failed: podman run --rm --privileged -v /home/delandtj/Threefold/zosbuilder:/workspace -w /workspace zero-os-builder:latest ./scripts/build.sh --skip-tests
|
|
[ERROR] 2025-08-31 15:41:01 - Output:
|
|
==================================================
|
|
== ZERO-OS ALPINE INITRAMFS BUILDER ==
|
|
== ThreeFold Edition ==
|
|
==================================================
|
|
|
|
|
|
==================================================
|
|
SECTION: Setting up build environment
|
|
==================================================
|
|
[INFO] 2025-08-31 13:40:54 - Starting section: Setting up build environment
|
|
[INFO] 2025-08-31 13:40:54 - Project root: /workspace
|
|
[INFO] 2025-08-31 13:40:54 - Alpine version: 3.22
|
|
[INFO] 2025-08-31 13:40:54 - Kernel version: 6.12.44
|
|
[INFO] 2025-08-31 13:40:54 - Rust target: x86_64-unknown-linux-musl
|
|
[INFO] 2025-08-31 13:40:54 - Optimization level: max
|
|
[INFO] 2025-08-31 13:40:54 - Executing: mkdir -p /workspace/initramfs
|
|
[INFO] 2025-08-31 13:40:54 - Executing: mkdir -p /workspace/components
|
|
[INFO] 2025-08-31 13:40:54 - Executing: mkdir -p /workspace/kernel
|
|
[INFO] 2025-08-31 13:40:54 - Executing: mkdir -p /workspace/dist
|
|
[INFO] 2025-08-31 13:40:54 - All dependencies satisfied
|
|
|
|
==================================================
|
|
SECTION: Verifying Configuration Files
|
|
==================================================
|
|
[INFO] 2025-08-31 13:40:54 - Starting section: Verifying Configuration Files
|
|
[INFO] 2025-08-31 13:40:54 - ✓ Configuration found: packages.list
|
|
[INFO] 2025-08-31 13:40:54 - ✓ Configuration found: sources.conf
|
|
[INFO] 2025-08-31 13:40:54 - ✓ Configuration found: modules.conf
|
|
[INFO] 2025-08-31 13:40:54 - ✓ Configuration found: kernel.config
|
|
[INFO] 2025-08-31 13:40:54 - ✓ Configuration found: firmware.conf
|
|
[INFO] 2025-08-31 13:40:54 - All configuration files verified
|
|
[INFO] 2025-08-31 13:40:54 - Build environment setup complete
|
|
[INFO] 2025-08-31 13:40:54 - Already in container, proceeding with build
|
|
|
|
==================================================
|
|
SECTION: Starting Zero OS Alpine Initramfs Build
|
|
==================================================
|
|
[INFO] 2025-08-31 13:40:54 - Starting section: Starting Zero OS Alpine Initramfs Build
|
|
|
|
==================================================
|
|
SECTION: Extracting Alpine Miniroot
|
|
==================================================
|
|
[INFO] 2025-08-31 13:40:54 - Starting section: Extracting Alpine Miniroot
|
|
[INFO] 2025-08-31 13:40:54 - Alpine version: 3.22
|
|
[INFO] 2025-08-31 13:40:54 - Architecture: x86_64
|
|
[INFO] 2025-08-31 13:40:54 - Target directory: /workspace/initramfs
|
|
[INFO] 2025-08-31 13:40:54 - Cleaning existing target directory
|
|
[INFO] 2025-08-31 13:40:54 - Executing: mkdir -p /workspace/initramfs
|
|
[INFO] 2025-08-31 13:40:54 - Downloading Alpine miniroot from: https://dl-cdn.alpinelinux.org/alpine/v3.22/releases/x86_64/alpine-minirootfs-3.22.0-x86_64.tar.gz
|
|
[INFO] 2025-08-31 13:40:54 - Executing: wget --progress=dot:giga -O /tmp/alpine-miniroot-3.22-x86_64.tar.gz https://dl-cdn.alpinelinux.org/alpine/v3.22/releases/x86_64/alpine-minirootfs-3.22.0-x86_64.tar.gz
|
|
[INFO] 2025-08-31 13:40:54 - Downloaded miniroot size: 3.5M
|
|
[INFO] 2025-08-31 13:40:54 - Extracting miniroot to: /workspace/initramfs
|
|
[INFO] 2025-08-31 13:40:54 - Executing: tar -xzf /tmp/alpine-miniroot-3.22-x86_64.tar.gz -C /workspace/initramfs
|
|
[INFO] 2025-08-31 13:40:54 - Executing: rm /tmp/alpine-miniroot-3.22-x86_64.tar.gz
|
|
[INFO] 2025-08-31 13:40:54 - Extracted Alpine release: 3.22.0
|
|
[INFO] 2025-08-31 13:40:54 - Alpine miniroot extraction complete
|
|
|
|
==================================================
|
|
SECTION: Configuring Alpine Repositories
|
|
==================================================
|
|
[INFO] 2025-08-31 13:40:54 - Starting section: Configuring Alpine Repositories
|
|
[INFO] 2025-08-31 13:40:54 - Configured Alpine repositories for version 3.22
|
|
|
|
==================================================
|
|
SECTION: Configuring Alpine System Settings
|
|
==================================================
|
|
[INFO] 2025-08-31 13:40:54 - Starting section: Configuring Alpine System Settings
|
|
[INFO] 2025-08-31 13:40:54 - chsh not available in minimal Alpine, skipping shell change
|
|
[INFO] 2025-08-31 13:40:54 - Root shell defaults to /bin/sh in Alpine
|
|
[INFO] 2025-08-31 13:40:54 - Alpine system configuration complete
|
|
|
|
==================================================
|
|
SECTION: Installing Alpine Packages
|
|
==================================================
|
|
[INFO] 2025-08-31 13:40:54 - Starting section: Installing Alpine Packages
|
|
|
|
==================================================
|
|
SECTION: Setting Up Alpine Chroot Environment
|
|
==================================================
|
|
[INFO] 2025-08-31 13:40:54 - Starting section: Setting Up Alpine Chroot Environment
|
|
[INFO] 2025-08-31 13:40:54 - Executing: mkdir -p /workspace/initramfs/proc
|
|
[INFO] 2025-08-31 13:40:54 - Executing: mkdir -p /workspace/initramfs/sys
|
|
[INFO] 2025-08-31 13:40:54 - Executing: mkdir -p /workspace/initramfs/dev
|
|
[INFO] 2025-08-31 13:40:54 - Executing: mkdir -p /workspace/initramfs/dev/pts
|
|
[INFO] 2025-08-31 13:40:54 - Executing: mkdir -p /workspace/initramfs/tmp
|
|
[INFO] 2025-08-31 13:40:54 - Executing: mkdir -p /workspace/initramfs/run
|
|
[INFO] 2025-08-31 13:40:54 - Mounting essential filesystems in chroot
|
|
[INFO] 2025-08-31 13:40:54 - Executing: mount --bind /proc /workspace/initramfs/proc
|
|
[INFO] 2025-08-31 13:40:54 - Executing: mount --bind /sys /workspace/initramfs/sys
|
|
[INFO] 2025-08-31 13:40:54 - Executing: mount --bind /dev /workspace/initramfs/dev
|
|
[INFO] 2025-08-31 13:40:54 - Executing: mount --bind /dev/pts /workspace/initramfs/dev/pts
|
|
[INFO] 2025-08-31 13:40:54 - Executing: cp -r /etc/resolv.conf /workspace/initramfs/etc/resolv.conf
|
|
[INFO] 2025-08-31 13:40:54 - Chroot environment setup complete
|
|
[INFO] 2025-08-31 13:40:54 - Updating package repositories
|
|
[INFO] 2025-08-31 13:40:54 - Executing: chroot /workspace/initramfs apk update
|
|
[INFO] 2025-08-31 13:40:55 - Installing 20 packages:
|
|
[INFO] 2025-08-31 13:40:55 - - alpine-baselayout
|
|
[INFO] 2025-08-31 13:40:55 - - busybox
|
|
[INFO] 2025-08-31 13:40:55 - - musl
|
|
[INFO] 2025-08-31 13:40:55 - - eudev
|
|
[INFO] 2025-08-31 13:40:55 - - eudev-hwids
|
|
[INFO] 2025-08-31 13:40:55 - - eudev-libs
|
|
[INFO] 2025-08-31 13:40:55 - - eudev-netifnames
|
|
[INFO] 2025-08-31 13:40:55 - - kmod
|
|
[INFO] 2025-08-31 13:40:55 - - util-linux
|
|
[INFO] 2025-08-31 13:40:55 - - iproute2
|
|
[INFO] 2025-08-31 13:40:55 - - ethtool
|
|
[INFO] 2025-08-31 13:40:55 - - btrfs-progs
|
|
[INFO] 2025-08-31 13:40:55 - - dosfstools
|
|
[INFO] 2025-08-31 13:40:55 - - zlib
|
|
[INFO] 2025-08-31 13:40:55 - - dhcpcd
|
|
[INFO] 2025-08-31 13:40:55 - - tcpdump
|
|
[INFO] 2025-08-31 13:40:55 - - bmon
|
|
[INFO] 2025-08-31 13:40:55 - - haveged
|
|
[INFO] 2025-08-31 13:40:55 - - openssh-server
|
|
[INFO] 2025-08-31 13:40:55 - - zellij
|
|
[INFO] 2025-08-31 13:40:55 - Installing packages with apk
|
|
[INFO] 2025-08-31 13:40:55 - Executing: chroot /workspace/initramfs apk add --no-cache --no-scripts --clean-protected alpine-baselayout busybox musl eudev eudev-hwids eudev-libs eudev-netifnames kmod util-linux iproute2 ethtool btrfs-progs dosfstools zlib dhcpcd tcpdump bmon haveged openssh-server zellij
|
|
|
|
==================================================
|
|
SECTION: Cleaning Up Alpine Chroot Environment
|
|
==================================================
|
|
[INFO] 2025-08-31 13:40:58 - Starting section: Cleaning Up Alpine Chroot Environment
|
|
[INFO] 2025-08-31 13:40:58 - Unmounting: /workspace/initramfs/dev/pts
|
|
[INFO] 2025-08-31 13:40:58 - Executing: umount /workspace/initramfs/dev/pts
|
|
[INFO] 2025-08-31 13:40:58 - Unmounting: /workspace/initramfs/dev
|
|
[INFO] 2025-08-31 13:40:58 - Executing: umount /workspace/initramfs/dev
|
|
[INFO] 2025-08-31 13:40:58 - Unmounting: /workspace/initramfs/sys
|
|
[INFO] 2025-08-31 13:40:58 - Executing: umount /workspace/initramfs/sys
|
|
[INFO] 2025-08-31 13:40:58 - Unmounting: /workspace/initramfs/proc
|
|
[INFO] 2025-08-31 13:40:58 - Executing: umount /workspace/initramfs/proc
|
|
[INFO] 2025-08-31 13:40:58 - Chroot cleanup complete
|
|
[INFO] 2025-08-31 13:40:58 - Package installation complete
|
|
|
|
==================================================
|
|
SECTION: Installing Alpine Firmware Packages
|
|
==================================================
|
|
[INFO] 2025-08-31 13:40:58 - Starting section: Installing Alpine Firmware Packages
|
|
|
|
==================================================
|
|
SECTION: Setting Up Alpine Chroot Environment
|
|
==================================================
|
|
[INFO] 2025-08-31 13:40:58 - Starting section: Setting Up Alpine Chroot Environment
|
|
[INFO] 2025-08-31 13:40:58 - Executing: mkdir -p /workspace/initramfs/proc
|
|
[INFO] 2025-08-31 13:40:58 - Executing: mkdir -p /workspace/initramfs/sys
|
|
[INFO] 2025-08-31 13:40:58 - Executing: mkdir -p /workspace/initramfs/dev
|
|
[INFO] 2025-08-31 13:40:58 - Executing: mkdir -p /workspace/initramfs/dev/pts
|
|
[INFO] 2025-08-31 13:40:58 - Executing: mkdir -p /workspace/initramfs/tmp
|
|
[INFO] 2025-08-31 13:40:58 - Executing: mkdir -p /workspace/initramfs/run
|
|
[INFO] 2025-08-31 13:40:58 - Mounting essential filesystems in chroot
|
|
[INFO] 2025-08-31 13:40:58 - Executing: mount --bind /proc /workspace/initramfs/proc
|
|
[INFO] 2025-08-31 13:40:58 - Executing: mount --bind /sys /workspace/initramfs/sys
|
|
[INFO] 2025-08-31 13:40:58 - Executing: mount --bind /dev /workspace/initramfs/dev
|
|
[INFO] 2025-08-31 13:40:58 - Executing: mount --bind /dev/pts /workspace/initramfs/dev/pts
|
|
[INFO] 2025-08-31 13:40:58 - Executing: cp -r /etc/resolv.conf /workspace/initramfs/etc/resolv.conf
|
|
[INFO] 2025-08-31 13:40:58 - Chroot environment setup complete
|
|
[INFO] 2025-08-31 13:40:58 - - linux-firmware-bnx2: Broadcom NetXtreme firmware
|
|
[INFO] 2025-08-31 13:40:58 - - linux-firmware-e100: Intel PRO/100 firmware
|
|
[INFO] 2025-08-31 13:40:58 - - linux-firmware-intel: Intel network and WiFi firmware (includes e1000e, igb, ixgbe, i40e, ice)
|
|
[INFO] 2025-08-31 13:40:58 - - linux-firmware-realtek: Realtek network firmware (r8169, etc.)
|
|
[INFO] 2025-08-31 13:40:58 - - linux-firmware-mellanox: Mellanox network firmware
|
|
[INFO] 2025-08-31 13:40:58 - - linux-firmware-qlogic: QLogic network firmware
|
|
[INFO] 2025-08-31 13:40:58 - Installing 6 firmware packages
|
|
[INFO] 2025-08-31 13:40:58 - Executing: chroot /workspace/initramfs apk add --no-cache linux-firmware-bnx2 linux-firmware-e100 linux-firmware-intel linux-firmware-realtek linux-firmware-mellanox linux-firmware-qlogic
|
|
[INFO] 2025-08-31 13:41:00 - Checking installed firmware files:
|
|
[INFO] 2025-08-31 13:41:00 - Firmware files: 196 (115M)
|
|
|
|
==================================================
|
|
SECTION: Cleaning Up Alpine Chroot Environment
|
|
==================================================
|
|
[INFO] 2025-08-31 13:41:00 - Starting section: Cleaning Up Alpine Chroot Environment
|
|
[INFO] 2025-08-31 13:41:00 - Unmounting: /workspace/initramfs/dev/pts
|
|
[INFO] 2025-08-31 13:41:00 - Executing: umount /workspace/initramfs/dev/pts
|
|
[INFO] 2025-08-31 13:41:00 - Unmounting: /workspace/initramfs/dev
|
|
[INFO] 2025-08-31 13:41:00 - Executing: umount /workspace/initramfs/dev
|
|
[INFO] 2025-08-31 13:41:00 - Unmounting: /workspace/initramfs/sys
|
|
[INFO] 2025-08-31 13:41:00 - Executing: umount /workspace/initramfs/sys
|
|
[INFO] 2025-08-31 13:41:00 - Unmounting: /workspace/initramfs/proc
|
|
[INFO] 2025-08-31 13:41:00 - Executing: umount /workspace/initramfs/proc
|
|
[INFO] 2025-08-31 13:41:00 - Chroot cleanup complete
|
|
[INFO] 2025-08-31 13:41:00 - Firmware installation complete: 196 files
|
|
|
|
==================================================
|
|
SECTION: Parsing Sources Configuration
|
|
==================================================
|
|
[INFO] 2025-08-31 13:41:00 - Starting section: Parsing Sources Configuration
|
|
[INFO] 2025-08-31 13:41:00 - Executing: mkdir -p /workspace/components
|
|
[INFO] 2025-08-31 13:41:00 - Processing components from: /workspace/config/sources.conf
|
|
[INFO] 2025-08-31 13:41:00 - Components directory: /workspace/components
|
|
[INFO] 2025-08-31 13:41:00 - Install directory: /workspace/initramfs
|
|
[INFO] 2025-08-31 13:41:00 - Building ThreeFold components (hardcoded for reliability)
|
|
[INFO] 2025-08-31 13:41:00 - Processing component 1: zinit (git)
|
|
|
|
==================================================
|
|
SECTION: Downloading Git Component: zinit
|
|
==================================================
|
|
[INFO] 2025-08-31 13:41:00 - Starting section: Downloading Git Component: zinit
|
|
[INFO] 2025-08-31 13:41:00 - Repository: https://github.com/threefoldtech/zinit
|
|
[INFO] 2025-08-31 13:41:00 - Version/Branch: master
|
|
[INFO] 2025-08-31 13:41:00 - Target directory: /workspace/components/zinit
|
|
[INFO] 2025-08-31 13:41:00 - Cloning zinit from https://github.com/threefoldtech/zinit
|
|
[INFO] 2025-08-31 13:41:00 - Executing: git clone --depth 1 --branch master https://github.com/threefoldtech/zinit /workspace/components/zinit
|
|
[INFO] 2025-08-31 13:41:00 - Executing: cd /workspace/components/zinit
|
|
[INFO] 2025-08-31 13:41:00 - Current commit: 1852135945d3db78a8a15c9df60adbccf275220e
|
|
[INFO] 2025-08-31 13:41:00 - Git component download complete: zinit
|
|
|
|
==================================================
|
|
SECTION: Building Component: zinit
|
|
==================================================
|
|
[INFO] 2025-08-31 13:41:00 - Starting section: Building Component: zinit
|
|
[INFO] 2025-08-31 13:41:00 - Executing: cd /workspace/components/zinit
|
|
[INFO] 2025-08-31 13:41:00 - Build function: build_zinit
|
|
[INFO] 2025-08-31 13:41:00 - Working directory: /workspace
|
|
[INFO] 2025-08-31 13:41:00 - Executing build function: build_zinit
|
|
|
|
==================================================
|
|
SECTION: Building zinit with musl target
|
|
==================================================
|
|
[INFO] 2025-08-31 13:41:00 - Starting section: Building zinit with musl target
|
|
|
|
==================================================
|
|
SECTION: Setting Up Rust Environment
|
|
==================================================
|
|
[INFO] 2025-08-31 13:41:00 - Starting section: Setting Up Rust Environment
|
|
[INFO] 2025-08-31 13:41:00 - Using system Rust (Alpine) with musl
|
|
[INFO] 2025-08-31 13:41:00 - Rust environment configured for musl builds
|
|
[INFO] 2025-08-31 13:41:00 - RUST_TARGET: x86_64-unknown-linux-musl
|
|
[INFO] 2025-08-31 13:41:00 - RUSTFLAGS: -C target-feature=+crt-static -C linker=musl-gcc
|
|
[INFO] 2025-08-31 13:41:00 - CC: musl-gcc
|
|
[INFO] 2025-08-31 13:41:00 - Building zinit from: /workspace/components/zinit
|
|
[INFO] 2025-08-31 13:41:00 - Executing: cd /workspace/components/zinit
|
|
[INFO] 2025-08-31 13:41:00 - Current directory: /workspace
|
|
[INFO] 2025-08-31 13:41:00 - Executing: cargo build --release --target x86_64-unknown-linux-musl
|
|
[ERROR] 2025-08-31 13:41:00 - Command failed: cargo build --release --target x86_64-unknown-linux-musl
|
|
[ERROR] 2025-08-31 13:41:00 - Output: error: could not find `Cargo.toml` in `/workspace` or any parent directory
|
|
[INFO] 2025-08-31 13:41:00 - Build process exiting with code: 1
|
|
[INFO] 2025-08-31 15:41:01 - Build process exiting with code: 1
|