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:
Clayton Craft
2025-06-13 23:25:16 -07:00
parent 39ee6752fd
commit 4f6af31a7a

View File

@@ -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