Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177576 - sys-apps/debianutils-2.18 break kernel make install
Summary: sys-apps/debianutils-2.18 break kernel make install
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 178390 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-08 02:13 UTC by Devon Miller
Modified: 2007-05-16 15:01 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for /usr/sbin/mkboot (mkboot.diff,326 bytes, patch)
2007-05-09 17:31 UTC, Luigi 'Comio' Mantellini
Details | Diff
ops... (mkboot.diff,652 bytes, patch)
2007-05-09 17:48 UTC, Luigi 'Comio' Mantellini
Details | Diff
patch for /usr/sbin/mkboot (correct) (mkboot.diff,326 bytes, patch)
2007-05-09 17:49 UTC, Luigi 'Comio' Mantellini
Details | Diff
A grub-0.97-r3.ebuild witch installs the update-grub script (grub-0.97-r3.ebuild,4.58 KB, text/plain)
2007-05-15 00:03 UTC, Peter Levine
Details
The latest update-grub script (update-grub,32.00 KB, text/plain)
2007-05-15 00:05 UTC, Peter Levine
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Devon Miller 2007-05-08 02:13:42 UTC
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,
Comment 1 BedOS_Gui 2007-05-08 10:11:37 UTC
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
Comment 2 Luigi 'Comio' Mantellini 2007-05-09 17:31:12 UTC
Created attachment 118667 [details, diff]
patch for /usr/sbin/mkboot

apply this patch to /usr/bin/mkboot
Comment 3 Luigi 'Comio' Mantellini 2007-05-09 17:48:08 UTC
Created attachment 118668 [details, diff]
ops...
Comment 4 Luigi 'Comio' Mantellini 2007-05-09 17:49:13 UTC
Created attachment 118670 [details, diff]
patch for /usr/sbin/mkboot (correct)
Comment 5 Dan A. Dickey 2007-05-11 13:00:17 UTC
The patch works for me.
Comment 6 SpanKY gentoo-dev 2007-05-13 22:13:21 UTC
*** Bug 178390 has been marked as a duplicate of this bug. ***
Comment 7 Nick Devito 2007-05-14 04:41:39 UTC
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. 
Comment 8 Matthias Schwarzott gentoo-dev 2007-05-14 07:48:46 UTC
Please apply this small patch,
as else "make install" is unusable.
Comment 9 Roy Marples (RETIRED) gentoo-dev 2007-05-14 10:27:47 UTC
Now package.masked as vanilla grub does not install update-grub.
I've emailed the debianutils maintainer about this.
Comment 10 Peter Levine 2007-05-14 23:21:33 UTC
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.
Comment 11 Peter Levine 2007-05-15 00:03:33 UTC
Created attachment 119287 [details]
A grub-0.97-r3.ebuild witch installs the update-grub script

.. for instance ...
Comment 12 Peter Levine 2007-05-15 00:05:07 UTC
Created attachment 119288 [details]
The latest update-grub script

To be put in the files directory.
Comment 13 SpanKY gentoo-dev 2007-05-15 15:00:19 UTC
masking a package isnt a fix
Comment 14 Roy Marples (RETIRED) gentoo-dev 2007-05-16 15:01:39 UTC
2.18.1 is