> 16.01.2017 19:08, Kim Olsen пишет: >> Hello, >> >> If "/etc/default/grub" contains the typical unicode identifier >> <U+FEFF> at the beginning of the file the program "grub-mkconfig" >> unfairly reports an error. >>
> This is shell script that is sourced by grub-mkconfig. Does your shell > accept such script when run standalone? If not, there is nothing grub > can do here. ======================================================================== root@xy-pc:/etc/default# ls -l grub -rw-r--r-- 1 root root 1172 Jan 17 11:59 grub root@xy-pc:/etc/default# update-grub /usr/sbin/grub-mkconfig: 1: /etc/default/grub: #: not found root@xy-pc:/etc/default# hd grub 00000000 ef bb bf 23 20 49 66 20 79 6f 75 20 63 68 61 6e |...# If you chan| 00000010 67 65 20 74 68 69 73 20 66 69 6c 65 2c 20 72 75 |ge this file, ru| 00000020 6e 20 27 75 70 64 61 74 65 2d 67 72 75 62 27 20 |n 'update-grub' | 00000030 61 66 74 65 72 77 61 72 64 73 20 74 6f 20 75 70 |afterwards to up| 00000040 64 61 74 65 0a 23 20 2f 62 6f 6f 74 2f 67 72 75 |date.# /boot/gru| 00000050 62 2f 67 72 75 62 2e 63 66 67 2e 0a 23 20 46 6f |b/grub.cfg..# Fo| [....... Omitted .......] 00000450 0a 23 20 55 6e 63 6f 6d 6d 65 6e 74 20 74 6f 20 |.# Uncomment to | 00000460 67 65 74 20 61 20 62 65 65 70 20 61 74 20 67 72 |get a beep at gr| 00000470 75 62 20 73 74 61 72 74 0a 47 52 55 42 5f 49 4e |ub start.GRUB_IN| 00000480 49 54 5f 54 55 4e 45 3d 22 34 38 30 20 34 34 30 |IT_TUNE="480 440| 00000490 20 31 22 0a | 1".| 00000494 root@xy-pc:/etc/default# cat grub # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration' GRUB_DEFAULT=0 [....... Omitted .......] # Uncomment to get a beep at grub start GRUB_INIT_TUNE="480 440 1" root@xy-pc:/etc/default# _______________________________________________ Bug-grub mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-grub
