[SOLVED] LFS Version 9.1, 8.4.3. Setting Up the GRUB Configuration
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
That is normal you won't umount those with that command, I'm more interested in the output of ls /boot and ls /boot/mnt after each of the commands in post 38
Last edited by colorpurple21859; 07-10-2020 at 04:04 PM.
Good Morning,
Sir,
From Chapter 8.3.2. Configuring Linux Module Load Order
Quote:
The program
that loads modules, modprobe or insmod, uses /etc/modprobe.d/usb.conf for this purpose. This file needs
to be created so that if the USB drivers (ehci_hcd, ohci_hcd and uhci_hcd) have been built as modules, they will be
loaded in the correct order; ehci_hcd needs to be loaded prior to ohci_hcd and uhci_hcd in order to avoid a warning
being output at boot time.
Create a new file /etc/modprobe.d/usb.conf by running the following:
menuentry 'unknown Linux distribution (on /dev/sdb2)' --class linux --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-42e174ea-46f1-4300-b5c5-870e7f9152f4' {
insmod part_gpt
insmod ext2
set root='hd0,4'
linux /boot/vmlinuz-5.5.3-lfs-9.1 root=/dev/sdb2 rootdelay=10 ro
}
submenu 'Advanced options for unknown Linux distribution (on /dev/sdb2)' $menuentry_id_option 'osprober-gnulinux-advanced-42e174ea-46f1-4300-b5c5-870e7f9152f4' {
menuentry 'unknown Linux distribution (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.5.3-lfs-9.1--42e174ea-46f1-4300-b5c5-870e7f9152f4' {
insmod part_gpt
insmod ext2
set root='hd0,4'
linux /boot/vmlinuz-5.5.3-lfs-9.1 root=/dev/sdb2 rootdelay=10 ro
}
}
The last time you compiled the lfs kernel,
what mount commands did your run to mount the lfs system and chroot into it,
commands you ran when compiled your lfs kernel?
### 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 ###
edit to
Quote:
### 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.
menuentry "MY LFS" {
insmod ext2
set root=(hd0,4)
linux /boot/vmlinuz-5.5.3-lfs-9.1 root=/dev/sdb2 rootdelay=10 ro
}
### END /etc/grub.d/40_custom ###
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.