Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 169060 Details for
Bug 242736
kde-base/kdm-4.1.2 fails to set grub default for reboot
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
A diff-file to make the needed changes to KDM's backend/bootman.c
bootman.diff (text/plain), 832 bytes, created by
wakatanka
on 2008-10-19 10:02:29 UTC
(
hide
)
Description:
A diff-file to make the needed changes to KDM's backend/bootman.c
Filename:
MIME Type:
Creator:
wakatanka
Created:
2008-10-19 10:02:29 UTC
Size:
832 bytes
patch
obsolete
>--- kdm/backend/bootman.c 2008-01-05 00:55:44.000000000 +0100 >+++ kdm/backend/bootman.c 2008-10-06 22:25:46.000000000 +0200 >@@ -80,7 +80,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;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 242736
: 169060