On 06/14/2014 06:09 PM, Luis Muñoz Fuente wrote:
El 13/06/14 a las 22:56:04, ALZ (phyglos.org) escribió:

With a Debian 7.5 host I had no need to modify any /etc/grub.d entries.
Command update-grub does all the work and finds my LFS partition.

I have Debian 7.5 too:
cat /etc/debian_version

I mount the LFS partition:
mount /dev/sda3 /mnt


I hope this is a typo and you built all your LFS system with:
mount /dev/sda3 /mnt/lfs

but update-grub doesn't finds my LFS partition :-(

After update-grub you should check /boot/grub/grub.cfg, which is the
actual file generated by update-grub, and the one that GRUB uses to
locate and boot your LFS kernel.

There isn't LFS data in grub.cfg


Until you get a LFS entry in grub.cfg you won't be able to boot.


Double check, first that your LFS built kernel file is named as you
expect and located at /boot


The kernel is in:
/mnt/lfs/boot/vmlinuz-3.13.3-lfs-7.5


This seems correct. So let's assume the problem is with update-grub in your host finding your LFS.

and, second, that you don't have "extra"
entries in the generated /boot/grub/grub.cfg file.

No, I don't have one entrie or extra.

You said you modified 40_custom file in /etc/grub.d and then run update-grub. This 40_custom file should be left intact with regards LFS. It will be the 30_os-prober script that will be able to find your LFS boot partition if correctly built and placed.

Here is what I have in a new LFS-SVN system built today using a Debian 7.5. After running update-grub in the host system, /boot/grub/grub.cfg contains:

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "phyglos 1.5, Linux 3.15-phyglos-1.5.5 (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root 1f54ca41-4182-432e-82a8-f5332641cb80
        linux /boot/vmlinuz-3.15-phyglos-1.5.5 root=/dev/sdb1 ro
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

Both sections inside grub.cfg are generated by update-grub from files 30_os-prober and 40_custom in /etc/grub.d.

Notice that 30_os-prober script finds my LFS system (even it is on a second disk, not in a partition in the host disk). And notice that 40_custom entry is left intact (and empty).

You may check again those /etc/grub.d/ files that need no modification.
Keep 40_custom file empty as original. Mount your LFS partition and execute update-grub again.

Hope this helps.
ALZ.
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to