When emergeing kdm-3.5.5 there should be kdm-3.5.4-grub-patch.diff patch applied, it is not and the possibility to set default grub entry for next boot is lost. EDIT:The patch need to be fixed for 3.5.5 as the one for 3.5.4 does not apply.
The patch obviously does not apply: the code has changed.
(In reply to comment #1) > The patch obviously does not apply: the code has changed. > Try this patch: --- kdm-3.5.3.orig/kdm/backend/bootman.c 2005-09-10 10:26:12.000000000 +0200 +++ kdm-3.5.3/kdm/backend/bootman.c 2006-07-07 22:09:08.000000000 +0200 @@ -82,7 +82,7 @@ int len; char line[1000]; - if (!grub && !(grub = locate( "grub" ))) + if (!grub && !(grub = locate( "grub-set-default" ))) return BO_NOMAN; *def = 0; @@ -130,19 +130,14 @@ static void commitGrub( void ) { - FILE *f; - int pid; - static const char *args[] = { 0, "--batch", "--no-floppy", 0 }; - + char command[256]; + if (sdRec.bmstamp != mTime( GRUB_MENU ) && setGrub( sdRec.osname, &sdRec ) != BO_OK) return; - args[0] = grub; - if ((f = pOpen( (char **)args, 'w', &pid ))) { - fprintf( f, "savedefault --default=%d --once\n", sdRec.osindex ); - pClose( f, pid ); - } + sprintf(command, "%s %d", grub, sdRec.osindex); + system(command); } static char *lilo;
Hmmm, some lines got wrapped. I'll add it as an attachment.
Created attachment 100952 [details, diff] Upstream patch, applies cleanly
This patch is also missing in kdm-3.5.4-r2 ( it was introduced in kdm-3.5.4-r1).
(In reply to comment #5) > This patch is also missing in kdm-3.5.4-r2 ( it was introduced in > kdm-3.5.4-r1). No. It's not missing. It was moved to the patchset.
Erm...you added a patch for version 3.5.3... the lines do not match. I ended regenerating the patch myself. Fixed in CVS. Please, test and reopen if necessary.