ebutil
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcTempRemount¶
func TempRemount(logflog.Func, deststring, ignorePrefixes ...string) (restore func()error, errerror,)
TempRemount iterates through all read-only mounted filesystems, bind-mounts them at dest,and unmounts them from their original source. All mount points underneath ignorePrefixeswill not be touched.
Some container runtimes such as sysbox-runc will mount in `/lib/modules` read-only.Seehttps://github.com/nestybox/sysbox/issues/564This trips us up because:
- We call a Kaniko library function `util.DeleteFilesystem` that does exactly what it sayson the tin. If this hits a read-only volume mounted in, unhappiness is the result.
- After deleting the filesystem and building the image, we extract it to the filesystem.If some paths mounted in via volume are present at that time, unhappiness is also likelyto result -- especially in case of read-only mounts.
To work around this we move the mounts out of the way temporarily by bind-mounting themwhile we do our thing, and move them back when we're done.
It is the responsibility of the caller to call the returned functionto restore the original mount points. If an error is encountered while attempting to performthe operation, calling the returned function will make a best-effort attempt to restorethe original state.
Types¶
This section is empty.