Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DevCPIO = []cpio.Record{ {Info: cpio.Info{Name: "tcz", Mode: d | 0755}}, {Info: cpio.Info{Name: "etc", Mode: d | 0755}}, {Info: cpio.Info{Name: "dev", Mode: d | 0755}}, {Info: cpio.Info{Name: "ubin", Mode: d | 0755}}, {Info: cpio.Info{Name: "usr", Mode: d | 0755}}, {Info: cpio.Info{Name: "usr/lib", Mode: d | 0755}}, {Info: cpio.Info{Name: "lib64", Mode: d | 0755}}, {Info: cpio.Info{Name: "bin", Mode: d | 0755}}, {Info: cpio.Info{Name: "dev/console", Mode: c | 0600, Rmajor: 5, Rminor: 1}}, {Info: cpio.Info{Name: "dev/tty", Mode: c | 0666, Rmajor: 5, Rminor: 0}}, {Info: cpio.Info{Name: "dev/null", Mode: c | 0666, Rmajor: 1, Rminor: 3}}, {Info: cpio.Info{Name: "dev/port", Mode: c | 0640, Rmajor: 1, Rminor: 4}}, {Info: cpio.Info{Name: "dev/urandom", Mode: c | 0666, Rmajor: 1, Rminor: 9}}, {Info: cpio.Info{Name: "etc/resolv.conf", Mode: f | 0644, FileSize: uint64(len(nameserver))}, ReadCloser: cpio.NewBytesReadCloser([]byte(nameserver))}, {Info: cpio.Info{Name: "etc/localtime", Mode: f | 0644, FileSize: uint64(len(gmt0))}, ReadCloser: cpio.NewBytesReadCloser([]byte(gmt0))}, }
devCPIOrecords are cpio records as defined in the uroot cpio package. Most of the bits can be left unspecified: these all have one link, they are mostly root:root, for example.
Functions ¶
This section is empty.
Types ¶
type Initramfs ¶
func (*Initramfs) WriteFiles ¶
Copy all files relative to `srcDir` to `destDir` in the cpio archive.
Click to show internal directories.
Click to hide internal directories.