/[magellan-source]/tags/grubby-8_40_20170706/grubby.c |
Log of /tags/grubby-8_40_20170706/grubby.c
Parent Directory
|
Revision Log
Links to HEAD: | (view) (download) (annotate) |
Sticky Revision: |
Revision 3047 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jul 6 12:20:52 2017 UTC (6 years, 11 months ago) by niro
File length: 134421 byte(s)
Diff to previous 3031 , to selected 1721
tagged 'grubby-8_40_20170706'
Revision 3031 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 27 14:48:09 2017 UTC (6 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 134421 byte(s)
Diff to previous 3029 , to selected 1721
Fix setDefaultImage for s390/s390x (#1285601)
Revision 3029 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 27 14:46:56 2017 UTC (6 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 134457 byte(s)
Diff to previous 3027 , to selected 1721
Fix --info for s390x/s390 (#1285601)
Revision 3027 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 27 14:45:42 2017 UTC (6 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 134084 byte(s)
Diff to previous 3026 , to selected 1721
Fix initial saved_entry read issue (#1285601)
Revision 3026 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 27 14:43:04 2017 UTC (6 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 132760 byte(s)
Diff to previous 3025 , to selected 1721
Initialize variable for ppc environment (#1285601)
Revision 3025 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 27 14:42:27 2017 UTC (6 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 132671 byte(s)
Diff to previous 3024 , to selected 1721
Write correct default to environment (#1285601)
Revision 3024 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 27 14:41:50 2017 UTC (6 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 132456 byte(s)
Diff to previous 3021 , to selected 1721
Fix findTemplate index logic (#1285601)
Revision 3021 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 27 14:39:37 2017 UTC (6 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 132399 byte(s)
Diff to previous 3019 , to selected 1721
Don't assume --make-default just because --set-index was passed.
Revision 3019 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 27 14:38:16 2017 UTC (6 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 130994 byte(s)
Diff to previous 3018 , to selected 1721
Track configuration modifications
Revision 3018 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 27 14:37:30 2017 UTC (6 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 130856 byte(s)
Diff to previous 3017 , to selected 1721
Add index constant definitions instead of open-coded values.
Revision 3017 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 27 14:36:53 2017 UTC (6 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 130327 byte(s)
Diff to previous 3014 , to selected 1721
Rename setDefaultImage variables
Revision 3014 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 27 14:34:11 2017 UTC (6 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 130176 byte(s)
Diff to previous 3010 , to selected 1721
Fix inline help typo (#1232168)
Revision 3010 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 27 14:30:29 2017 UTC (6 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 130177 byte(s)
Diff to previous 3007 , to selected 1721
Ensure command line updates also honor --set-index
Revision 3007 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 27 14:28:28 2017 UTC (6 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 130083 byte(s)
Diff to previous 3003 , to selected 1721
grubby: add --set-index to specify which position to add new entries as
Revision 3003 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 27 14:14:00 2017 UTC (6 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 129722 byte(s)
Diff to previous 3002 , to selected 1721
Make SET_VARIABLE get handled individually in GetNextLine()
Revision 3002 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 27 14:11:58 2017 UTC (6 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 127293 byte(s)
Diff to previous 2995 , to selected 1721
Lindent, dammit.
Revision 2995 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 30 10:37:52 2016 UTC (7 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 131670 byte(s)
Diff to previous 2992 , to selected 1721
Don't leak from one extractTitle() call.
Revision 2992 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 30 10:35:14 2016 UTC (7 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 131623 byte(s)
Diff to previous 2991 , to selected 1721
Add a bunch of tests for various --default-{kernel,title,index}.
Revision 2991 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 30 10:34:31 2016 UTC (7 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 131500 byte(s)
Diff to previous 2989 , to selected 1721
Drop SEGV handler
Revision 2989 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 30 10:32:12 2016 UTC (7 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 131885 byte(s)
Diff to previous 2986 , to selected 1721
grubby: properly handle mixed ' and " and nested quotes
Revision 2986 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 30 10:30:31 2016 UTC (7 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 131008 byte(s)
Diff to previous 2983 , to selected 1721
Set envFile from --env when bootloader is not specified
Revision 2983 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 30 10:27:31 2016 UTC (7 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 130953 byte(s)
Diff to previous 2980 , to selected 1721
grub2ExtractTitle and extractTitle don't do the same thing.
Revision 2980 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 30 10:26:25 2016 UTC (7 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 131024 byte(s)
Diff to previous 2977 , to selected 1721
Make the cases for 0cb78dab /actually work/, not just not crash.
Revision 2977 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 30 10:24:27 2016 UTC (7 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 130632 byte(s)
Diff to previous 2972 , to selected 1721
Strdup the right place in title extraction.
Revision 2972 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 30 10:17:00 2016 UTC (7 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 130653 byte(s)
Diff to previous 2971 , to selected 1721
add support for devicetree directories for use on arm
Revision 2971 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 30 10:06:57 2016 UTC (7 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 130488 byte(s)
Diff to previous 2963 , to selected 1721
Add --devtree support to extlinux (#1088933)
Revision 2963 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 29 14:41:26 2016 UTC (7 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 130445 byte(s)
Diff to previous 2962 , to selected 1721
Get the error checking on getLineByType() return /right/.
Revision 2962 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 29 14:40:57 2016 UTC (7 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 130446 byte(s)
Diff to previous 2960 , to selected 1721
Always error check getLineByType()
Revision 2960 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 29 14:07:59 2016 UTC (7 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 130334 byte(s)
Diff to previous 2959 , to selected 1721
Support filtering --update-kernel= by title as well.
Revision 2959 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 29 14:07:33 2016 UTC (7 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 129637 byte(s)
Diff to previous 2957 , to selected 1721
Make findTemplate actually return the saved default.
Revision 2957 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 29 14:06:18 2016 UTC (7 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 129517 byte(s)
Diff to previous 2718 , to selected 1721
grubby: fix initrd updating when multiboot exist
Revision 2718 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 16 11:01:36 2014 UTC (9 years, 10 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 129523 byte(s)
Diff to previous 2709 , to selected 1721
Don't go past the last element of indexVars in findEntryByPath
Revision 2709 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 16 10:57:06 2014 UTC (9 years, 10 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 129516 byte(s)
Diff to previous 2708 , to selected 1721
Strip the LT_END line from a new stanza before adding "missing" parts.
Revision 2708 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 16 10:56:09 2014 UTC (9 years, 10 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 129340 byte(s)
Diff to previous 2700 , to selected 1721
Include multiboot module parameters in --info (#997934)
Revision 2700 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 16 10:52:01 2014 UTC (9 years, 10 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 128908 byte(s)
Diff to previous 2694 , to selected 1721
Previous ARM 64-bit test had the wrong compiler define for aarch64.
Revision 2694 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 16 10:48:13 2014 UTC (9 years, 10 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 128907 byte(s)
Diff to previous 2692 , to selected 1721
grub: Fix a crash with kernel line without being preceded by title
Revision 2692 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 16 10:45:12 2014 UTC (9 years, 10 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 128898 byte(s)
Diff to previous 2688 , to selected 1721
extlinux: Understand "default" properly
Revision 2688 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 16 10:42:34 2014 UTC (9 years, 10 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 128764 byte(s)
Diff to previous 2687 , to selected 1721
Always choose linux/initrd on efi-only platforms.
Revision 2687 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 16 10:41:38 2014 UTC (9 years, 10 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 128756 byte(s)
Diff to previous 2685 , to selected 1721
Avoid LT_LINUX_EFI/LT_INITRD_EFI on Aarch64.
Revision 2685 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 16 10:38:09 2014 UTC (9 years, 10 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 128638 byte(s)
Diff to previous 2683 , to selected 1721
Support "devicetree" directive in grub2.
Revision 2683 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 16 09:51:14 2014 UTC (9 years, 10 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 127458 byte(s)
Diff to previous 2682 , to selected 1721
Honor "linux16" and "initrd16"
Revision 2682 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 16 09:49:24 2014 UTC (9 years, 10 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 126574 byte(s)
Diff to previous 2263 , to selected 1721
-grub2 -> grub fixes
Revision 2263 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 21 14:08:21 2013 UTC (10 years, 7 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 126578 byte(s)
Diff to previous 2262 , to selected 1721
If we're using multiboot, add a new mbmodule not an initramfs (#999908)
Revision 2262 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 21 14:06:22 2013 UTC (10 years, 7 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 125422 byte(s)
Diff to previous 2258 , to selected 1721
Add support for SUSE grub2 configuration files
Revision 2258 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 21 14:02:25 2013 UTC (10 years, 7 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 125368 byte(s)
Diff to previous 2257 , to selected 1721
Handle numeric indices in grub2's saved environment.
Revision 2257 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 21 14:01:48 2013 UTC (10 years, 7 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 124814 byte(s)
Diff to previous 2255 , to selected 1721
Attempt to compensate for shell quoting in grub names.
Revision 2255 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 21 14:00:38 2013 UTC (10 years, 7 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 124014 byte(s)
Diff to previous 2252 , to selected 1721
If we're using default=saved_entry, and there's nothing saved, it's #0.
Revision 2252 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 21 13:59:08 2013 UTC (10 years, 7 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 123696 byte(s)
Diff to previous 2250 , to selected 1721
Make grub2's "set default=${saved_entry}" work better (#808021)
Revision 2250 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 21 13:56:22 2013 UTC (10 years, 7 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 119783 byte(s)
Diff to previous 2246 , to selected 1721
Don't continue executing after printing the default index.
Revision 2246 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 21 13:53:05 2013 UTC (10 years, 7 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 119765 byte(s)
Diff to previous 2236 , to selected 1721
Error instead of segfaulting if we can't find any working config (#912873)
Revision 2236 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 21 13:19:07 2013 UTC (10 years, 7 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 119348 byte(s)
Diff to previous 2058 , to selected 1721
Add logging when things fail.
Revision 2058 - (view) (download) (annotate) - [select for diffs]
Modified Wed Feb 20 14:06:30 2013 UTC (11 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 118283 byte(s)
Diff to previous 2056 , to selected 1721
Spelling fixes.
Revision 2056 - (view) (download) (annotate) - [select for diffs]
Modified Wed Feb 20 14:04:28 2013 UTC (11 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 118284 byte(s)
Diff to previous 2052 , to selected 1721
Deal with case-insensitive extlinux config file
Revision 2052 - (view) (download) (annotate) - [select for diffs]
Modified Wed Feb 20 14:00:54 2013 UTC (11 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 118110 byte(s)
Diff to previous 1940 , to selected 1721
Fix removals and initrd additions for LT_KERNEL_EFI type entries.
Revision 1940 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 1 12:39:50 2012 UTC (11 years, 8 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 117998 byte(s)
Diff to previous 1934 , to selected 1721
Don't accidentally migrate from linuxefi back to linux (#859285)
Revision 1934 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 1 12:08:46 2012 UTC (11 years, 8 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 116684 byte(s)
Diff to previous 1931 , to selected 1721
Fix broken alloca()/free() pair.
Revision 1931 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 1 12:06:26 2012 UTC (11 years, 8 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 116707 byte(s)
Diff to previous 1868 , to selected 1721
Handle linuxefi and initrdefi lines correctly in grub2.
Revision 1868 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 13:22:30 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 116616 byte(s)
Diff to previous 1866 , to selected 1721
Fix minor memory leak introduced by previous fix.
Revision 1866 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 13:21:25 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 116578 byte(s)
Diff to previous 1864 , to selected 1721
Revert "Avoid string duplication calling dirname()"
Revision 1864 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 13:20:31 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 116569 byte(s)
Diff to previous 1859 , to selected 1721
Fix uninitialized variable error.
Revision 1859 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 13:15:20 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 116569 byte(s)
Diff to previous 1855 , to selected 1721
Add --set-default-index feature
Revision 1855 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 13:13:03 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 115969 byte(s)
Diff to previous 1854 , to selected 1721
Fix minor style issue.
Revision 1854 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 13:12:32 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 115977 byte(s)
Diff to previous 1853 , to selected 1721
ia64/elilo: add support for probing the currently installed bootloader
Revision 1853 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 13:12:07 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 115528 byte(s)
Diff to previous 1852 , to selected 1721
ppc64/yaboot: add support for probing the currently installed bootloader
Revision 1852 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 13:11:38 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 114608 byte(s)
Diff to previous 1851 , to selected 1721
Fix grub detection on SuSE systems: config file order
Revision 1851 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 13:09:47 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 114608 byte(s)
Diff to previous 1850 , to selected 1721
Invert "isSuseSystem()" test so the suse code is nearer the test.
Revision 1850 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 13:09:12 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 114612 byte(s)
Diff to previous 1849 , to selected 1721
Fix for grub on SuSE systems: lba and boot information
Revision 1849 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 13:08:29 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 108067 byte(s)
Diff to previous 1846 , to selected 1721
Support systems that do not have /boot as a separate filesystem
Revision 1846 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 13:00:11 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 107849 byte(s)
Diff to previous 1845 , to selected 1721
Convert to c99 loop initializations.
Revision 1845 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 12:59:39 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 107907 byte(s)
Diff to previous 1844 , to selected 1721
Avoid string duplication calling dirname()
Revision 1844 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 12:59:07 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 107916 byte(s)
Diff to previous 1841 , to selected 1721
Add "const" specifier to function arguments
Revision 1841 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 12:49:27 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 107853 byte(s)
Diff to previous 1840 , to selected 1721
Pick the last / device (#826537)
Revision 1840 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 12:48:49 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 107827 byte(s)
Diff to previous 1837 , to selected 1721
Preserve "trailing indentation" when splitting line elements (#742720)
Revision 1837 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 2 12:46:11 2012 UTC (11 years, 11 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 107877 byte(s)
Diff to previous 1802 , to selected 1721
Fix failures with grub 2.00~beta2 and 8.10, and add a test case.
Revision 1802 - (view) (download) (annotate) - [select for diffs]
Modified Mon Apr 16 17:49:04 2012 UTC (12 years, 1 month ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 107877 byte(s)
Diff to previous 1801 , to selected 1721
Try to find grub2 config first
Revision 1801 - (view) (download) (annotate) - [select for diffs]
Modified Mon Apr 16 17:48:10 2012 UTC (12 years, 1 month ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 107857 byte(s)
Diff to previous 1800 , to selected 1721
Make --remove-kenrel support titles in grub2 (and other fixes)
Revision 1800 - (view) (download) (annotate) - [select for diffs]
Modified Mon Apr 16 17:46:40 2012 UTC (12 years, 1 month ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 105046 byte(s)
Diff to previous 1751 , to selected 1721
Use "isquote" where appropriate.
Revision 1751 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 18 01:10:10 2012 UTC (12 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 105142 byte(s)
Diff to previous 1750 , to selected 1721
Try to display title when printing information with '--info' Signed-off-by: Cleber Rosa <crosa@redhat.com>
Revision 1750 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 18 01:09:51 2012 UTC (12 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 104863 byte(s)
Diff to previous 1748 , to selected 1721
Fix endswith() to correctly test its input for validity.
Revision 1748 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 18 01:07:15 2012 UTC (12 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 104863 byte(s)
Diff to previous 1747 , to selected 1721
Implement support for "default saved" for grub2 Signed-off-by: Cleber Rosa <crosa@redhat.com>
Revision 1747 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 18 01:06:48 2012 UTC (12 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 104462 byte(s)
Diff to previous 1746 , to selected 1721
Include prefix when printing kernel information When running grubby with '--info=', the initrd is displayed with the boot prefix, so, for correctness, also include it in the kernel line. Signed-off-by: Cleber Rosa <crosa@redhat.com>
Revision 1746 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 18 01:06:20 2012 UTC (12 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 104452 byte(s)
Diff to previous 1745 , to selected 1721
Refactor grub2 title extraction, making it a function '--default-title' now uses that functions, but others such as '--info' could, IMHO, also display the title and thus, use the refactored function. Signed-off-by: Cleber Rosa <crosa@redhat.com>
Revision 1745 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 18 01:05:52 2012 UTC (12 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 102856 byte(s)
Diff to previous 1736 , to selected 1721
Include a / when one is missing in paths (#769641)
Revision 1736 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 18 01:02:17 2012 UTC (12 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 102496 byte(s)
Diff to previous 1727 , to selected 1721
grubby: Add --debug option to annotate "suitable template" failures Today, when grubby fails with "no suitable template found" the user has no idea why that might be. These can fail for several reasons. So add a --debug option to print out the line in grubby.c where it failed, a text message describing the failure, and a copy of the bootloader entry that failed, to aid investigation. Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Revision 1727 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 18 00:57:49 2012 UTC (12 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 100892 byte(s)
Diff to previous 1722 , to selected 1721
Use dummy entries for text following kernel entries so it is preserved (#744717) Signed-off-by: Adam Williamson <awilliam@redhat.com>
Revision 1722 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 18 00:53:14 2012 UTC (12 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 100861 byte(s)
Diff to previous 1721
Update "echo 'Loading..." messages to the new kernel version grub2-mkconfig will create lines like: echo 'Loading Linux 3.1.0-0.rc6.git0.0.fc16.x86_64 ...' - depending on the content of /etc/default/grub. grubby would recognize these lines and replace them with lines with the right version number such as: echo 'Loading Fedora (3.1.0-0.rc6.git0.0.fc16.x86_64)' these lines were however not recognized by grubby and would not be updated on next kernel update when this entry would be used as template. With this patch grubby will no longer look for a specific title but patch any "echo 'Loading" line immediately before the kernel line. Signed-off-by: Adam Williamson <awilliam@redhat.com>
Revision 1721 - (view) (download) (annotate) - [selected]
Modified Sat Feb 18 00:52:28 2012 UTC (12 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 100790 byte(s)
Diff to previous 1720
Add new '--default-title' feature. This displays the title of the default entry directly from the parsed configuration file. Signed-off-by: Cleber Rosa <crosa@redhat.com>
Revision 1720 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 18 00:51:28 2012 UTC (12 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 99504 byte(s)
Diff to previous 1718 , to selected 1721
Add new '--default-index' feature. This displays the (numeric) index of the default entry directly from the parsed configuration file. Signed-off-by: Cleber Rosa <crosa@redhat.com>
Revision 1718 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 18 00:49:41 2012 UTC (12 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 99184 byte(s)
Diff to previous 1717 , to selected 1721
GRUB: Fix detection by increasing offset when comparing stage1 to MBR A couple of instructions of grub's stage1 get modified when copied to the MBR (replaced by NOOPs). Check for this condition, and skip these bytes while compare stage1 and MBR. Signed-off-by: Cleber Rosa <crosa@redhat.com>
Revision 1717 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 18 00:47:17 2012 UTC (12 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 98722 byte(s)
Diff to previous 1715 , to selected 1721
Don't crash if grubConfig not found. I trigger this crash on my system. It has syslinux and no grub. Signed-off-by: Christopher Li <kernel@chrisli.org>
Revision 1715 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 18 00:35:46 2012 UTC (12 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 98708 byte(s)
Diff to previous 1714 , to selected 1721
Look for other possible grub config files Since debian and Ubuntu don't symlink /boot/grub/menu.lst to /etc/grub.conf, make it possible to look them over on this original location as well. Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Revision 1714 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 18 00:32:14 2012 UTC (12 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 98209 byte(s)
Diff to previous 1696 , to selected 1721
Make grubby to recognize Ubuntu's spin of Grub2 We are looking to use grubby as a bootloader entries manager for the autotest project: http://autotest.kernel.org/ The project aims to cover more distros than just red hat based ones, so this small patch fixes the tool under Ubuntu. They have chosen to name grub2 grub, in all directory references. Also, they don't make symlinks of grub config files on /etc. So, adapt the code to take into consideration this behavior. Changes from v1: * Removed nested set of {} * Made the return in case /etc/grub.d is found indented * Moved the dbgPrint("not found\n") statement before the last return. Also, put a new dbgPrint("found\n") if we've found a suitable grub2 config file ubuntu/debian style. Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Revision 1696 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 17 23:46:24 2012 UTC (12 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 97866 byte(s)
Diff to previous 1694 , to selected 1721
Add grub2.cfg support to grubby.
Revision 1694 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 17 23:23:07 2012 UTC (12 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 88534 byte(s)
Diff to previous 1693 , to selected 1721
Tweak some make options. Some functions are only used in dbgPrintf() arguments. As such, errors/warnings on unused functions need to be disabled. Also, use -std=gnu99. Also, add a debug target.
Revision 1693 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 17 23:21:08 2012 UTC (12 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 88513 byte(s)
Diff to previous 1692 , to selected 1721
Rename entrySeparator to entryStart. Since we're actually using it to detect the start of an entry (and specifically not the end), name this slightly better.
Revision 1692 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 17 23:14:54 2012 UTC (12 years, 3 months ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 88565 byte(s)
Diff to previous 1332 , to selected 1721
Convert configFileInfo structs to C99-style initializers. Get rid of the old initializers where struct names were commends, in favor of C99-style assignment, so new fields can be put at logical places without having to change the whole file.
Revision 1332 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jun 3 20:32:19 2011 UTC (13 years ago) by niro
Original Path: trunk/grubby/grubby.c
File length: 91953 byte(s)
Copied from: trunk/mkinitrd-magellan/grubby/grubby.c revision 1304
Diff to previous 1304 , to selected 1721
-forkin standalone grubby
Revision 1304 - (view) (download) (annotate) - [select for diffs]
Modified Fri May 27 16:19:11 2011 UTC (13 years ago) by niro
Original Path: trunk/mkinitrd-magellan/grubby/grubby.c
File length: 91953 byte(s)
Diff to previous 1177 , to selected 1721
merged with 7.0.16: upstream commit: http://git.fedorahosted.org/git?p=grubby.git;a=commit;h=703a5b7353fc34df4401bba226736176e1c62b7e When passing --update-kernel=ALL the --args should apply to all kernel entries, not just the first one.
Revision 1177 - (view) (download) (annotate) - [select for diffs]
Modified Wed Dec 15 21:16:32 2010 UTC (13 years, 5 months ago) by niro
Original Path: trunk/mkinitrd-magellan/grubby/grubby.c
File length: 92155 byte(s)
Diff to previous 1156 , to selected 1721
-added check for return value of getuuidbydev() - resolves a segfault if the device does not exist - see rhbz#592294
Revision 1156 - (view) (download) (annotate) - [select for diffs]
Modified Tue Sep 14 19:47:52 2010 UTC (13 years, 8 months ago) by niro
Original Path: trunk/mkinitrd-magellan/grubby/grubby.c
File length: 92052 byte(s)
Diff to previous 926 , to selected 1721
-merged with upstream: -update initrd support -better rootdev handling -better support for uuids
Revision 926 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 28 13:29:38 2009 UTC (14 years, 7 months ago) by niro
Original Path: trunk/mkinitrd-magellan/grubby/grubby.c
File length: 89031 byte(s)
Diff to previous 920 , to selected 1721
-read grub options from /etc/conf.d/grub
Revision 920 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 28 09:50:42 2009 UTC (14 years, 7 months ago) by niro
Original Path: trunk/mkinitrd-magellan/grubby/grubby.c
File length: 89037 byte(s)
Diff to previous 914 , to selected 1721
-fixed grub.conf default location
Revision 914 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 28 00:16:16 2009 UTC (14 years, 7 months ago) by niro
Original Path: trunk/mkinitrd-magellan/grubby/grubby.c
File length: 89031 byte(s)
Diff to previous 532 , to selected 1721
-updated grubby to version 7.0.8 from fedory with blkid support
Revision 532 - (view) (download) (annotate) - [select for diffs]
Added Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
Original Path: trunk/mkinitrd-magellan/grubby/grubby.c
File length: 76002 byte(s)
Diff to selected 1721
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.