Skip to content

Commit 80e7714

Browse files
committed
bootc_rootfs: Exclude files from the squashfs
Add filesystem excludes to the squashfs path (it is already in the erofs path). Related: HMS-10627
1 parent b8a75b8 commit 80e7714

5 files changed

Lines changed: 7 additions & 4 deletions

pkg/manifest/bootc_rootfs.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ func (p *BootcRootFS) serialize() (osbuild.Pipeline, error) {
9797
}
9898
}
9999

100+
// TODO this is shared with the ISO, should it be?
101+
// Clean up the root filesystem's /boot to save space
102+
squashfsOptions.ExcludePaths = p.RootfsExcludes
100103
// Compress the mounted ostree filesystem instead of a pipeline tree
101104
squashfsOptions.Source = "mount://-/"
102105
squashfsStage := osbuild.NewSquashfsWithMountsStage(&squashfsOptions, nil, devices, mounts)

test/data/manifest-checksums/bootc_test_os_1-aarch64-pxe_tar_xz-bootc_empty

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/data/manifest-checksums/bootc_test_os_1-aarch64-pxe_tar_xz-bootc_remote_empty

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/data/manifest-checksums/bootc_test_os_1-x86_64-pxe_tar_xz-bootc_empty

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/data/manifest-checksums/bootc_test_os_1-x86_64-pxe_tar_xz-bootc_remote_empty

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)