Skip to content

helios-build -o build failed with a CPIO error #238

Open

Description

@rmustacc

@grwilson was running a helios-build image -o build -N ??? (I don't remember the -N value) and it failed with:

Dec 05 19:47:32.028 INFO creating Oxide boot image...
Dec 05 19:47:32.028 INFO exec: ["/home/gwilson/helios/projects/bootserver/target/release/mkimage", "-i", "/rpool/images/gwilson/output/sled-zfs.raw", "-N", "cosmo-b-120525_0115", "-o", "build/zfs.img", "-O", "/home/gwilson/helios/tmp/image/boot_image_csum", "-s", "4096"], pwd: None
Dec 05 19:47:33.004 INFO O| ok, image written!
Dec 05 19:47:33.004 INFO O| ok, boot_image_csum file written!
Dec 05 19:47:33.008 INFO creating boot archive (CPIO)...
Dec 05 19:47:33.008 INFO exec: ["bash", "/home/gwilson/helios/image/mkcpio.sh", "/rpool/images/gwilson/work/sled/ramdisk", "build/cpio", "/home/gwilson/helios/tmp/image"], pwd: None
Dec 05 19:47:33.014 INFO E| + root=/rpool/images/gwilson/work/sled/ramdisk
Dec 05 19:47:33.014 INFO E| + outfile=build/cpio
Dec 05 19:47:33.014 INFO E| + tmpdir=/home/gwilson/helios/tmp/image
Dec 05 19:47:33.016 INFO E| + cd /rpool/images/gwilson/work/sled/ramdisk
Dec 05 19:47:33.017 INFO E| + cpio -qo -H odc -O build/cpio
Dec 05 19:47:33.019 INFO E| cpio: Cannot open "build/cpio" for output
Dec 05 19:47:33.019 INFO E| USAGE:
Dec 05 19:47:33.019 INFO E| cpio -i[bcdfkmqrstuv@BSV6] [-C size] [-E file] [-H hdr] [-I file [-M msg]] [-R id] [patterns]
Dec 05 19:47:33.019 INFO E| cpio -o[acv@ABLV] [-C size] [-H hdr] [-O file [-M msg]]
Dec 05 19:47:33.019 INFO E| cpio -p[adlmuv@LV] [-R id] directory
Error: exec ["bash", "/home/gwilson/helios/image/mkcpio.sh", "/rpool/images/gwilson/work/sled/ramdisk", "build/cpio", "/home/gwilson/helios/tmp/image"]: failed ExitStatus(unix_wait_status(256))

Activity

  1. rmustacc commented on Dec 5, 2025

    @rmustacc
    ContributorAuthor

    I can reproduce this so there isn't something specific to George's environment. That was a simple:

    $ ./helios-build image -o build
    ...
    Dec 05 20:04:19.943 INFO creating Oxide boot image...
    Dec 05 20:04:19.943 INFO exec: ["/home/rm/src/i2c/projects/bootserver/target/release/mkimage", "-i", "/rpool/images/rm/output/sled-zfs.raw", "-N", "rm@atrium: 866156d; 2025-12-05 20:04:17", "-o", "build/zfs.img", "-O", "/home/rm/src/i2c/tmp/image/boot_image_csum", "-s", "4096"], pwd: None
    Dec 05 20:04:21.088 INFO O| ok, image written!
    Dec 05 20:04:21.088 INFO O| ok, boot_image_csum file written!
    Dec 05 20:04:21.092 INFO creating boot archive (CPIO)...
    Dec 05 20:04:21.092 INFO exec: ["bash", "/home/rm/src/i2c/image/mkcpio.sh", "/rpool/images/rm/work/sled/ramdisk", "build/cpio", "/home/rm/src/i2c/tmp/image"], pwd: None
    Dec 05 20:04:21.097 INFO E| + root=/rpool/images/rm/work/sled/ramdisk
    Dec 05 20:04:21.097 INFO E| + outfile=build/cpio
    Dec 05 20:04:21.097 INFO E| + tmpdir=/home/rm/src/i2c/tmp/image
    Dec 05 20:04:21.100 INFO E| + cd /rpool/images/rm/work/sled/ramdisk
    Dec 05 20:04:21.100 INFO E| + cpio -qo -H odc -O build/cpio
    Dec 05 20:04:21.103 INFO E| cpio: Cannot open "build/cpio" for output
    Dec 05 20:04:21.103 INFO E| USAGE:
    Dec 05 20:04:21.103 INFO E| cpio -i[bcdfkmqrstuv@BSV6] [-C size] [-E file] [-H hdr] [-I file [-M msg]] [-R id] [patterns]
    Dec 05 20:04:21.103 INFO E| cpio -o[acv@ABLV] [-C size] [-H hdr] [-O file [-M msg]]
    Dec 05 20:04:21.103 INFO E| cpio -p[adlmuv@LV] [-R id] directory
    Error: exec ["bash", "/home/rm/src/i2c/image/mkcpio.sh", "/rpool/images/rm/work/sled/ramdisk", "build/cpio", "/home/rm/src/i2c/tmp/image"]: failed ExitStatus(unix_wait_status(256))
    
  2. jclulow commented on Dec 5, 2025

    @jclulow
    Collaborator

    Presumably it doesn't fail if you do -o $PWD/build though? I expect we're flubbing the expansion of that potentially relative path.

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