config questions

Alex Volkov avolkov at gmail.com
Wed May 28 18:45:18 CEST 2008


On Tue, 2008-05-27 at 10:49 -0600, Bjorn Meyer wrote:
> On Tue, May 27, 2008 at 10:16 AM, Bjorn Meyer <bjorn.m.meyer at gmail.com> wrote:
> > I am as sure as what I have seen in the logs. I do agree, that
> > something didn't complete correctly. However that is is little odd
> > since it works fine if I just take out the /boot partition and let it
> > install to /.
> >
> > I will try another install and check this before I reboot. If it is
> > wrong, I will try to edit and see what the results are.
> >
> > Thanks for pointing that out. I did dig through that a bit, but
> > skipped right over that one.
> >
> > Bjorn
> >
> >
> > On Tue, May 27, 2008 at 12:53 AM, Eymen Alyaz <alyaz at ins.uni-bonn.de> wrote:
> >> Bjorn Meyer schrieb:
> >>> ...
> >>> Here are the 2 kernel entries that it creates.
> >>>
> >>> title           Debian GNU/Linux, kernel 2.6.18-6-686
> >>> root            (hd0,0)
> >>> kernel          /vmlinuz-2.6.18-6-686 root=/dev/hda5 ro
> >>> initrd          /initrd.img-2.6.18-6-686
> >>
> >> according to your parition layout, the kernel line should look like:
> >> kernel /vmlinuz-2.6.18-6-686 root=/dev/hda2, not /dev/hda5.
> >> because you partitioned with:
> >>
> >> (look at your first mail)
> >> disk_config disk1
> >> primary     /boot     100     defaults     ;boot -j ext3
> >> primary     /         1024    defaults     ;-c -j ext3
> >> #logical     /         1024    defaults     ;-c -j ext3
> >> logical     swap      500
> >>
> I tried again, and the menu list is being set up correctly. With the
> above config, it is being set to hda2.
> If I set / to be logical it is being set to hda5.
> My apologies, I may have pasted this incorrectly.
> 
> >> are you sure grub is properly installed?
> >>
> >> Regards,
> >> Eymen Alyaz
> >>
> >>
> >

Maybe grub setup script did not run properly. Check that a
file /srv/fai/config/files/boot/grub/menu.lst/postinst
contains something like the following:
########################################
#! /bin/bash

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

set -a

# during softupdate use this file
[ -r $target/var/log/fai/disk_var.sh ] && .
$target/var/log/fai/disk_var.sh

# if class NOMBR is defined, write boot loader into root partition, not
into mbr
ifclass NOMBR && BOOT_DEVICE=$BOOT_PARTITION

grub-install --no-floppy --root-directory=$target $BOOT_DEVICE
GROOT=$(device2grub $BOOT_PARTITION)
perl -pi -e 's/#(\w+)#/$ENV{$1}/' $2
$ROOTCMD /usr/sbin/update-grub
echo "Grub installed on $BOOT_DEVICE on $GROOT"

exit $error
###################################################
and its permissions are set to executable. I had similar problems
booting into the new system, when I accidentally deleted the file.


Alex.




More information about the linux-fai mailing list