[lfs-support] grub.cfg

Chris Staub chris at beaker67.com
Thu Aug 4 21:08:37 PDT 2016


On 08/04/2016 06:58 PM, Ray McCaffity wrote:
> OK, so I have everything compiled, all the filesystems built and linked.
> I think I'm ready to boot.  So I tried it.  But it says unknown filesystem.
>
> But I'm having some trouble with grub.  I'm sure it's just a config issue.
> I was hoping to add this to the existing grub.cfg
>
> menuentry 'GNU/Linux, Linux 4.4.2-lfs-20160804-systemd' --class
> gnu-linux --class gnu --class os  {
>        set root=(hd1)
>        linux /boot/vmlinuz-4.4.2-lfs-20160804-systemd root=/dev/sdb3 ro
>
>
> The build host OS (CentOS 7.2) sees the lfs disks like this.
>
> /dev/sdb3                72117368 5430576  63000392   8% /mnt/lfs
> /dev/sdb1                 8256952   35840   7801684   1% /mnt/lfs/boot
> /dev/sdb4                51474912   53272  48783816   1% /mnt/lfs/home
> /dev/sdb2               swap (unmounted currently)
>
> The host OS lives on /dev/sda (1 thru 7)
>
>
What filesystem are you using for your root partition, and did you 
compile that into the kernel?


More information about the lfs-support mailing list