1
0

fix: dereference symbolic links when copying /usr/src

This commit is contained in:
dump_stack() 2023-05-17 12:41:09 +00:00
parent 950cee6df0
commit d45d5731a9
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -431,7 +431,7 @@ func installKernel(sk config.KernelMask, pkgname string, force, headers bool) (e
cmd += " && cp -r /boot /target/" cmd += " && cp -r /boot /target/"
cmd += " && cp -r /lib/modules /target/lib/" cmd += " && cp -r /lib/modules /target/lib/"
cmd += " && cp -r /usr/src /target/usr/" cmd += " && cp -rL /usr/src /target/usr/"
_, err = c.Run("", cmd) _, err = c.Run("", cmd)
if err != nil { if err != nil {