Skip to content

Pin mkinitfs to known release version which we patch #31

Open

Description

@chrisjsimpson

Is your feature request related to a problem? Please describe.
mkinitfs is a moving target when we ask the netboot builder to include it, since we patch it, we need to control which version of mkinitfs we use.

Describe the solution you'd like

Pin mkinitfs

-        apks="$apks zfs-scripts zfs zfs-utils-py python3 mkinitfs syslinux util-linux linux-firmware"
+        apks="$apks zfs-scripts zfs zfs-utils-py python3 mkinitfs=3.10.1-r0 syslinux util-linux linux-firmware"

Describe alternatives you've considered

Additional context

  • An issue opened on the Alpine Linux Gitlab with the patch in question can be seen here

Activity

  1. NoSpawnn commented on May 29, 2025

    @NoSpawnn
    Contributor

    Currently pinning like this doesnt work, building fails with

    >>> mkimage-x86_64: --> apks x86_64 7e8c9dd017e812752e2bed2b14a68c37371dd04a
    mkinitfs=3.10.1-r0: unable to select package (or its dependencies)

    and trying to add the package manually

    / # apk add mkinitfs=3.10.1-r0
    ERROR: unable to select packages:
      mkinitfs-3.11.1-r0:
        breaks: world[mkinitfs=3.10.1-r0]
        satisfies: syslinux-6.04_pre1-r16[initramfs-generator] grub-2.12-r7[initramfs-generator]
  2. NoSpawnn commented on May 29, 2025

    @NoSpawnn
    Contributor

    0ce25ce provides a valid patch for the state of the init script at https://gitlab.alpinelinux.org/alpine/mkinitfs/-/commit/d29d34cb97ef536e2db94354a7fa17ca4fe70f2c

    We will need to update the patch once we figure out how to correctly pin the package/mkinitfs version

  3. chrisjsimpson commented on May 29, 2025

    @chrisjsimpson
    ContributorAuthor

    Nice, didn't you get a netboot build output showing the pinned apk failure? Please drop that here

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions