Package util contains various u-root utility functions.
- func GetRSDP() (string, error)
- func GoBin() string
- func Rootfs()
- func UrootPath(n ...string) string
- func Usage(cmd string)
- type Creator
- type Dev
- type Dir
- type File
- type Link
- type Mount
- type Symlink
const ( // Not all these paths may be populated or even exist but OTOH they might. PATHHEAD = "/ubin" PATHMID = "/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin:/usr/local/sbin" PATHTAIL = "/buildbin:/bbin" )
UrootPath returns the full path for a uroot file with the UROOT_ROOT environment variable taken into account. It returns a proper value if UROOT_ROOT is not set. u-root was built to assume everything is rooted at /, and in most cases that is still true. But in hosted mode, e.g. on developer mode chromebooks, it's far better if u-root can be rooted in /usr/local, so successive kernel/root file system upgrades do not wipe it out.