iso build: error: pathspec 'tags/' did not match any file(s) known to git

Hello, I am trying to build an ISO for an image (that is not generated with Bluebuild, but does have a working container image). I was having problems with bootc-image-builder which led me here. However, I am getting "error: pathspec 'tags/' did not match any file(s) known to git" when I run the iso build. Any ideas?
cameron@orton-10-219-200-45:~$ sudo ~/.cargo/bin/bluebuild generate-iso --iso-name stillos.iso image registry.gitlab.com/stillhq/stillos/bootc:0
INFO => Retrieving OS version from registry.gitlab.com/stillhq/stillos/bootc:0
g.i/j/build-container-installer => + mknod -m 0660 /dev/loop0 b 7 0
g.i/j/build-container-installer => + true
g.i/j/build-container-installer => + [[ -d /cache/skopeo ]]
g.i/j/build-container-installer => + [[ ! -d /cache/dnf ]]
g.i/j/build-container-installer => + make VARIANT=Kinoite ISO_NAME=build/stillos.iso DNF_CACHE=/cache/dnf SECURE_BOOT_KEY_URL=https://github.com/ublue-os/bazzite/raw/main/secure_boot.der ENROLLMENT_PASSWORD=universalblue IMAGE_NAME=bootc IMAGE_REPO=registry.gitlab.com/stillhq/stillos IMAGE_TAG=0 VERSION=0
g.i/j/build-container-installer => make -w -C external lorax/branch-0
g.i/j/build-container-installer => make[1]: Entering directory '/build-container-installer/external'
g.i/j/build-container-installer => git config advice.detachedHead false
g.i/j/build-container-installer => cd lorax && git reset --hard HEAD && git checkout tags/
g.i/j/build-container-installer => HEAD is now at ffba3078 Add prefixdevname support to the boot.iso
g.i/j/build-container-installer => error: pathspec 'tags/' did not match any file(s) known to git
g.i/j/build-container-installer => make[1]: *** [Makefile:3: lorax/branch-0] Error 1
g.i/j/build-container-installer => make[1]: Leaving directory '/build-container-installer/external'
g.i/j/build-container-installer => make: *** [Makefile:148: external/lorax/branch-0] Error 2
ERROR => Failed:
× Failed to create ISO
cameron@orton-10-219-200-45:~$ sudo ~/.cargo/bin/bluebuild generate-iso --iso-name stillos.iso image registry.gitlab.com/stillhq/stillos/bootc:0
INFO => Retrieving OS version from registry.gitlab.com/stillhq/stillos/bootc:0
g.i/j/build-container-installer => + mknod -m 0660 /dev/loop0 b 7 0
g.i/j/build-container-installer => + true
g.i/j/build-container-installer => + [[ -d /cache/skopeo ]]
g.i/j/build-container-installer => + [[ ! -d /cache/dnf ]]
g.i/j/build-container-installer => + make VARIANT=Kinoite ISO_NAME=build/stillos.iso DNF_CACHE=/cache/dnf SECURE_BOOT_KEY_URL=https://github.com/ublue-os/bazzite/raw/main/secure_boot.der ENROLLMENT_PASSWORD=universalblue IMAGE_NAME=bootc IMAGE_REPO=registry.gitlab.com/stillhq/stillos IMAGE_TAG=0 VERSION=0
g.i/j/build-container-installer => make -w -C external lorax/branch-0
g.i/j/build-container-installer => make[1]: Entering directory '/build-container-installer/external'
g.i/j/build-container-installer => git config advice.detachedHead false
g.i/j/build-container-installer => cd lorax && git reset --hard HEAD && git checkout tags/
g.i/j/build-container-installer => HEAD is now at ffba3078 Add prefixdevname support to the boot.iso
g.i/j/build-container-installer => error: pathspec 'tags/' did not match any file(s) known to git
g.i/j/build-container-installer => make[1]: *** [Makefile:3: lorax/branch-0] Error 1
g.i/j/build-container-installer => make[1]: Leaving directory '/build-container-installer/external'
g.i/j/build-container-installer => make: *** [Makefile:148: external/lorax/branch-0] Error 2
ERROR => Failed:
× Failed to create ISO
1 Reply
pizzalovingnerd
pizzalovingnerdOP4d ago
ok, I figured out the problem, upstream JasonN3/build-container-installer tries to git clone lorax templates, however my OS uses a different versioning scheme than Fedora or RHEL. So, it tries to clone the branch for "f0". I actually stumbled across another problem where for rhel (alma) based distributions like mine you can't get it to use the rhel branch, so I'm gonna contribute a fix there

Did you find this page helpful?