fix: dereference symbolic links when copying /usr/src
This commit is contained in:
parent
950cee6df0
commit
d45d5731a9
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user