Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 572154

Summary: genkernel: "Could not copy System.map from kerncache for the kernel package!" when building installer image using catalyst.
Product: Gentoo Hosted Projects Reporter: jyhpsycho
Component: genkernelAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: genkernel log file.

Description jyhpsycho 2016-01-17 01:20:39 UTC
Created attachment 423088 [details]
genkernel log file.

This error is caused by line 51 of /usr/share/genkernel/gen_package.sh:

gen_die 'Could not copy System.map from kerncache for the kernel package!'

It mischecks System.map path on line 49 of that.

47: /bin/tar -xj -C ${TEMP}/minkernpackage -f ${KERNCACHE} System.map-${ARCH}-${KV}
48: mv minkernpackage/{System.map-${ARCH}-${KV},System.map-${KNAME}-${ARCH}-${KV}}
49: if [ ! -f System.map-${KNAME}-${ARCH}-${KV} ]
50: then
51:   gen_die 'Could not copy System.map from kerncache for the kernel package!'
52: fi

line 49 should be:
if [ ! -f minkernpackage/System.map-${KNAME}-${ARCH}-${KV} ]
Comment 1 jyhpsycho 2016-01-17 11:53:58 UTC

*** This bug has been marked as a duplicate of bug 570822 ***