/[packages]/cauldron/grub2/current/SOURCES/grub2-2.00-mga-dont_write_sparse_file_error_to_screen.patch
ViewVC logotype

Contents of /cauldron/grub2/current/SOURCES/grub2-2.00-mga-dont_write_sparse_file_error_to_screen.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1040611 - (show annotations) (download)
Sun Jul 10 11:24:49 2016 UTC (7 years, 9 months ago) by barjac
File size: 689 byte(s)
- fix for Mga#18781
- grub2 flashes error: sparse file not allowed message when booting from btrfs
- patched to ignore the error
1 diff -ur grub-2.02~beta3_o/grub-core/commands/loadenv.c grub-2.02~beta3_n/grub-core/commands/loadenv.c
2 --- grub-2.02~beta3_o/grub-core/commands/loadenv.c 2016-02-18 06:15:11.000000000 +0000
3 +++ grub-2.02~beta3_n/grub-core/commands/loadenv.c 2016-07-10 11:41:13.870680390 +0100
4 @@ -285,7 +285,8 @@
5 if (total_length != grub_file_size (file))
6 {
7 /* Maybe sparse, unallocated sectors. No way in GRUB. */
8 - return grub_error (GRUB_ERR_BAD_FILE_TYPE, "sparse file not allowed");
9 + /*return grub_error (GRUB_ERR_BAD_FILE_TYPE, "sparse file not allowed")*/
10 + return GRUB_ERR_NONE;
11 }
12
13 /* One more sanity check. Re-read all sectors by blocklists, and compare

  ViewVC Help
Powered by ViewVC 1.1.30