Re: FAI Stable release 3.4.4 available

2010-10-21 Diskussionsfäden Michael Tautschnig
[...]

  
  Sorry, I forgot to actually attach 10-setup, as I had promised. Here it is.
 
 Just tested the script. Seems to work. Fine!
 

Thanks a lot for testing!

 But: I get an error (which seems like an warning to me) after...
 
 
 GRUB loading.
 Welcome to GRUB!
 
 error: no such device: [UUID]
 error: no such disk.
 error: no suitable mode found.
 
 
 ... and before the Grub-Menu is shown (which clears the output).
 
 System boots fine also with just the second disk and it may only be a
 minor problem but it's just not nice.
 
 After digging around a bit it seems to come from
 /etc/grub.d/00_header or to be more precise from the line
 
 /usr/sbin/grub-probe --target=device /usr/share/grub/unicode.pf2
 (as the parameter for prepare_grub_to_access_device).
 
 It returns vgroup-usr (why?). With this parameter for
 prepare_grub_to_access_device the following code (for grub.cfg) is
 finally generated:
 
 
 insmod raid
 insmod mdraid
 insmod lvm
 insmod part_msdos
 insmod part_msdos
 insmod ext2
 set root='(vgroup-usr)'
 search --no-floppy --fs-uuid --set [UUID]
 
 
 I have absolutely no idea what the intension of this part of the code
 should be and why grub-probe returns vgroup-usr in the first
 place... (but set root='(group-usr)' looks terribly wrong.)
 
 I then removed these lines from grub.cfg and still got the same
 error-lines. I then manually did:
 
 % /usr/sbin/grub-install --no-floppy --modules=lvm raid /dev/sd[ab]
 
 And guess what. Sill the same error-lines. I am lost. Where does is
 come from?
 
 I have to admit. I looks like a problem in Grub, not FAI. But I still
 hope you (or someone) has a clue what the problem could be. (This
 error-lines are not shown with my version of 10-setup).
 

Sorry for being a bit late; could you still do another test? Could you try to
remove the lvm in the modules parameter? This is just a wild guess, but
vgroup-usr just looks so LVM-like...

Thanks a lot,
Michael



pgpV8vcG0FrwW.pgp
Description: PGP signature


Re: FAI Stable release 3.4.4 available

2010-10-19 Diskussionsfäden Darshaka Pathirana
Hi!

On 10/18/2010 03:58 PM, Michael Tautschnig wrote:
 [...]
 

 Would you mind doing that *now*? Well, probably it suffices if you just 
 replace
 10-setup with the attached version. The code in stable (and trunk) is known 
 to
 work only in very simple cases, but proper testing of our experimental 
 versions
 will help in getting the patches merged. BTW: No, this is not my branch, 
 it's
 open to everyone, it just so happens that until now most of the stuff has 
 been
 committed by myself. But it should be very easy to grab the experimental 
 builds,
 as described here:

 http://wiki.fai-project.org/index.php/Main_Page#getting_FAI

 
 Sorry, I forgot to actually attach 10-setup, as I had promised. Here it is.

Just tested the script. Seems to work. Fine!

But: I get an error (which seems like an warning to me) after...


GRUB loading.
Welcome to GRUB!

error: no such device: [UUID]
error: no such disk.
error: no suitable mode found.


... and before the Grub-Menu is shown (which clears the output).

System boots fine also with just the second disk and it may only be a
minor problem but it's just not nice.

After digging around a bit it seems to come from
/etc/grub.d/00_header or to be more precise from the line

/usr/sbin/grub-probe --target=device /usr/share/grub/unicode.pf2
(as the parameter for prepare_grub_to_access_device).

It returns vgroup-usr (why?). With this parameter for
prepare_grub_to_access_device the following code (for grub.cfg) is
finally generated:


insmod raid
insmod mdraid
insmod lvm
insmod part_msdos
insmod part_msdos
insmod ext2
set root='(vgroup-usr)'
search --no-floppy --fs-uuid --set [UUID]


I have absolutely no idea what the intension of this part of the code
should be and why grub-probe returns vgroup-usr in the first
place... (but set root='(group-usr)' looks terribly wrong.)

I then removed these lines from grub.cfg and still got the same
error-lines. I then manually did:

% /usr/sbin/grub-install --no-floppy --modules=lvm raid /dev/sd[ab]

And guess what. Sill the same error-lines. I am lost. Where does is
come from?

I have to admit. I looks like a problem in Grub, not FAI. But I still
hope you (or someone) has a clue what the problem could be. (This
error-lines are not shown with my version of 10-setup).

Regards and thx for your help!
 - Darsha


Re: FAI Stable release 3.4.4 available

2010-10-18 Diskussionsfäden Michael Tautschnig
[...]

 
 Would you mind doing that *now*? Well, probably it suffices if you just 
 replace
 10-setup with the attached version. The code in stable (and trunk) is known to
 work only in very simple cases, but proper testing of our experimental 
 versions
 will help in getting the patches merged. BTW: No, this is not my branch, 
 it's
 open to everyone, it just so happens that until now most of the stuff has been
 committed by myself. But it should be very easy to grab the experimental 
 builds,
 as described here:
 
 http://wiki.fai-project.org/index.php/Main_Page#getting_FAI
 

Sorry, I forgot to actually attach 10-setup, as I had promised. Here it is.

Best,
Michael

#! /bin/bash

error=0 ; trap error=$((error|1)) ERR

set -a

# during softupdate use this file
[ -r $LOGDIR/disk_var.sh ]  . $LOGDIR/disk_var.sh

[ -z $BOOT_DEVICE ] exit 701

$ROOTCMD grub-mkdevicemap --no-floppy

for device in $BOOT_DEVICE; do
  grub_dev=$(device2grub $device)
  if [ -z $grub_dev ] ; then
grub_dev=$(echo $device | sed 's#^/dev/##')
grub_dev=($grub_dev)
  fi
  $ROOTCMD /usr/sbin/grub-install --no-floppy --modules=lvm raid $grub_dev
done

$ROOTCMD update-grub

exit $error



pgp1S4qYbK3Qp.pgp
Description: PGP signature


Re: FAI Stable release 3.4.4 available

2010-10-18 Diskussionsfäden andrew bezella
On Mon, 2010-10-18 at 16:05 +0200, Michael Tautschnig wrote: 
 Sorry, I forgot to actually attach 10-setup, as I had promised. Here it is.

hello -

i've been spending some time with GRUB_PC/10-setup recently as well and
have a couple observations:

* according to grub-install(8), INSTALL_DEVICE can be a GRUB device
name or a system device filename.  so i'm not sure that the logic to
translate $BOOT_DEVICE to ($grub_dev) is necessary (in my testing it
seemed to not be req'd).

* in my builds with lucid, installing to an md appears to be broken (i
believe in karmic  maverick as well).  see LP #462171:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/462171

thank you!

andy

-- 
andrew bezella abeze...@archive.org
Internet Archive