There's an issue with mkkernel if the /lib/modules/(version) contains symlinks. shutil.copytree() can deal with symlinks to files, but not to directories.
The result is error like this:
shutil.Error: [('/lib/modules/..../extramodules', '/tmp/tmpsea3yv0m/modules/extramodules', "[Errno 21] Is a directory: '/lib/modules/..../extramodules'")]
Where extramodules is a link to another directory.
There's an issue with mkkernel if the
/lib/modules/(version)
contains symlinks.shutil.copytree()
can deal with symlinks to files, but not to directories.The result is error like this:
Where
extramodules
is a link to another directory.