Internal functions should not be exported to keep the API surface clean and minimize the public contract of the package. AddInitrdRecord is an implementation detail that takes a *cpio.Writer, which should not be exposed to external callers.
Solution: Unexport the internal function AddInitrdRecord in pkg/unikontainers/initrd/initrd.go by renaming it to addInitrdRecord.
file: pkg/unikontainers/initrd/initrd.go
Internal functions should not be exported to keep the API surface clean and minimize the public contract of the package. AddInitrdRecord is an implementation detail that takes a *cpio.Writer, which should not be exposed to external callers.
Solution: Unexport the internal function AddInitrdRecord in pkg/unikontainers/initrd/initrd.go by renaming it to addInitrdRecord.
file: pkg/unikontainers/initrd/initrd.go