An open API service indexing awesome lists of open source software.

https://github.com/pdmccormick/go-initramfs

Read and write Linux kernel initramfs archives.
https://github.com/pdmccormick/go-initramfs

golang-package initramfs linux-kernel

Last synced: about 2 months ago
JSON representation

Read and write Linux kernel initramfs archives.

Awesome Lists containing this project

README

          

initramfs
=========

Read and write Linux kernel initramfs-style cpio "newc" formatted archives.

```go
import "go.pdmccormick.com/initramfs"
```

This implementation follows the [documented kernel buffer format](https://www.kernel.org/doc/html/latest/driver-api/early-userspace/buffer-format.html).
See also [early userspace support](https://www.kernel.org/doc/html/latest/driver-api/early-userspace/early_userspace_support.html) for more information about how the kernel uses initramfs during the boot process.

See [examples](./examples) for demonstrations of how to use this package.