Bug 29392 - Ошибка grub-script-check после установки xen
Summary: Ошибка grub-script-check после установки xen
Status: NEW
Alias: None
Product: ALT Linux Centaurus
Classification: Distributions
Component: Ошибки работы (show other bugs)
Version: 7.0.1
Hardware: all Linux
: P3 normal
Assignee: Anton V. Boyarshinov
QA Contact: QA p6
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-24 14:35 MSK by Стас
Modified: 2017-09-04 13:04 MSK (History)
1 user (show)

See Also:


Attachments
Вывод `strace /usr/bin/grub-script-check /boot/grub/grub.cfg.new` и grub.cfg.new (4.11 KB, application/x-bzip-compressed-tar)
2013-09-24 14:35 MSK, Стас
no flags Details
grub.cfg.new с ошибкой (13.85 KB, text/plain)
2017-09-04 13:03 MSK, Oleg Zenin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Стас 2013-09-24 14:35:10 MSK
Created attachment 5943 [details]
Вывод `strace /usr/bin/grub-script-check /boot/grub/grub.cfg.new` и grub.cfg.new

Установил xen:

sudo apt-get install xen

В конце установки вижу ошибки:

Generating grub.cfg ...
Found theme: /boot/grub/themes/centaurus/theme.txt
Found linux image: /boot/vmlinuz-std-def
skipping symlink: /boot/vmlinuz-std-def
Found linux image: /boot/vmlinuz
Found initrd image: /boot/initrd.img
Found linux image: /boot/vmlinuz-3.8.13.4-std-def-alt1.M70P.2
Found initrd image: /boot/initrd-3.8.13.4-std-def-alt1.M70P.2.img
Found linux image: /boot/vmlinuz-3.8.13.4-std-def-alt1.M70P.2
Found initrd image: /boot/initrd-3.8.13.4-std-def-alt1.M70P.2.img
  No volume groups found
Found memtest image: /boot/memtest-4.20.bin
error: out of memory.
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 251
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.done

Сильно удивляюсь сообщению "out of memory", поскольку:
$ cat /proc/meminfo | head -n2
MemTotal:        3938920 kB
MemFree:         2850192 kB

Запускаю update-grub - ошибка та же
Запускаю grub-mkconfig без параметров - ошибки нет.
Запускаю `grub-mkconfig -o g.cfg`  - ошибка есть.
В итоге выяснил, что ошибку даёт программа /usr/bin/grub-script-check

$ /usr/bin/grub-script-check -V
/usr/bin/grub-script-check (GRUB) 2.00-alt14

Сгенерированный grub-mkconfig файл grub.cfg.new и вывод `strace /usr/bin/grub-script-check grub.cfg.new` прилагаю.
Comment 1 Стас 2013-09-24 14:36:56 MSK
Дополнение:
$ uname -rm
3.8.13.4-std-def-alt1.M70P.2 x86_64
Comment 2 Oleg Zenin 2017-09-04 13:03:30 MSK
Created attachment 7201 [details]
grub.cfg.new с ошибкой
Comment 3 Oleg Zenin 2017-09-04 13:04:01 MSK
Воспроизводится на p8:

# apt-get install xen-hypervisor xen-runtime xen-libs xen
Чтение списков пакетов... Завершено
Построение дерева зависимостей... Завершено
Выбрано libxen для 'xen-libs'
Следующие дополнительные пакеты будут установлены:
  bridge-utils libnl3-utils libxen libyajl lsb-init python-module-cssselect
  python-module-genshi python-module-html5lib python-module-lxml
  python-module-pycurl python-module-six python-module-urlgrabber xen-licenses
  xen-runtime-common
Следующие НОВЫЕ пакеты будут установлены:
  bridge-utils libnl3-utils libxen libyajl lsb-init python-module-cssselect
  python-module-genshi python-module-html5lib python-module-lxml
  python-module-pycurl python-module-six python-module-urlgrabber xen
  xen-hypervisor xen-licenses xen-runtime xen-runtime-common
0 будет обновлено, 17 новых установлено, 0 пакетов будет удалено и 285 не будет обновлено.
Необходимо получить 11,4MB архивов.
После распаковки потребуется дополнительно 43,6MB дискового пространства.
Продолжить? [Y/n] Y
Получено: 1 http://ftp.altlinux.org p8/branch/x86_64/classic libnl3-utils 3.2.27-alt1 [75,9kB]
Получено: 2 http://ftp.altlinux.org p8/branch/x86_64/classic libyajl 2.1.0-alt1 [16,0kB]
Получено: 3 http://ftp.altlinux.org p8/branch/noarch/classic xen-licenses 4.8.1-alt10.M80P.1 [53,0kB]
Получено: 4 http://ftp.altlinux.org p8/branch/x86_64/classic libxen 4.8.1-alt10.M80P.1 [519kB]
Получено: 5 http://ftp.altlinux.org p8/branch/noarch/classic lsb-init 4.0-alt5 [6909B]
Получено: 6 http://ftp.altlinux.org p8/branch/x86_64/classic python-module-genshi 0.7-alt1.1.1.1 [180kB]
Получено: 7 http://ftp.altlinux.org p8/branch/noarch/classic python-module-six 1Найден образ initrd: /boot/initrd-4.9.46-un-def-alt0.M80P.1.img
Найден образ linux: /boot/vmlinuz-4.8.14-un-def-alt0.M80P.1
Найден образ initrd: /boot/initrd-4.8.14-un-def-alt0.M80P.1.img
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
Found memtest image: /boot/memtest-5.01.bin
ошибка: недостаточно памяти.
ошибка: syntax error.
ошибка: Incorrect command.
ошибка: syntax error.
Синтаксическая ошибка в строке 299
В сгенерированном файле настроек GRUB обнаружены синтаксические ошибки.
Убедитесь, что в файлах /etc/default/grub
и /etc/grub.d/* ошибки отсутствуют или пошлите сообщение об ошибке
в прикреплённым файлом /boot/grub/grub.cfg.new.завершено
Завершено.

В grub.cfg.new (прикреплен) не закрыта '{' после submenu 'Дополнительные параметры для ALT starter kit (с гипервизором Xen)'.