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

Bug 352326

Summary: sys-apps/debianutils-3.4.3 kernel make install annoyance
Product: Gentoo Linux Reporter: László Szalma <dblaci>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: minor CC: brendlerjg, jer
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description László Szalma 2011-01-21 09:32:13 UTC
After compiling the kernel, make install should copy the kernel image to the right place.

It worked with sys-apps/debianutils-3.4.2, but now

# make install
sh /usr/src/linux-2.6.37-gentoo/arch/x86/boot/install.sh 2.6.37-gentoo arch/x86/boot/bzImage \
        System.map "/boot"
run-parts: failed to open directory /etc/kernel/postinst.d: No such file or directory
make[1]: *** [install] Error 1
make: *** [install] Error 2


-------------------------------------------

running it manually:

# installkernel 2.6.37-gentoo arch/x86/boot/bzImage System.map "/boot"
run-parts: failed to open directory /etc/kernel/postinst.d: No such file or directory



-------------------------------------------

the kernel is installed anyway!

suggestions:

patch the install kernel to check this postinst directory for existense. Or include this (empty??) postinst.d directory in tha package.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-01-21 16:00:16 UTC
/etc/kernel/postinst.d could be quite useful, for instance to simply run lilo (I tend to forget after a new kernel is added to /boot), so I am inclined to add the empty directory to the ebuild using keepdir.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-01-21 16:04:00 UTC
Fixed in -r1. The installkernel script should probably check for its existence, but I doubt upstream would view that as a needed sanity check as upstream would install this directory anyway. :)
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2011-01-24 19:36:09 UTC
*** Bug 352330 has been marked as a duplicate of this bug. ***
Comment 4 Boney McCracker 2011-01-24 20:24:39 UTC
(In reply to comment #2)
> Fixed in -r1. The installkernel script should probably check for its existence,
> but I doubt upstream would view that as a needed sanity check as upstream would
> install this directory anyway. :)
> 

I hope you are not having it create the directory, if it's not found (as you mentioned above).

If it's not found, the script should simply not proceed to try to run its contents (as I suggested in my duplicate bug).

Thank you.