Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ jobs:
strategy:
matrix:
arch:
- ppc64le
# ppc64le disabled
- s390x
fail-fast: false # if one fails, keep the other(s) running
name: "Cross-arch qemu based image build/boot smoke test"
Expand Down
2 changes: 1 addition & 1 deletion Schutzfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"common": {
"rngseed": 2026063000,
"rngseed": 2026070700,
"dependencies": {
"bootc-image-builder": {
"ref": "quay.io/centos-bootc/bootc-image-builder@sha256:9893e7209e5f449b86ababfd2ee02a58cca2e5990f77b06c3539227531fc8120"
Expand Down
256 changes: 0 additions & 256 deletions cmd/build/main.go

This file was deleted.

13 changes: 13 additions & 0 deletions cmd/image-builder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,15 @@ func cmdManifestWrapper(pbar progress.ProgressBar, cmd *cobra.Command, args []st
if err != nil {
return err
}
bootcRemote, err := cmd.Flags().GetBool("bootc-pull-container")
if err != nil {
return err
}
imageSize, err := cmd.Flags().GetUint64("image-size")
if err != nil {
return err
}

var preview *bool
// Verify that the flag was actually passed. If it wasn't passed
// we keep our nil value so that images used the distro-defined
Expand Down Expand Up @@ -502,6 +511,8 @@ func cmdManifestWrapper(pbar progress.ProgressBar, cmd *cobra.Command, args []st
BootcRef: bootcRef,
BootcInstallerPayloadRef: bootcInstallerPayloadRef,
BootcOmitDefaultKernelArgs: bootcOmitDefaultKernelArgs,
BootcRemote: bootcRemote,
ImageSize: imageSize,
WithSBOM: withSBOM,
WithRPMList: withRPMList,
IgnoreWarnings: ignoreWarnings,
Expand Down Expand Up @@ -844,6 +855,8 @@ operating systems like Fedora, CentOS and RHEL with easy customizations support.
manifestCmd.Flags().String("bootc-installer-payload-ref", "", `bootc installer payload ref`)
manifestCmd.Flags().String("bootc-default-fs", "", `default filesystem to use for the bootc install (e.g. ext4)`)
manifestCmd.Flags().Bool("bootc-no-default-kernel-args", false, `don't use the default kernel arguments`)
manifestCmd.Flags().Bool("bootc-pull-container", false, `pull bootc container from remote location instead of using it from local container storage`)
manifestCmd.Flags().Uint64("image-size", 0, `override the default image size in bytes`)
manifestCmd.Flags().Bool("use-librepo", true, `use librepo to download packages (disable if you use old versions of osbuild)`)
if err := manifestCmd.Flags().MarkHidden("use-librepo"); err != nil {
return err
Expand Down
8 changes: 6 additions & 2 deletions cmd/image-builder/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ type manifestOptions struct {
BootcRef string
BootcInstallerPayloadRef string
BootcOmitDefaultKernelArgs bool
BootcRemote bool
ImageSize uint64
Subscription *subscription.ImageOptions
RpmDownloader osbuild.RpmDownloader
WithSBOM bool
Expand Down Expand Up @@ -106,9 +108,11 @@ func generateManifest(repoDir string, extraRepos []string, img *imagefilter.Resu
Facts: &facts.ImageOptions{APIType: facts.IBCLI_APITYPE},
OSTree: opts.Ostree,
Subscription: opts.Subscription,
Size: opts.ImageSize,
Bootc: &distro.BootcImageOptions{
InstallerPayloadRef: opts.BootcInstallerPayloadRef,
OmitDefaultKernelArgs: opts.BootcOmitDefaultKernelArgs,
InstallerPayloadRef: opts.BootcInstallerPayloadRef,
OmitDefaultKernelArgs: opts.BootcOmitDefaultKernelArgs,
UseRemoteContainerSource: opts.BootcRemote,
},
Preview: opts.Preview,
}
Expand Down
3 changes: 3 additions & 0 deletions cmd/image-builder/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ func uploaderForCmdOpenstack(cmd *cobra.Command, targetArchStr string, bootMode
if err != nil {
return nil, err
}
if image == "" {
return nil, fmt.Errorf("%w: %q", ErrUploadConfigNotProvided, []string{"--openstack-image"})
}
diskFormat, err := cmd.Flags().GetString("openstack-disk-format")
if err != nil {
return nil, err
Expand Down
Loading
Loading