I discovered this after syncing portage during a brief period when debianutils-2.18 was not masked. The kernel's (suspend2-sources) "make install" calls arch/i386/boot/install.sh to perform the kernel install. The install.sh in turn calls /usr/sbin/mkboot (from debianutils). Between 2.17.5 and 2.18 mkboot changed. It now attempts to invoke "update-grub" to regenerate grub.conf. Unfortunately, debianutils-2.18 does not install update-grub so this fails. Either update-grub needs to be added to debianutils or mkboot needs to be patched to not attempt to use it,
confirmed on my system : localhost linux # make install sh /usr/src/linux-2.6.21-ck1/arch/x86_64/boot/install.sh 2.6.21-ck1 arch/x86_64/boot/bzImage System.map "/boot" In order to use the new kernel image you have just installed, you will need to reboot the machine. First, however, you will need to either make a bootable floppy diskette, re-run LILO, or have GRUB installed. Checking for ELILO...No which: no update-grub in (/sbin:/bin:/usr/sbin:/usr/bin:/sbin:/usr/sbin) Checking for LILO...No Checking for SILO...No Checking for PALO...No Should I make a bootdisk? (y/N) n WARNING: Your system is probably unbootable now. After correcting any problems, rerun this script with the command `mkboot -i'. make[1]: *** [install] Erreur 1 make: *** [install] Erreur 2
Created attachment 118667 [details, diff] patch for /usr/sbin/mkboot apply this patch to /usr/bin/mkboot
Created attachment 118668 [details, diff] ops...
Created attachment 118670 [details, diff] patch for /usr/sbin/mkboot (correct)
The patch works for me.
*** Bug 178390 has been marked as a duplicate of this bug. ***
One idea would be to just mask 2.18, since the only change between 2.17.5 and 2.18 is the patch which causes the issue.
Please apply this small patch, as else "make install" is unusable.
Now package.masked as vanilla grub does not install update-grub. I've emailed the debianutils maintainer about this.
Debian's grub and grub2 package now handle the installation of the update-grub script, instead of debianutils. I'd suggest that the update-grub script be added to either debianutil's or grub's files directory in the portage tree and installed from the ebuild.
Created attachment 119287 [details] A grub-0.97-r3.ebuild witch installs the update-grub script .. for instance ...
Created attachment 119288 [details] The latest update-grub script To be put in the files directory.
masking a package isnt a fix
2.18.1 is