fix: add modloop= to cmdline, revert lz4 compression
modloop was not mounting because: 1. modloop=/boot/modloop-lts was missing from kernel cmdline 2. lz4-compressed squashfs may not be supported by Alpine initramfs Both issues result in /lib/modules not existing and all modprobe failing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -27,10 +27,8 @@ done
|
|||||||
. "${BUILDER_DIR}/VERSIONS"
|
. "${BUILDER_DIR}/VERSIONS"
|
||||||
export PATH="$PATH:/usr/local/go/bin"
|
export PATH="$PATH:/usr/local/go/bin"
|
||||||
|
|
||||||
# Use lz4 for mksquashfs — much faster than xz, size difference is negligible for RAM-loaded modloop.
|
# NOTE: lz4 compression for modloop is disabled — Alpine initramfs may not support lz4 squashfs.
|
||||||
mkdir -p /etc/mkinitfs
|
# Default xz compression is used until lz4 support is confirmed.
|
||||||
grep -q 'MKSQUASHFS_OPTS' /etc/mkinitfs/mkinitfs.conf 2>/dev/null || \
|
|
||||||
echo 'MKSQUASHFS_OPTS="-comp lz4 -Xhc"' >> /etc/mkinitfs/mkinitfs.conf
|
|
||||||
|
|
||||||
echo "=== bee debug ISO build ==="
|
echo "=== bee debug ISO build ==="
|
||||||
echo "Alpine: ${ALPINE_VERSION}, Go: ${GO_VERSION}"
|
echo "Alpine: ${ALPINE_VERSION}, Go: ${GO_VERSION}"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ profile_bee_debug() {
|
|||||||
output_format="iso"
|
output_format="iso"
|
||||||
kernel_flavors="lts"
|
kernel_flavors="lts"
|
||||||
kernel_addons=""
|
kernel_addons=""
|
||||||
initfs_cmdline="modules=loop,squashfs,sd-mod,usb-storage quiet"
|
initfs_cmdline="modules=loop,squashfs,sd-mod,usb-storage modloop=/boot/modloop-lts quiet"
|
||||||
initfs_features="ata base cdrom ext4 mmc nvme raid scsi squashfs usb virtio nfit"
|
initfs_features="ata base cdrom ext4 mmc nvme raid scsi squashfs usb virtio nfit"
|
||||||
grub_mod="all_video disk part_gpt part_msdos linux normal configfile search search_label efi_gop fat iso9660 cat echo ls test true help gzio multiboot2 efi_uga"
|
grub_mod="all_video disk part_gpt part_msdos linux normal configfile search search_label efi_gop fat iso9660 cat echo ls test true help gzio multiboot2 efi_uga"
|
||||||
syslinux_serial="0 115200"
|
syslinux_serial="0 115200"
|
||||||
|
|||||||
@@ -123,10 +123,7 @@ if [ ! -f "${HOME}/.abuild/abuild.conf" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# --- mkinitfs: use lz4 compression for faster modloop builds ---
|
# NOTE: lz4 compression for modloop is disabled — Alpine initramfs may not support lz4 squashfs.
|
||||||
mkdir -p /etc/mkinitfs
|
|
||||||
grep -q 'MKSQUASHFS_OPTS' /etc/mkinitfs/mkinitfs.conf 2>/dev/null || \
|
|
||||||
echo 'MKSQUASHFS_OPTS="-comp lz4 -Xhc"' >> /etc/mkinitfs/mkinitfs.conf
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "=== builder setup complete ==="
|
echo "=== builder setup complete ==="
|
||||||
|
|||||||
Reference in New Issue
Block a user