[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #47569] GRUB 2.02~beta2 "fatal error: token too large, exceeds YYLM
From: |
Alvaro Gonzalez |
Subject: |
[bug #47569] GRUB 2.02~beta2 "fatal error: token too large, exceeds YYLMAX" |
Date: |
Wed, 30 Mar 2016 08:37:11 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
URL:
<http://savannah.gnu.org/bugs/?47569>
Summary: GRUB 2.02~beta2 "fatal error: token too large,
exceeds YYLMAX"
Project: GNU GRUB
Submitted by: lvarin
Submitted on: Wed 30 Mar 2016 08:37:10 AM GMT
Category: Booting
Severity: Major
Priority: 5 - Normal
Item Group: Software Error
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release:
Release: other
Reproducibility: Every Time
Planned Release: None
_______________________________________________________
Details:
Hello,
I had two single quotes closing a variable in /etc/default/grub like this (due
to copy paste mistake from me):
# head /etc/default/grub
#GRUB_DEFAULT=0
GRUB_DEFAULT='Arch Linux, with Linux linux''
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
When running grub-mkconfig with that configuration, this is the output:
# sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux-lts
Found initrd image: /boot/initramfs-linux-lts.img
Found fallback initramfs image: /boot/initramfs-linux-lts-fallback.img
Found linux image: /boot/vmlinuz-linux-git
Found initrd image: /boot/initramfs-linux-git.img
Found fallback initramfs image: /boot/initramfs-linux-git-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initramfs image: /boot/initramfs-linux-fallback.img
Found CentOS Linux release 7.2.1511 (Core) on
/dev/mapper/cc_pb--d--128--141--150--49-root
done
As you can see there is no error, but the resulting file has a missing double
quote (at set default="Arch Linux, with Linux linux):
# sudo head /boot/grub/grub.cfg -n 25
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="Arch Linux, with Linux linux
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
When booting an error is displayed in loop and the only option is to reboot:
"fatal error: token too large, exceeds YYLMAX"
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47569>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #47569] GRUB 2.02~beta2 "fatal error: token too large, exceeds YYLMAX",
Alvaro Gonzalez <=