probably no grub-install in FAI installation

Henning Fehrmann henning.fehrmann at aei.mpg.de
Thu Dec 9 09:47:45 UTC 2010


Hello,

we are currently testing a FAI-Squeeze installation and struggled with the 
grub2 installation. We are using the FAI-server v 3.4.5 and install the current 
Squeeze grub-ps package v 1.98+20100804-8.
After the installation the system does not boot from the hard drive. It turned
out that '/usr/sbin/grub-install' never has being called in the postinst script 
of the grub-pc package. 
A quick and dirty work around is a '$ROOTCMD grub-install' in a script or a hook
which is probably not meant to be the preferred way.

We added 'set -x' into the postinst script of the grub-pc package to increase the verbosity. 
The 'db_get grub-pc/install_devices' in line 494 does not set the RET variable
which avoids the next 'for' loop. So a grub-install is not being called. 

We are not sure, but probably an interactive debconf configuration is required at this point. 

Has anybody seen a similar symptom? Is there a clean way to solve this problem?


Thank you and cheers,
Henning



Here is the postinst output:


+ cached_available_ids=
+ case "$1" in
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/grub-pc.postinst configure 1.98+20101209-1
+ cached_available_ids=
+ case "$1" in
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ devicemap_regenerated=
+ egrep -q '^[[:space:]]*post(inst|rm)_hook[[:space:]]*=[[:space:]]*(/sbin/|/usr/sbin/)?update-grub' /etc/kernel-img.conf
+ case grub-pc in
+ mkdir -p /boot/grub
+ test -e /boot/grub/device.map
+ test -e /boot/grub/core.img
+ grub-mkdevicemap --no-floppy
+ devicemap_regenerated=1
+ test -z 1
++ mktemp -t grub.XXXXXXXXXX
+ tmp_default_grub=/tmp/grub.oj4eLAeOGT
+ trap 'rm -f /tmp/grub.oj4eLAeOGT' EXIT
+ cp -p /usr/share/grub/default/grub /tmp/grub.oj4eLAeOGT
+ merge_debconf_into_conf /tmp/grub.oj4eLAeOGT GRUB_CMDLINE_LINUX grub2/linux_cmdline
+ local tmpfile
+ tmpfile=/tmp/grub.oj4eLAeOGT
+ local setting
+ setting=GRUB_CMDLINE_LINUX
+ local template
+ template=grub2/linux_cmdline
+ db_get grub2/linux_cmdline
+ _db_cmd 'GET grub2/linux_cmdline'
+ IFS=' '
+ printf '%s\n' 'GET grub2/linux_cmdline'
+ IFS='
'
+ read -r _db_internal_line
+ RET=
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ local value
++ sed -e 's,[$`"\@],\\&,g'
++ echo ''
+ value=
+ grep -q '^GRUB_CMDLINE_LINUX=' /tmp/grub.oj4eLAeOGT
+ sed -i -re 's@^(GRUB_CMDLINE_LINUX=).*@\1""@' /tmp/grub.oj4eLAeOGT
+ merge_debconf_into_conf /tmp/grub.oj4eLAeOGT GRUB_CMDLINE_LINUX_DEFAULT grub2/linux_cmdline_default
+ local tmpfile
+ tmpfile=/tmp/grub.oj4eLAeOGT
+ local setting
+ setting=GRUB_CMDLINE_LINUX_DEFAULT
+ local template
+ template=grub2/linux_cmdline_default
+ db_get grub2/linux_cmdline_default
+ _db_cmd 'GET grub2/linux_cmdline_default'
+ IFS=' '
+ printf '%s\n' 'GET grub2/linux_cmdline_default'
+ IFS='
'
+ read -r _db_internal_line
+ RET=
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ local value
++ sed -e 's,[$`"\@],\\&,g'
++ echo ''
+ value=
+ grep -q '^GRUB_CMDLINE_LINUX_DEFAULT=' /tmp/grub.oj4eLAeOGT
+ sed -i -re 's@^(GRUB_CMDLINE_LINUX_DEFAULT=).*@\1""@' /tmp/grub.oj4eLAeOGT
+ ucf --three-way --debconf-ok --sum-file=/usr/share/grub/default/grub.md5sum /tmp/grub.oj4eLAeOGT /etc/default/grub
++ cut -d : -f 2
++ ucfq --with-colons /etc/default/grub
+ package=grub-pc
+ grep -q '^grub-'
+ echo grub-pc
+ ucfr --force grub-pc /etc/default/grub
+ case grub-pc in
+ fix_mixed_system=
+ test -e /boot/grub/stage2
+ test -e /boot/grub/stage2
+ question=grub-pc/install_devices
++ grep -v '^(fd[0-9]\+)'
++ grub-mkdevicemap -m -
+ device_map='(hd0)	/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001'
++ cut -f2
++ echo '(hd0)	/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001'
+ devices=/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
+ dpkg --compare-versions 1.98+20101209-1 lt 1.98+20100702-1
+ db_get grub-pc/install_devices
+ _db_cmd 'GET grub-pc/install_devices'
+ IFS=' '
+ printf '%s\n' 'GET grub-pc/install_devices'
+ IFS='
'
+ read -r _db_internal_line
+ RET=
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ valid=1
+ '[' 1 = 0 ']'
+ :
+ ids=
+ descriptions=
++ usable_partitions
++ local last_partition path partition partition_id
++ last_partition=
++ sort -t: -k2
++ for path in / /boot /boot/grub
+++ grub-probe -t device /
++ partition=/dev/sda2
++ '[' -z /dev/sda2 ']'
++ '[' /dev/sda2 = '' ']'
+++ device_to_id /dev/sda2
+++ local id
++++ available_ids
++++ local id path
++++ '[' '' ']'
++++ '[' -d /dev/disk/by-id ']'
+++++ cut '-d ' -f1
+++++ sort -k2 -s -u
+++++ for path in '/dev/disk/by-id/*'
+++++ '[' -e /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001 ']'
++++++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
+++++ printf '%s %s\n' /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001 /dev/sda
+++++ for path in '/dev/disk/by-id/*'
+++++ '[' -e /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1 ']'
++++++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1
+++++ printf '%s %s\n' /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1 /dev/sda1
+++++ for path in '/dev/disk/by-id/*'
+++++ '[' -e /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2 ']'
++++++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2
+++++ printf '%s %s\n' /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2 /dev/sda2
+++++ for path in '/dev/disk/by-id/*'
+++++ '[' -e /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part3 ']'
++++++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part3
+++++ printf '%s %s\n' /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part3 /dev/sda3
+++++ for path in '/dev/disk/by-id/*'
+++++ '[' -e /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001 ']'
++++++ readlink -f /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001
+++++ printf '%s %s\n' /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001 /dev/sda
+++++ for path in '/dev/disk/by-id/*'
+++++ '[' -e /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part1 ']'
++++++ readlink -f /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part1
+++++ printf '%s %s\n' /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part1 /dev/sda1
+++++ for path in '/dev/disk/by-id/*'
+++++ '[' -e /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part2 ']'
++++++ readlink -f /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part2
+++++ printf '%s %s\n' /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part2 /dev/sda2
+++++ for path in '/dev/disk/by-id/*'
+++++ '[' -e /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part3 ']'
++++++ readlink -f /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part3
+++++ printf '%s %s\n' /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part3 /dev/sda3
++++ cached_available_ids='/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1
/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2
/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part3'
++++ echo '/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1
/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2
/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part3'
+++ for id in '$(available_ids)'
++++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
++++ readlink -f /dev/sda2
+++ '[' /dev/sda = /dev/sda2 ']'
+++ for id in '$(available_ids)'
++++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1
++++ readlink -f /dev/sda2
+++ '[' /dev/sda1 = /dev/sda2 ']'
+++ for id in '$(available_ids)'
++++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2
++++ readlink -f /dev/sda2
+++ '[' /dev/sda2 = /dev/sda2 ']'
+++ echo /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2
+++ return 0
++ partition_id=/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2
++ echo /:/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2
++ last_partition=/dev/sda2
++ for path in / /boot /boot/grub
+++ grub-probe -t device /boot
++ partition=/dev/sda1
++ '[' -z /dev/sda1 ']'
++ '[' /dev/sda1 = /dev/sda2 ']'
+++ device_to_id /dev/sda1
+++ local id
++++ available_ids
++++ local id path
++++ '[' '' ']'
++++ '[' -d /dev/disk/by-id ']'
+++++ cut '-d ' -f1
+++++ sort -k2 -s -u
+++++ for path in '/dev/disk/by-id/*'
+++++ '[' -e /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001 ']'
++++++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
+++++ printf '%s %s\n' /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001 /dev/sda
+++++ for path in '/dev/disk/by-id/*'
+++++ '[' -e /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1 ']'
++++++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1
+++++ printf '%s %s\n' /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1 /dev/sda1
+++++ for path in '/dev/disk/by-id/*'
+++++ '[' -e /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2 ']'
++++++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2
+++++ printf '%s %s\n' /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2 /dev/sda2
+++++ for path in '/dev/disk/by-id/*'
+++++ '[' -e /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part3 ']'
++++++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part3
+++++ printf '%s %s\n' /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part3 /dev/sda3
+++++ for path in '/dev/disk/by-id/*'
+++++ '[' -e /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001 ']'
++++++ readlink -f /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001
+++++ printf '%s %s\n' /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001 /dev/sda
+++++ for path in '/dev/disk/by-id/*'
+++++ '[' -e /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part1 ']'
++++++ readlink -f /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part1
+++++ printf '%s %s\n' /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part1 /dev/sda1
+++++ for path in '/dev/disk/by-id/*'
+++++ '[' -e /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part2 ']'
++++++ readlink -f /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part2
+++++ printf '%s %s\n' /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part2 /dev/sda2
+++++ for path in '/dev/disk/by-id/*'
+++++ '[' -e /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part3 ']'
++++++ readlink -f /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part3
+++++ printf '%s %s\n' /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part3 /dev/sda3
++++ cached_available_ids='/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1
/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2
/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part3'
++++ echo '/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1
/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2
/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part3'
+++ for id in '$(available_ids)'
++++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
++++ readlink -f /dev/sda1
+++ '[' /dev/sda = /dev/sda1 ']'
+++ for id in '$(available_ids)'
++++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1
++++ readlink -f /dev/sda1
+++ '[' /dev/sda1 = /dev/sda1 ']'
+++ echo /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1
+++ return 0
++ partition_id=/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1
++ echo /boot:/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1
++ last_partition=/dev/sda1
++ for path in / /boot /boot/grub
+++ grub-probe -t device /boot/grub
++ partition=/dev/sda1
++ '[' -z /dev/sda1 ']'
++ '[' /dev/sda1 = /dev/sda1 ']'
++ continue
+ partitions='/boot:/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1
/:/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2'
+ for device in '$devices'
++ device_to_id /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
++ local id
+++ available_ids
+++ local id path
+++ '[' '' ']'
+++ '[' -d /dev/disk/by-id ']'
++++ cut '-d ' -f1
++++ sort -k2 -s -u
++++ for path in '/dev/disk/by-id/*'
++++ '[' -e /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001 ']'
+++++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
++++ printf '%s %s\n' /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001 /dev/sda
++++ for path in '/dev/disk/by-id/*'
++++ '[' -e /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1 ']'
+++++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1
++++ printf '%s %s\n' /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1 /dev/sda1
++++ for path in '/dev/disk/by-id/*'
++++ '[' -e /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2 ']'
+++++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2
++++ printf '%s %s\n' /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2 /dev/sda2
++++ for path in '/dev/disk/by-id/*'
++++ '[' -e /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part3 ']'
+++++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part3
++++ printf '%s %s\n' /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part3 /dev/sda3
++++ for path in '/dev/disk/by-id/*'
++++ '[' -e /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001 ']'
+++++ readlink -f /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001
++++ printf '%s %s\n' /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001 /dev/sda
++++ for path in '/dev/disk/by-id/*'
++++ '[' -e /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part1 ']'
+++++ readlink -f /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part1
++++ printf '%s %s\n' /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part1 /dev/sda1
++++ for path in '/dev/disk/by-id/*'
++++ '[' -e /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part2 ']'
+++++ readlink -f /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part2
++++ printf '%s %s\n' /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part2 /dev/sda2
++++ for path in '/dev/disk/by-id/*'
++++ '[' -e /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part3 ']'
+++++ readlink -f /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part3
++++ printf '%s %s\n' /dev/disk/by-id/scsi-SATA_QEMU_HARDDISK_QM00001-part3 /dev/sda3
+++ cached_available_ids='/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1
/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2
/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part3'
+++ echo '/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1
/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2
/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part3'
++ for id in '$(available_ids)'
+++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
+++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
++ '[' /dev/sda = /dev/sda ']'
++ echo /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
++ return 0
+ disk_id=/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
+ '[' /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001 ']'
+ ids=/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
+ describe_disk /dev/sda /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
+ local disk id base size
+ disk=/dev/sda
+ id=/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
+ model=
+ case $(uname -s) in
++ uname -s
+ which udevadm
+++ udevadm info -n /dev/sda -q path
++ sysfs_size /sys/devices/pci0000:00/0000:00:01.1/host0/target0:0:0/0:0:0:0/block/sda
++ local num_sectors sector_size size
++ '[' -e /sys/devices/pci0000:00/0000:00:01.1/host0/target0:0:0/0:0:0:0/block/sda/size ']'
+++ cat /sys/devices/pci0000:00/0000:00:01.1/host0/target0:0:0/0:0:0:0/block/sda/size
++ num_sectors=10485760
++ sector_size=512
++ '[' -e /sys/devices/pci0000:00/0000:00:01.1/host0/target0:0:0/0:0:0:0/block/sda/queue/logical_block_size ']'
+++ cat /sys/devices/pci0000:00/0000:00:01.1/host0/target0:0:0/0:0:0:0/block/sda/queue/logical_block_size
++ sector_size=512
+++ expr 10485760 '*' 512 / 1000 / 1000
++ size=5368
++ '[' 5368 ']'
++ echo 5368
+ size=5368
+ which udevadm
++ sed -n 's/^ID_MODEL=//p'
++ udevadm info -n /dev/sda -q property
+ model=QEMU_HARDDISK
+ '[' -z QEMU_HARDDISK ']'
+ '[' QEMU_HARDDISK ']'
+ db_subst grub-pc/disk_description DEVICE /dev/sda
+ _db_cmd 'SUBST grub-pc/disk_description' DEVICE /dev/sda
+ IFS=' '
+ printf '%s\n' 'SUBST grub-pc/disk_description DEVICE /dev/sda'
+ IFS='
'
+ read -r _db_internal_line
+ RET=0
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ db_subst grub-pc/disk_description SIZE 5368
+ _db_cmd 'SUBST grub-pc/disk_description' SIZE 5368
+ IFS=' '
+ printf '%s\n' 'SUBST grub-pc/disk_description SIZE 5368'
+ IFS='
'
+ read -r _db_internal_line
+ RET=0
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ db_subst grub-pc/disk_description MODEL QEMU_HARDDISK
+ _db_cmd 'SUBST grub-pc/disk_description' MODEL QEMU_HARDDISK
+ IFS=' '
+ printf '%s\n' 'SUBST grub-pc/disk_description MODEL QEMU_HARDDISK'
+ IFS='
'
+ read -r _db_internal_line
+ RET=0
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ db_metaget grub-pc/disk_description description
+ _db_cmd 'METAGET grub-pc/disk_description' description
+ IFS=' '
+ printf '%s\n' 'METAGET grub-pc/disk_description description'
+ IFS='
'
+ read -r _db_internal_line
+ RET='/dev/sda (5368 MB, QEMU_HARDDISK)'
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
++ sed 's/,/\\,/g'
++ printf %s '/dev/sda (5368 MB, QEMU_HARDDISK)'
+ RET='/dev/sda (5368 MB\, QEMU_HARDDISK)'
+ descriptions='/dev/sda (5368 MB\, QEMU_HARDDISK)'
+ for partition_pair in '$partitions'
+ partition_id=/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1
+ '[' 1 '!=' /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1 ']'
+ ids='/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001, /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1'
++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1
++ get_mountpoint /boot
++ local relpath boot_mountpoint
+++ grub-mkrelpath /boot
++ relpath=
++ boot_mountpoint=/boot
++ echo /boot
+ describe_partition /dev/sda /dev/sda1 /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1 /boot
+ local disk part id path diskbase partbase size
+ disk=/dev/sda
+ part=/dev/sda1
+ id=/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1
+ path=/boot
+ which udevadm
+++ udevadm info -n /dev/sda1 -q path
++ sysfs_size /sys/devices/pci0000:00/0000:00:01.1/host0/target0:0:0/0:0:0:0/block/sda/sda1
++ local num_sectors sector_size size
++ '[' -e /sys/devices/pci0000:00/0000:00:01.1/host0/target0:0:0/0:0:0:0/block/sda/sda1/size ']'
+++ cat /sys/devices/pci0000:00/0000:00:01.1/host0/target0:0:0/0:0:0:0/block/sda/sda1/size
++ num_sectors=64197
++ sector_size=512
++ '[' -e /sys/devices/pci0000:00/0000:00:01.1/host0/target0:0:0/0:0:0:0/block/sda/sda1/queue/logical_block_size ']'
++ '[' -e /sys/devices/pci0000:00/0000:00:01.1/host0/target0:0:0/0:0:0:0/block/sda/sda1/queue/hw_sector_size ']'
+++ expr 64197 '*' 512 / 1000 / 1000
++ size=32
++ '[' 32 ']'
++ echo 32
+ size=32
+ db_subst grub-pc/partition_description DEVICE /dev/sda1
+ _db_cmd 'SUBST grub-pc/partition_description' DEVICE /dev/sda1
+ IFS=' '
+ printf '%s\n' 'SUBST grub-pc/partition_description DEVICE /dev/sda1'
+ IFS='
'
+ read -r _db_internal_line
+ RET=0
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ db_subst grub-pc/partition_description SIZE 32
+ _db_cmd 'SUBST grub-pc/partition_description' SIZE 32
+ IFS=' '
+ printf '%s\n' 'SUBST grub-pc/partition_description SIZE 32'
+ IFS='
'
+ read -r _db_internal_line
+ RET=0
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ db_subst grub-pc/partition_description PATH /boot
+ _db_cmd 'SUBST grub-pc/partition_description' PATH /boot
+ IFS=' '
+ printf '%s\n' 'SUBST grub-pc/partition_description PATH /boot'
+ IFS='
'
+ read -r _db_internal_line
+ RET=0
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ db_metaget grub-pc/partition_description description
+ _db_cmd 'METAGET grub-pc/partition_description' description
+ IFS=' '
+ printf '%s\n' 'METAGET grub-pc/partition_description description'
+ IFS='
'
+ read -r _db_internal_line
+ RET='- /dev/sda1 (32 MB, /boot)'
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
++ sed 's/,/\\,/g'
++ printf %s '- /dev/sda1 (32 MB, /boot)'
+ RET='- /dev/sda1 (32 MB\, /boot)'
+ descriptions='/dev/sda (5368 MB\, QEMU_HARDDISK), - /dev/sda1 (32 MB\, /boot)'
+ for partition_pair in '$partitions'
+ partition_id=/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2
+ '[' 2 '!=' /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2 ']'
+ ids='/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001, /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1, /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2'
++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
++ readlink -f /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2
++ get_mountpoint /
++ local relpath boot_mountpoint
+++ grub-mkrelpath /
++ relpath=
++ boot_mountpoint=/
++ echo /
+ describe_partition /dev/sda /dev/sda2 /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2 /
+ local disk part id path diskbase partbase size
+ disk=/dev/sda
+ part=/dev/sda2
+ id=/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2
+ path=/
+ which udevadm
+++ udevadm info -n /dev/sda2 -q path
++ sysfs_size /sys/devices/pci0000:00/0000:00:01.1/host0/target0:0:0/0:0:0:0/block/sda/sda2
++ local num_sectors sector_size size
++ '[' -e /sys/devices/pci0000:00/0000:00:01.1/host0/target0:0:0/0:0:0:0/block/sda/sda2/size ']'
+++ cat /sys/devices/pci0000:00/0000:00:01.1/host0/target0:0:0/0:0:0:0/block/sda/sda2/size
++ num_sectors=8369865
++ sector_size=512
++ '[' -e /sys/devices/pci0000:00/0000:00:01.1/host0/target0:0:0/0:0:0:0/block/sda/sda2/queue/logical_block_size ']'
++ '[' -e /sys/devices/pci0000:00/0000:00:01.1/host0/target0:0:0/0:0:0:0/block/sda/sda2/queue/hw_sector_size ']'
+++ expr 8369865 '*' 512 / 1000 / 1000
++ size=4285
++ '[' 4285 ']'
++ echo 4285
+ size=4285
+ db_subst grub-pc/partition_description DEVICE /dev/sda2
+ _db_cmd 'SUBST grub-pc/partition_description' DEVICE /dev/sda2
+ IFS=' '
+ printf '%s\n' 'SUBST grub-pc/partition_description DEVICE /dev/sda2'
+ IFS='
'
+ read -r _db_internal_line
+ RET=0
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ db_subst grub-pc/partition_description SIZE 4285
+ _db_cmd 'SUBST grub-pc/partition_description' SIZE 4285
+ IFS=' '
+ printf '%s\n' 'SUBST grub-pc/partition_description SIZE 4285'
+ IFS='
'
+ read -r _db_internal_line
+ RET=0
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ db_subst grub-pc/partition_description PATH /
+ _db_cmd 'SUBST grub-pc/partition_description' PATH /
+ IFS=' '
+ printf '%s\n' 'SUBST grub-pc/partition_description PATH /'
+ IFS='
'
+ read -r _db_internal_line
+ RET=0
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ db_metaget grub-pc/partition_description description
+ _db_cmd 'METAGET grub-pc/partition_description' description
+ IFS=' '
+ printf '%s\n' 'METAGET grub-pc/partition_description description'
+ IFS='
'
+ read -r _db_internal_line
+ RET='- /dev/sda2 (4285 MB, /)'
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
++ sed 's/,/\\,/g'
++ printf %s '- /dev/sda2 (4285 MB, /)'
+ RET='- /dev/sda2 (4285 MB\, /)'
+ descriptions='/dev/sda (5368 MB\, QEMU_HARDDISK), - /dev/sda1 (32 MB\, /boot), - /dev/sda2 (4285 MB\, /)'
+ for partition_pair in '$partitions'
+ partition_id=/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1
+ '[' 1 = /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1 ']'
+ for partition_pair in '$partitions'
+ partition_id=/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2
+ '[' 2 = /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2 ']'
+ db_subst grub-pc/install_devices RAW_CHOICES '/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001, /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1, /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2'
+ _db_cmd 'SUBST grub-pc/install_devices' RAW_CHOICES '/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001, /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1, /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2'
+ IFS=' '
+ printf '%s\n' 'SUBST grub-pc/install_devices RAW_CHOICES /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001, /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part1, /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2'
+ IFS='
'
+ read -r _db_internal_line
+ RET=0
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ db_subst grub-pc/install_devices CHOICES '/dev/sda (5368 MB\, QEMU_HARDDISK), - /dev/sda1 (32 MB\, /boot), - /dev/sda2 (4285 MB\, /)'
+ _db_cmd 'SUBST grub-pc/install_devices' CHOICES '/dev/sda (5368 MB\, QEMU_HARDDISK), - /dev/sda1 (32 MB\, /boot), - /dev/sda2 (4285 MB\, /)'
+ IFS=' '
+ printf '%s\n' 'SUBST grub-pc/install_devices CHOICES /dev/sda (5368 MB\, QEMU_HARDDISK), - /dev/sda1 (32 MB\, /boot), - /dev/sda2 (4285 MB\, /)'
+ IFS='
'
+ read -r _db_internal_line
+ RET=0
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ db_input high grub-pc/install_devices
+ _db_cmd 'INPUT high' grub-pc/install_devices
+ IFS=' '
+ printf '%s\n' 'INPUT high grub-pc/install_devices'
+ IFS='
'
+ read -r _db_internal_line
+ RET='30 question skipped'
+ case ${_db_internal_line%%[ 	]*} in
+ return 30
+ true
+ db_go
+ _db_cmd 'GO '
+ IFS=' '
+ printf '%s\n' 'GO '
+ IFS='
'
+ read -r _db_internal_line
+ RET=ok
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ db_get grub-pc/install_devices
+ _db_cmd 'GET grub-pc/install_devices'
+ IFS=' '
+ printf '%s\n' 'GET grub-pc/install_devices'
+ IFS='
'
+ read -r _db_internal_line
+ RET=
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ failed_devices=
++ sed -e 's/,/ /g'
++ echo
+ '[' grub-pc/install_devices '!=' grub-pc/install_devices ']'
+ '[' '' ']'
+ db_get grub-pc/install_devices
+ _db_cmd 'GET grub-pc/install_devices'
+ IFS=' '
+ printf '%s\n' 'GET grub-pc/install_devices'
+ IFS='
'
+ read -r _db_internal_line
+ RET=
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ '[' -z '' ']'
+ db_get grub-pc/install_devices_empty
+ _db_cmd 'GET grub-pc/install_devices_empty'
+ IFS=' '
+ printf '%s\n' 'GET grub-pc/install_devices_empty'
+ IFS='
'
+ read -r _db_internal_line
+ RET=false
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ '[' false = false ']'
+ db_fset grub-pc/install_devices_empty seen false
+ _db_cmd 'FSET grub-pc/install_devices_empty' seen false
+ IFS=' '
+ printf '%s\n' 'FSET grub-pc/install_devices_empty seen false'
+ IFS='
'
+ read -r _db_internal_line
+ RET=false
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ db_input critical grub-pc/install_devices_empty
+ _db_cmd 'INPUT critical' grub-pc/install_devices_empty
+ IFS=' '
+ printf '%s\n' 'INPUT critical grub-pc/install_devices_empty'
+ IFS='
'
+ read -r _db_internal_line
+ RET='30 question skipped'
+ case ${_db_internal_line%%[ 	]*} in
+ return 30
+ break
+ test -e /boot/grub/grub.cfg
+ for i in /usr/share/grub/unicode.pf2 /usr/share/images/desktop-base/moreblue-orbit-grub.png
+ test -e /usr/share/grub/unicode.pf2
+ cp /usr/share/grub/unicode.pf2 /boot/grub/
+ for i in /usr/share/grub/unicode.pf2 /usr/share/images/desktop-base/moreblue-orbit-grub.png
+ test -e /usr/share/images/desktop-base/moreblue-orbit-grub.png
+ '[' '' ']'
+ test -e /boot/grub/grub.cfg
+ update-grub
Generating grub.cfg ...
cat: /boot/grub/video.lst: No such file or directory
Found linux image: /boot/vmlinuz-2.6.32.26-atlas-generic
Found linux image: /boot/vmlinuz-2.6.32.22-atlas-generic
Found memtest86+ image: /memtest86+.bin
Found memtest86+ multiboot image: /memtest86+_multiboot.bin
done
+ exit 0
+ rm -f /tmp/grub.oj4eLAeOGT



More information about the Pkg-grub-devel mailing list