-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathChangeLog
10555 lines (8246 loc) · 372 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2008-05-30 Pavel Roskin <[email protected]>
* conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
compiling execute.c doesn't need grub_script.tab.h anymore.
(normal/command.c_DEPENDENCIES): Likewise.
(normal/function.c_DEPENDENCIES): Likewise.
* conf/i386-ieee1275.rmk: Likewise.
* conf/i386-linuxbios.rmk: Likewise.
* conf/i386-pc.rmk: Likewise.
* conf/powerpc-ieee1275.rmk: Likewise.
* conf/sparc64-ieee1275.rmk: Likewise.
2008-05-29 Pavel Roskin <[email protected]>
* disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
when scanning metadata for volume group name.
* include/grub/script.h: Don't include grub_script.tab.h. It's
a generated file, which may only be included from the files with
DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
use union YYSTYPE, as the later allows forward declaration.
* normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
2008-05-29 Robert Millan <[email protected]>
* term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
(OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
[GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
(grub_console_checkkey): Add grub_dprintf() call to report unknown
scan codes.
2008-05-29 Robert Millan <[email protected]>
* term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
control key combinations.
2008-05-29 Robert Millan <[email protected]>
* util/powerpc/ieee1275/grub-install.in: Move from here ...
* util/ieee1275/grub-install.in: ... to here.
* powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
* i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
(grub_install_SOURCES): Likewise.
2008-05-29 Robert Millan <[email protected]>
* fs/affs.c: Update copyright year.
* fs/ext2.c: Likewise.
* fs/fshelp.c: Likewise.
* fs/hfsplus.c: Likewise.
* fs/ntfs.c: Likewise.
* fs/xfs.c: Likewise.
* include/grub/fshelp.h: Likewise.
* util/grub-mkdevicemap.c: Likewise.
2008-05-28 Robert Millan <[email protected]>
* util/update-grub.in: Allow chmod call to fail, since /boot/grub/
might need to be fatfs to support some firmware implementations
(e.g. OFW or EFI).
2008-05-28 Robert Millan <[email protected]>
* util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
devices.
* util/grub-mkdevicemap.c (get_mmc_disk_name)
(make_device_map): Likewise.
2008-05-20 Bean <[email protected]>
* fs/fshelp.c (grub_fshelp_map_block): New function.
(grub_fshelp_find_file): Use 64-bit type for pos and block address.
Use `>>' and `&' operator to avoid 64-bit divide and modulo.
* include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
(GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
(grub_fshelp_journal): New structure.
(grub_fshelp_map_block): New function prototype.
(grub_fshelp_read_file): Use grub_disk_addr_t as block type.
(grub_fshelp_map_block): Likewise.
* fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
(EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
(EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
(EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
(EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
(EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
(EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
(EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
(EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
(EXT3_JOURNAL_FLAG_DELETED): Likewise.
(EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
(grub_ext2_sblock): New members for journal support.
(grub_ext3_journal_header): New structure.
(grub_ext3_journal_revoke_header): Likewise.
(grub_ext3_journal_block_tag): Likewise.
(grub_ext3_journal_sblock): Likewise.
(grub_fshelp_node): New members logfile and journal.
(grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
grub_fshelp_map_block to get real block number.
(grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
number.
(grub_ext2_read_inode): Likewise.
(grub_ext3_get_journal): New function.
(grub_read_inode): Initialize journal using grub_ext3_get_journal.
(grub_ext2_close): Release memory used by journal.
* fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
(REISERFS_MAGIC_DESC_BLOCK): New macro.
(grub_reiserfs_transaction_header): Renamed to
grub_reiserfs_description_block, replace field data with real_blocks.
(grub_reiserfs_commit_block): New structure.
(grub_reiserfs_data): New member journal.
(grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
number.
(grub_reiserfs_read_symlink): Likewise.
(grub_reiserfs_iterate_dir): Likewise.
(grub_reiserfs_open): Likewise.
(grub_reiserfs_read): Likewise.
(grub_reiserfs_get_journal): New function.
(grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
using grub_reiserfs_get_journal.
(grub_reiserfs_close): Release memory used by journal.
* fs/affs.c (grub_affs_read_block): Change block type to
grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
* fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
* fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
* fs/ntfs.c (grub_ntfs_read_block): Likewise.
* fs/udf.c (grub_udf_read_block): Change block type to
grub_disk_addr_t. Use type cast to avoid warning.
* fs/xfs.c (grub_xfs_read_block): Likewise.
2008-05-16 Christian Franke <[email protected]>
* commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
to ensure that break with ESC will always work.
* commands/sleep.c (grub_interruptible_millisleep): Likewise.
Remove ESC from keyboard queue.
2008-05-16 Christian Franke <[email protected]>
* util/biosdisk.c: [__CYGWIN__] Add includes.
(grub_util_biosdisk_open): Use Linux code also for Cygwin.
(get_os_disk): Move variable declarations to OS specific
parts to avoid warning.
[__GNU__] (get_os_disk): Fix /dev/sdXsN case.
[__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
(grub_util_biosdisk_get_grub_dev): Use Linux code also for
Cygwin.
* util/getroot.c: [__CYGWIN__] Add includes.
(strip_extra_slashes): Fix "/" case.
[__CYGWIN__] (get_win32_path): New function.
[__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
[__CYGWIN__] (find_root_device): Disable.
[__CYGWIN__] (get_bootsec_serial): New function.
[__CYGWIN__] (find_cygwin_root_device): Likewise.
[__linux__] (grub_guess_root_device): Add early returns to simplify
structure.
[__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
[__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
check for Linux only.
2008-05-15 Bean <[email protected]>
* kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
keyboard hang problem in apple's intel mac.
2008-05-09 Robert Millan <[email protected]>
* util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
devices.
* util/grub-mkdevicemap.c (get_virtio_disk_name)
(make_device_map): Likewise.
Reported by Aurelien Jarno <[email protected]>
2008-05-07 Ian Campbell <[email protected]>
* util/biosdisk.c (get_os_disk): Recognise xvd type disks.
* util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
(make_device_map): Output entries for xvd type disks.
2008-05-07 Robert Millan <[email protected]>
* util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
devices.
* util/grub-mkdevicemap.c (get_cciss_disk_name)
(make_device_map): Likewise.
Reported by Roland Dreier <[email protected]>
2008-05-07 Robert Millan <[email protected]>
* disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
grub_strstr() call. Correct a few mistakes in failure path handling.
2008-05-06 Robert Millan <[email protected]>
* util/update-grub_lib.in (make_system_path_relative_to_its_root):
Do not print a trailing slash (therefore, the root directory is an
empty string).
(convert_system_path_to_grub_path): Do not remove trailing slash
from make_system_path_relative_to_its_root() output.
* util/i386/pc/grub-install.in: Add trailing slash to output from
make_system_path_relative_to_its_root().
2008-05-06 Robert Millan <[email protected]>
* util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
ensures that output lines aren't intermangled with those sent to
stderr (via grub_util_info()).
* util/grub-probe.c (grub_refresh): Likewise.
* util/i386/pc/grub-setup.c (grub_refresh): Likewise.
2008-05-05 Christian Franke <[email protected]>
* util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
Add Cygwin device names.
(get_ide_disk_name) [__CYGWIN__]: Likewise.
(get_scsi_disk_name) [__CYGWIN__]: Likewise.
(check_device): Return error instead of success on empty name.
(make_device_map): Move label inside linux specific code to
prevent compiler warning.
2008-04-30 Robert Millan <[email protected]>
Based on patch from Fabian Greffrath <[email protected]>
* util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
first boot option.
* util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
2008-04-29 Robert Millan <[email protected]>
* docs/grub.cfg: New file (example GRUB configuration).
2008-04-26 Robert Millan <[email protected]>
* DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
`loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
and `disk/ieee1275/nand.c'.
2008-04-25 Bean <[email protected]>
* Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
i386-linuxbios.
* commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
change the buffer size to 4096 for cdrom device.
* conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
and nand.mod.
(_linux_mod_SOURCES): New variable.
(_linux_mod_CFLAGS): Likewise.
(_linux_mod_LDFLAGS): Likewise.
(linux_mod_SOURCES): Likewise.
(linux_mod_CFLAGS): Likewise.
(linux_mod_LDFLAGS): Likewise.
(nand_mod_SOURCES): Likewise.
(nand_mod_CFLAGS): Likewise.
(nand_mod_LDFLAGS): Likewise.
* disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
type property. (nand device in olpc don't have this property)
* include/grub/disk.h (grub_disk_dev_id): New macro
GRUB_DISK_DEVICE_NAND_ID.
* include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
function prototype.
(grub_rescue_cmd_initrd): Likewise.
* include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
(linux_kernel_params): Add new member ofw_signature, ofw_num_items,
ofw_cif_handler and ofw_idt, adjust padding number.
* include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
GRUB_MACHINE_IEEE1275 is defined.
* include/grub/ieee1275/ieee1275.h (grub_available_iterate):
Use NESTED_FUNC_ATTR attribute on the hook parameter.
* kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
on nested function heap_init.
(grub_upper_mem): New variable for i386-ieee1275.
(grub_get_extended_memory): New function for i386-ieee1275.
(grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
* kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
property.
* loader/i386/ieee1275/linux.c: New file.
* loader/i386/ieee1275/linux_normal.c: New file.
* disk/ieee1275/nand.c: New file.
2008-04-18 Thomas Schwinge <[email protected]>
* util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
value.
* util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
2008-04-18 Robert Millan <[email protected]>
Restructures early code path on ieee1275 to unify grub_main() as
the first C function that is executed in every platform.
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
* kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
cmain().
* kern/powerpc/ieee1275/crt0.S (_start): Likewise.
* kern/ieee1275/cmain.c (cmain): Rename to ...
* kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
* kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
at the beginning.
2008-04-18 Robert Millan <[email protected]>
* util/update-grub.in: Fix syntax error when setting
`GRUB_PRELOAD_MODULES'.
Reported by Stephane Chazelas <[email protected]>
2008-04-17 Lubomir Kundrak <[email protected]>
* aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
section into account, newer toolchains generate unique build ids
* configure.ac: remove the test for --build-id=none acceptance,
we want build ids to be preserved
* genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
far from other sections don't cause the raw binary images grow
size
2008-04-15 Robert Millan <[email protected]>
* disk/lvm.c: Update copyright year.
* kern/misc.c: Likewise.
2008-04-14 Vesa Jaaskelainen <[email protected]>
* disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
there is no memory left for physical volume name.
2008-04-14 Vesa Jaaskelainen <[email protected]>
* disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
volume name mapping to support bigger than 9 character names properly.
2008-04-13 Robert Millan <[email protected]>
* disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
2008-04-13 Christian Franke <[email protected]>
* util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
to create a floppy emulation boot CD when non emulation mode
does not work.
Enable Joliet CD filesystem extension.
2008-04-13 Robert Millan <[email protected]>
* kern/misc.c (grub_strncat): Fix off-by-one error.
Reported by Zhang Huan <[email protected]>
* kern/env.c (grub_env_context_close): Clear current context, not
previous one.
Patch from Zhang Huan <[email protected]>
* kern/misc.c (grub_strcat): Minor speed optimization (same code size).
2008-04-13 Robert Millan <[email protected]>
Improve robustness when handling LVM.
* disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
(and leave `*p' unmodified).
(grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
through it.
(grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
iterating through it.
(grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
through it.
(grub_lvm_scan_device): Check the return value (and fail gracefuly
when due) on each grub_lvm_getvalue() or grub_strstr() call.
Don't assume `vg->pvs != NULL' when iterating through it.
2008-04-13 Robert Millan <[email protected]>
* gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
* genmk.rb (partmap): New variable.
(CLEANFILES, PARTMAPFILES): Add #{partmap}.
(#{partmap}): New target rule.
* genpartmaplist.sh: New file.
* Makefile.in (pkglib_DATA): Add partmap.lst.
(partmap.lst): New target rule.
* util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
modules (including all partition maps), instead of preloading them.
2007-04-13 Fabian Greffrath <[email protected]>
* util/grub.d/30_os-prober.in: New script. Use `os-prober' and
`linux-boot-prober' (if installed) to detect other operating
systems which are installed on the computer and add them to
the boot menu.
* conf/common.rmk: Build and install 30_os-prober.
2008-04-12 Robert Millan <[email protected]>
* kern/powerpc/ieee1275/init.c: Move from here ...
* kern/ieee1275/init.c: ... to here. Update all users.
* kern/powerpc/ieee1275/cmain.c: Move from here ...
* kern/ieee1275/cmain.c: ... to here. Update all users.
* kern/powerpc/ieee1275/openfw.c: Move from here ...
* kern/ieee1275/openfw.c: ... to here. Update all users.
* loader/powerpc/ieee1275/multiboot2.c: Move from here ...
* loader/ieee1275/multiboot2.c: ... to here. Update all users.
2008-04-10 Pavel Roskin <[email protected]>
* configure.ac: Always use "_cv_" in cache variables for
compatibility with Autoconf 2.62.
2008-04-07 Robert Millan <[email protected]>
Revert grub/machine/init.h addition by Pavel (since it breaks on
i386-ieee1275 and others):
* util/i386/pc/misc.c: Remove grub/machine/init.h.
* util/powerpc/ieee1275/misc.c: Likewise.
2008-04-07 Robert Millan <[email protected]>
* util/grub-probe.c (probe): Improve error message.
2008-04-07 Robert Millan <[email protected]>
* util/biosdisk.c (read_device_map): Skip devices that don't exist
(this prevents the presence of a bogus entry from ruining the whole
thing).
2008-04-06 Pavel Roskin <[email protected]>
* util/biosdisk.c: Include grub/util/biosdisk.h.
* util/grub-fstest.c (execute_command): Make static.
* util/grub-mkdevicemap.c (check_device): Likewise.
* util/i386/pc/misc.c: Include grub/machine/init.h.
* util/powerpc/ieee1275/misc.c: Likewise.
* util/lvm.c: Include grub/util/lvm.h.
* util/misc.c: Include grub/kernel.h, grub/misc.h and
grub/cache.h.
* util/raid.c: Include grub/util/raid.h.
(grub_util_getdiskname): Make static.
* util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
grub_hostfs_fini(), as they are called from grub_init_all() and
grub_fini_all() respectively. This fixes an infinite loop in
grub-fstest due to double registration of hostfs.
Reported by Christian Franke <[email protected]>
2008-04-05 Pavel Roskin <[email protected]>
* bus/pci.c (grub_pci_iterate): For multifunction devices, probe
all 8 functions. Otherwise, probe function 0 only.
2008-04-04 Pavel Roskin <[email protected]>
* commands/lspci.c (grub_lspci_iter): Print the bus number
correctly.
* commands/lspci.c (grub_pci_classes): Fix typos.
(grub_lspci_iter): Don't print func twice. Print vendor ID
before device ID, as it's normally done.
* kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
Fix signedness warnings.
* kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
Likewise.
* util/ieee1275/get_disk_name.c: Include config.h so that
_GNU_SOURCE is defined and getline() is declared. Mark an
unused argument as such. Fix a signedness warning.
2008-04-02 Pavel Roskin <[email protected]>
* genkernsyms.sh.in: Use more robust assignments for CC and
srcdir. Quote srcdir.
* gensymlist.sh.in: Likewise. Assert at the compile time that
the symbol table is not empty.
* disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
* fs/cpio.c (grub_cpio_read): Likewise.
2008-04-01 Pavel Roskin <[email protected]>
* disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
* disk/host.c (grub_host_open): Likewise.
* disk/loopback.c (grub_loopback_open): Likewise.
* disk/memdisk.c (grub_memdisk_open): Use a string pointer for
disk->id as in disk/host.c, not a multi-character constant.
* util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
later is obsolete, potentially dangerous and sets a bad example.
* util/i386/efi/grub-mkimage.c (make_header): Likewise.
* util/misc.c (grub_util_get_image_size): Likewise.
* disk/loopback.c (options): Improve help for "--partitions".
* normal/arg.c (grub_arg_show_help): Fix spacing of the long
options to align them with the short options, e.g. "echo -e".
2008-03-31 Bean <[email protected]>
* video/reader/png.c (grub_png_data): New member is_16bit and
image_data.
(grub_png_decode_image_header): Detect 16 bit png image.
(grub_png_convert_image): New function to convert 16 bit image to 8 bit.
(grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
(grub_video_reader_png): Release memory occupied by image_data.
* fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
4096 bytes.
(grub_nfs_mount): Skip the test for sector per cluster.
* include/grub/ntfs.h (MAX_SPC): Removed.
2008-03-31 Bean <[email protected]>
* conf/common.rmk (pkgdata_MODULES): Add afs.mod.
(grub_probe_SOURCES): Add fs/afs.c.
(grub_fstest_SOURCES): Likewise.
(afs_mod_SOURCES): New variable.
(afs_mod_CFLAGS): Likewise.
(afs_mod_LDFLAGS): Likewise.
* conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
(grub_emu_SOURCES): Likewise.
* conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
* conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
* conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
* fs/afs.c: New file.
2008-03-30 Pavel Roskin <[email protected]>
* disk/host.c: Include grub/misc.h to fix a warning.
* util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
warnings about implicit declarations.
* fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
variable.
* include/grub/i386/loader.h: Change declaration of
grub_linux_boot() to match what grub_loader_set() expects.
* util/getroot.c (grub_guess_root_device): Return const char* to
fix a warning.
* util/grub-probe.c (probe): Fix a warning about uninitialized
abstraction_name variable.
* util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
second argument as unused to fix a warning.
* loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
missing grub_error() call.
* util/update-grub_lib.in: Define datarootdir, since Autoconf
2.60 and newer uses it to define datadir.
* commands/sleep.c: Fix warning about implicit declaration.
* disk/memdisk.c: Likewise.
* loader/aout.c: Likewise.
* loader/i386/bsd_normal.c: Likewise.
* util/grub-probe.c: Likewise.
* commands/i386/cpuid.c (has_longmode): Make static.
* disk/i386/pc/biosdisk.c (cd_drive): Likewise.
* include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
* kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
GDT. This is more robust, as %ds can change.
(grub_biosdisk_rw_int13_extensions): Don't clear %ds before
calling real_to_prot().
(grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
2008-03-28 Pavel Roskin <[email protected]>
* kern/i386/pc/startup.S: Assert that uncompressed functions
don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
* kern/i386/pc/lzo1x.S: Remove all .align directives in the
code, as they push parts of the code (error handlers) beyond
GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
code as correctness and size.
2008-03-28 Pavel Roskin <[email protected]>
* kern/i386/pc/startup.S
(grub_biosdisk_get_diskinfo_int13_extensions): When converting
data block address to the real mode, keep offset minimal. This
works around a bug in AWARD BIOS on old Athlon systems, which
makes CD detection hang.
2008-03-26 Pavel Roskin <[email protected]>
* normal/color.c (grub_parse_color_name_pair): Make `name' a
const.
* include/grub/normal.h: Add grub_parse_color_name_pair()
declaration.
2008-03-24 Bean <[email protected]>
* disk/i386/pc/biosdisk.c (cd_start): Removed.
(cd_count): Removed.
(cd_drive): New variable.
(grub_biosdisk_get_drive): Don't check for (cdN) device.
(grub_biosdisk_call_hook): Likewise.
(grub_biosdisk_iterate): Change cdrom detection method.
(grub_biosdisk_open): Replace cd_start with cd_drive.
(GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
detect cdrom device.
* include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
Removed.
(GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
(GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
(GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
(GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
(GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
(GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
(GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
(grub_biosdisk_cdrp): New structure.
(grub_biosdisk_get_cdinfo_int13_extensions): New function.
* include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
* kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
device.
* kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
New function.
2008-03-20 Robert Millan <[email protected]>
Remove 2 TiB limit in ata.mod.
* disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
(grub_ata_dumpinfo): Print sector count with 0x%llx.
(grub_ata_identify): Interpret `&info16[100]' as a pointer to
grub_uint64_t instead of grub_uint32_t.
2008-03-05 Bean <[email protected]>
* loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
(grub_multiboot): Set boot device.
* boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
2008-03-02 Bean <[email protected]>
* fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
symlink_buffer.
2008-03-01 Yoshinori K. Okuji <[email protected]>
* DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
texinfo.tex.
* docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
modified.
* docs/fdl.texi: New file.
* docs/mdate-sh: New file. Copied from gnulib.
* docs/texinfo.tex: Likewise.
* config.guess: Updated from gnulib.
* install-sh: Likewise.
2008-02-28 Robert Millan <[email protected]>
* conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
(aout_mod_SOURCES): New variable.
(aout_mod_CFLAGS): Likewise.
(aout_mod_LDFLAGS): Likewise.
* conf/i386-ieee1275.rmk: Likewise.
2008-02-28 Robert Millan <[email protected]>
* util/update-grub.in: Reorganise terminal validity check. Accept
`ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
Based on suggestion by Franklin PIAT.
2008-02-28 Fabian Greffrath <[email protected]>
* include/grub/util/getroot.h (grub_util_check_block_device): Export new
function.
* util/getroot.c (grub_util_check_block_device): New function that
returns the given argument if it is a block device and returns NULL else.
* util/grub-probe.c (argument_is_device): New variable.
(probe): Promote device_name from a variable to an argument. Receive
device_name from grub_util_check_block_device() if path is NULL and from
grub_guess_root_device() else. Do not free() device_name anymore.
(options): Introduce new parameter '-d, --device'.
(main): Add description of the new parameter to the help screen.
Rename path variable to argument. Set argument_is_device if the '-d'
option is given. Pass argument to probe() depending on
argument_is_device.
2008-02-24 Bean <[email protected]>
* fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
(GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
(GRUB_ISO9660_VOLDESC_SUPP): Likewise.
(GRUB_ISO9660_VOLDESC_PART): Likewise.
(GRUB_ISO9660_VOLDESC_END): Likewise.
(grub_iso9660_primary_voldesc): New member escape.
(grub_iso9660_data): New member joliet.
(grub_iso9660_convert_string): New function.
(grub_iso9660_mount): Detect joliet extension.
(grub_iso9660_iterate_dir): Convert filename when joliet is detected.
(grub_iso9660_iso9660_label): Likewise.
* conf/common.rmk (pkgdata_MODULES): Add udf.mod.
(grub_setup_SOURCES): Add fs/udf.c.
(grub_fstest_SOURCES): Likewise.
(udf_mod_SOURCES): New variable.
(udf_mod_CFLAGS): Likewise.
(udf_mod_LDFLAGS): Likewise.
* conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
(grub_emu_SOURCES): Likewise.
* conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
* conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
* conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
* fs/udf.c: New file.
2008-02-24 Robert Millan <[email protected]>
* conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
(normal/lexer.c_DEPENDENCIES): New variables.
* conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
(normal/lexer.c_DEPENDENCIES): Likewise.
* conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
(normal/lexer.c_DEPENDENCIES): Likewise.
* conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
(normal/lexer.c_DEPENDENCIES): Likewise.
* conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
(normal/lexer.c_DEPENDENCIES): Likewise.
* conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
(normal/lexer.c_DEPENDENCIES): Likewise.
2008-02-23 Robert Millan <[email protected]>
* partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
since they were intended to be in hex. This didn't break previously
because of a bug in gpt_partition_map_iterate() (see below).
(gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
when checking the validity of GPT header.
Remove `partno', since it always provides the same information as `i'.
2008-02-21 Yoshinori K. Okuji <[email protected]>
* include/grub/efi/time.h: Fix a wrong comment.
2008-02-19 Pavel Roskin <[email protected]>
* kern/rescue.c (grub_enter_rescue_mode): Improve initial
message.
2008-02-19 Bean <[email protected]>
* conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
(aout_mod_SOURCES): New variable.
(aout_mod_CFLAGS): Likewise.
(aout_mod_LDFLAGS): Likewise.
(_bsd_mod_SOURCES): New variable.
(_bsd_mod_CFLAGS): Likewise.
(_bsd_mod_LDFLAGS): Likewise.
(bsd_mod_SOURCES): New variable.
(bsd_mod_CFLAGS): Likewise.
(bsd_mod_LDFLAGS): Likewise.
* include/grub/aout.h: New file.
* include/grub/i386/loader.h (grub_unix_real_boot): New function.
* include/grub/i386/bsd.h: New file.
* include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
to make it public.
* kern/elf.c (grub_elf32_load): Get the physical address after the hook
function is called, so that it's possible to change it inside the hook.
(grub_elf64_load): Likewise.
(grub_elf_file): Don't close the file if elf header is not found.
(grub_elf_close): Close the file if grub_elf_file fails (The new
grub_elf_file won't close it).
(grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
(grub_elf64_size): Likewise.
* kern/i386/loader.S (grub_unix_real_boot): New function.
* loader/aout.c: New file.
* loader/i386/bsd.c: New file.
* loader/i386/bsd_normal.c: New file.
* loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
* loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
can test othe formats.
2008-02-19 Robert Millan <[email protected]>
* partmap/gpt.c: Include `<grub/gpt_partition.h>'.
(grub_gpt_partition_type_empty): Redefine with macro from
`<grub/gpt_partition.h>'.
(gpt_partition_map_iterate): Adjust partition type comparison.
Export `entry' as partmap-specific `part.data' struct.
(grub_gpt_header, grub_gpt_partentry): Move from here ...
* include/grub/gpt_partition.h (grub_gpt_header)
(grub_gpt_partentry): ... to here (new file).
* util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
(grub_gpt_partition_type_bios_boot): New const variable, defined
with macro from `<grub/gpt_partition.h>'.
(setup): Replace `first_start' with `embed_region', which keeps
track of the embed region (and is partmap-agnostic).
Replace find_first_partition_start() with find_usable_region(),
which finds a usable region for embedding using partmap-specific
knowledge (supports PC/MSDOS and GPT).
Fix all assumptions that the embed region start at sector 1, using
`embed_region.start' from now on. Similarly, use `embed_region.end'
rather than `first_start' to calculate available size.
In grub_util_info() message, replace "into after the MBR" with an
indication of the specific sector our embed region starts at.
2008-02-19 Robert Millan <[email protected]>
* DISTLIST: Replace `commands/ieee1275/halt.c' and
`commands/ieee1275/reboot.c' with `commands/halt.c' and
`commands/reboot.c'.
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
(halt_mod_SOURCES): Likewise.
* conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
(halt_mod_SOURCES): Likewise.
2008-02-17 Christian Franke <[email protected]>
* commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
2008-02-17 Robert Millan <[email protected]>
* util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
set `first_start' to 0 for non-PC/MSDOS partition maps.
2008-02-16 Robert Millan <[email protected]>
* util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
do not assume partition map is PC/MSDOS before performing checks that
are specific to that layout.
2008-02-13 Robert Millan <[email protected]>
* conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
`commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
* kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
2008-02-13 Yoshinori K. Okuji <[email protected]>
* configure.ac: Only a cosmetic change on the handling of
-fno-stack-protector.
2008-02-12 Alexandre Boeglin <[email protected]>
* conf/i386-efi.rmk (grub_emu_SOURCES): Replace
commands/i386/pc/halt.c and reboot.c by commands/halt.c and
reboot.c.
(grub_install_SOURCES): Add halt.mod and reboot.mod.
(halt_mod_SOURCES): New variable.
(halt_mod_CFLAGS): Likewise.
(halt_mod_LDFLAGS): Likewise.
(reboot_mod_SOURCES): Likewise.
(reboot_mod_CFLAGS): Likewise.
(reboot_mod_LDFLAGS): Likewise.
* conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
commands/ieee1275/halt.c and reboot.c by commands/halt.c and
reboot.c.
(halt_mod_SOURCES): Likewise.
(reboot_mod_SOURCES): Likewise.
* conf/i386-pc.rmk (grub_emu_SOURCES): Replace
commands/i386/pc/reboot.c by commands/reboot.c.
(reboot_mod_SOURCES): Likewise.
* commands/i386/pc/reboot.c: merge this file ...
* commands/ieee1275/reboot.c: ... and this file ...
* commands/reboot.c: ... to this file.
Add some precompiler directive to include the correct header for
each machine.
* commands/ieee1275/halt.c: move this file ...
* commands/halt.c: ... to here.
Add some precompiler directive to include the correct header for
each machine.
* include/grub/efi/efi.h (grub_reboot): New function declaration.
(grub_halt): Likewise.
* kern/efi/efi.c (grub_reboot): New function.
(grub_halt): Likewise.
2008-02-12 Robert Millan <[email protected]>
* util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
/dev (like it is done for /dev/mapper). This doesn't provide support
for EVMS, but at least it is now easy to identify the problem when it
arises.
2008-02-11 Robert Millan <[email protected]>
* util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
(grub_util_biosdisk_get_grub_dev): Check open() exit status by
comparing it with -1, not 0.
2008-02-10 Robert Millan <[email protected]>
* conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
`disk/lvm.c'.
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
* conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
* conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
`disk/lvm.c' to the end of the list.
* conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
* conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
2008-02-10 Robert Millan <[email protected]>
* kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
grub_print_error() instead. This will let user know why we're entering
rescue mode.
Based on suggestions from Sam Morris.
2008-02-10 Alexandre Boeglin <[email protected]>
* normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
on remaining N args, instead of "--" arg N times.
2008-02-09 Vesa Jaaskelainen <[email protected]>
* font/manager.c (unknown_glyph): Added variable for unknown glyph.
(fill_with_default_glyph): Changed to use unknown_glyph for fill
pattern for unknown glyphs.
2008-02-09 Robert Millan <[email protected]>
* configure.ac: Probe for `help2man'.
* Makefile.in (builddir): New variable.
(HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
or otherwise add a few flags/options to it.
(install-local): For every executable utility or script that is
installed, invoke $(HELP2MAN) to install a manpage based on --help
output.
* util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
that it doesn't prevent --help from working in build tree.
* util/i386/pc/grub-mkrescue.in (usage): Replace `[email protected]'
with `[email protected]'.
* util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.