it work, ..allmost ! :) SOLVED

Jean Spirat jeanspirat at squirk.org
Wed Oct 1 15:10:25 CEST 2008


Michael Tautschnig a écrit :
> [...]
>   
>> anything special about the initramsfs that i should do ?
>>
>>     
>
> Did you try adding
>
> $ROOTCMD update-initramfs -k all -u
>
> to scripts/LAST/60-misc.sh? Don't know whether this helps or not, but it might
> be worth a try.
>
> Best,
> Michael
>
>   
it works now:

things learned:

- Add the raid and lvm package to the installed server's packages
- Do not forget to chmod 755 the script you create in 
/src/fai/config/scripts !
- Use grub-pc and not grub legacy on lenny

Thanks a lot especialy to Ryan for removing the last standing stone in 
the path !


here is my script:

/srv/fai/config/scripts/LAST/60-misc


    #!/bin/bash

    $ROOTCMD /usr/bin/grub-mkimage --output=/boot/grub/core.img ext2 pc
    gpt biosdisk lvm
    $ROOTCMD /usr/sbin/grub-install '(md0)'
    $ROOTCMD /usr/sbin/grub-setup   '(md0)'
    $ROOTCMD /usr/sbin/update-grub
    $ROOTCMD update-initramfs -k all -u



i also changed all grub package name to grub-pc and i removed the files 
related to grub from the '/files/' directory of the exemple ones.


Jean.




More information about the linux-fai mailing list