fix: dereference symbolic links only for debian
This commit is contained in:
parent
2a6e775b69
commit
8486a0337d
@ -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/"
|
||||||
|
if sk.DistroType == config.Debian {
|
||||||
cmd += " && cp -rL /usr/src /target/usr/"
|
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user