From 4a5376eb43c07d6b094711f3967d8a76b4252b8c Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Wed, 24 May 2023 07:30:18 +0000 Subject: [PATCH] fix: copy debian /usr/src with folow symbolic links --- distro/debian/debian.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distro/debian/debian.go b/distro/debian/debian.go index 9effb88..09badf2 100644 --- a/distro/debian/debian.go +++ b/distro/debian/debian.go @@ -431,7 +431,7 @@ func (d Debian) Install(pkgname string, headers bool) (err error) { cmds = append(cmds, "cp -r /boot /target/") cmds = append(cmds, "cp -r /lib/modules /target/lib/") - cmds = append(cmds, "cp -r /usr/src /target/usr/") + cmds = append(cmds, "cp -rL /usr/src /target/usr/") _, err = c.Run("", cmds) if err != nil {