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.
- Host: GitHub
- URL: https://github.com/pdmccormick/go-initramfs
- Owner: pdmccormick
- License: mit
- Created: 2024-04-17T18:27:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-21T01:26:35.000Z (over 1 year ago)
- Last Synced: 2025-05-06T09:52:52.971Z (about 1 year ago)
- Topics: golang-package, initramfs, linux-kernel
- Language: Go
- Homepage: https://go.pdmccormick.com/initramfs
- Size: 41 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.