1
0

fix: dereference symbolic links only for debian

This commit is contained in:
dump_stack() 2023-05-17 16:15:58 +00:00
parent 2a6e775b69
commit 8486a0337d
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -431,7 +431,11 @@ 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 -rL /usr/src /target/usr/" if sk.DistroType == config.Debian {
cmd += " && cp -rL /usr/src /target/usr/"
} else {
cmd += " && cp -r /usr/src /target/usr/"
}
_, err = c.Run("", cmd) _, err = c.Run("", cmd)
if err != nil { if err != nil {