fix: dereference symbolic links only for debian
This commit is contained in:
		| @@ -431,7 +431,11 @@ func installKernel(sk config.KernelMask, pkgname string, force, headers bool) (e | ||||
|  | ||||
| 	cmd += " && cp -r /boot /target/" | ||||
| 	cmd += " && cp -r /lib/modules /target/lib/" | ||||
| 	if sk.DistroType == config.Debian { | ||||
| 		cmd += " && cp -rL /usr/src /target/usr/" | ||||
| 	} else { | ||||
| 		cmd += " && cp -r /usr/src /target/usr/" | ||||
| 	} | ||||
|  | ||||
| 	_, err = c.Run("", cmd) | ||||
| 	if err != nil { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user