archive: don't create a symlink for /usr/sbin
Fixes this warning when running on a merged /usr system: addSymlink: failed to get symlink target for: /usr/sbin Part-of: https://gitlab.postmarketos.org/postmarketOS/postmarketos-mkinitfs/-/merge_requests/64 [ci:skip-build]: already built successfully in CI
This commit is contained in:
@@ -421,7 +421,6 @@ func (archive *Archive) writeCpio() error {
|
||||
archive.addSymlink("/bin", "/bin")
|
||||
archive.addSymlink("/sbin", "/sbin")
|
||||
archive.addSymlink("/lib", "/lib")
|
||||
archive.addSymlink("/usr/sbin", "/usr/sbin")
|
||||
}
|
||||
// having a transient function for actually adding files to the archive
|
||||
// allows the deferred fd.close to run after every copy and prevent having
|
||||
|
Reference in New Issue
Block a user