GRUB_PC (simple example): still doesn't work

Michael Tautschnig mt at debian.org
Mon Jan 11 19:01:24 CET 2010


Hi,

And first of all: Sorry for replying this late... I'm replying to the very first
mail in this thread as it has all the info.

[...]

> 
> disk_var.sh seems ok:
> +++
> SWAPLIST="/dev/sda1"
> BOOT_DEVICE="/dev/sda"
> ROOT_PARTITION=/dev/sda2
> BOOT_PARTITION=/dev/sda2
> +++
> 
> (or should BOOT_PARTITION be /dev/sda to get grub installed in the MBR?  
> Where do I set this?)
>

That's fine, BOOT_DEVICE is /dev/sda and alas the MBR is to be used, otherwise
BOOT_DEVICE would be /dev/sda2.

> Ugly perl errors in task_partition, but the partitions are being created 
> just as I expect it, so not sure if this is pertinent.
> 

Now I'd first like to get those fixed. Do you still have this system available?
Could you try to reproduce the whole thing (not that it's fixed, just to make
sure you really still have the same environment that causes setup-storage to
partly break). Could you re-run the installation with export debug=1 in an
appropriate your class/*.var file?

> +++
> Calling task_partition
> Partitioning local harddisks using setup-storage
> Starting setup-storage 1.2+exp
> Using config file: /var/lib/fai/config/disk_config/FAIBASE
> Executing: parted -s /dev/sda unit TiB print
> Use of uninitialized value $fs in substitution (s///) at /usr/share/fai/setup-storage//Volumes.pm line 215.
> Use of uninitialized value $fs in substitution (s///) at /usr/share/fai/setup-storage//Volumes.pm line 215.
> Use of uninitialized value $fs in substitution (s///) at /usr/share/fai/setup-storage//Volumes.pm line 215.
> Use of uninitialized value $fs in substitution (s///) at /usr/share/fai/setup-storage//Volumes.pm line 215.

Most probably the output format of parted has been changed in some way. If it's
reproducible, could you please also do "parted -s /dev/sda unit TiB print" on
another console and send the output along? Thanks!!!

[...]

> 
> And finally grub fails:
> 
> +++
> =====   shell: GRUB_PC/10-setup   =====
> grub-mkimage: error: cannot stat /usr/lib/grub/i386-pc/pc.mod
> grub-mkimage: error: cannot stat /usr/lib/grub/i386-pc/_chain.mod
> grub-setup: error: The size of `/boot/grub/core.img' is too small
> Generating grub.cfg ...
> Found linux image: /boot/vmlinuz-2.6.30-2-686
> Found initrd image: /boot/initrd.img-2.6.30-2-686
> Found memtest86+ image: /boot/memtest86+.bin
> done
> GRUB_PC/10-setup     FAILED with exit code 1.
> +++
> 

Could you please add set -vx to scripts/GRUB_PC/10-setup and send the full
output?

[...]

Thanks a lot,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20100111/27aca170/attachment-0001.bin 


More information about the linux-fai mailing list