> [email protected] wrote:
>> hi,
>>
>> i'm using 8.0 lfs-svn-20170723 and i'm at 8.3.1 installation of the
>> kernel
>> ... finished with it actually.
>>
>> the machine on which i'm installing lfs also runs a devuan system, and
>> i'd
>> like to be able to boot either.
>>
>> i followed the instructions in 8.3.1 for the bind mount of the existing
>> /boot partition
>>
>> root:/sources# ls /boot
>> System.map-3.16.0-4-amd64 lost+found
>> System.map-4.12.3 memtest86+.bin
>> config-3.16.0-4-amd64 memtest86+_multiboot.bin
>> config-4.12.3 vmlinuz-3.16.0-4-amd64
>> grub vmlinuz-4.12.3-lfs-SVN-20170723
>> initrd.img-3.16.0-4-amd64
>>
>> root@devuan:/home/jfl# ls /boot
>> System.map-3.16.0-4-amd64 lost+found
>> System.map-4.12.3 memtest86+.bin
>> config-3.16.0-4-amd64 memtest86+_multiboot.bin
>> config-4.12.3 vmlinuz-3.16.0-4-amd64
>> grub vmlinuz-4.12.3-lfs-SVN-20170723
>> initrd.img-3.16.0-4-amd64
>>
>> the first is lfs. both seem identical.
>>
>> can i just re-run grub-mkconfig from devuan and have it add lfs to
>> grub's
>> repertoire?
>>
>> although the grub.cfg file for lfs in the book is simple enough,
>> recreating the devuan grub.cfg seems not so simple.
>
> grub-mkconfig produces a LOT of unneeded bloat in grub.cfg.
>
>
> I suggest copying the current (devuan) grub.cfg to a backup:
>
> cd /boot/grub
> cp grub.cfg grub.cfg.devuan
>
> Now create the lfs version of grub.cfg, but add one more entry:
>
> menuentry "Linux devuan /dev/sda5" {
> linux /vmlinuz-3.16.0-4-amd64 root=/dev/sda5 ro
> initrd /initrd.img-3.16.0-4-amd64
> }
>
> Of course, adjust the partition for your system. Also you may need to add
> 'insmod gzio' to the modules. Also note that when using a separate /boot
> partition, the files are found in the root of that partition so the
> location of the files is /filename, not /boot/filename as in the example
> in the book.
>
> If a problem occurs, co can always restore the original grub,cfg,
>
> -- Bruce
here's my grub.cfg ...
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5
insmod ext2
set root=(hd0,1)
# menuentry "GNU/Linux, Linux 4.12.3-lfs-SVN-20170723" {
# linux /vmlinuz-4.12.3-lfs-SVN-20170723 root=/dev/sda12 ro
# }
menuentry "Devuan GNU/Linux, with Linux 3.16.0-4-amd64 {
insmod gzio
linux /vmlinuz-3.16.0-4-amd64 root=/dev/sda5 ro
initrd /initrd.img-3.16.0-4-amd64
}
... i commented out the stanza for lfs ... it works, but the devuan
menuentry stanza doesn't even show up as a choice during boot-up when it's
uncommented. when i boot with this commented version i get the grub
prompt. when i then type in the three lines from the devuan menuentry
stanza it boots like a charm.
there must be something wrong with my syntax? or ... what do you all
suppose it is? can it be the spaces in lines 2 and 3 rather than the tab
in line 1 ... i hadn't seen that before, i'll try it ... if that's the
case i'll howl at the gnu moon.
thanks for your help.
> --
> http://lists.linuxfromscratch.org/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> Unsubscribe: See the above information page
>
> Do not top post on this list.
>
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
>
> http://en.wikipedia.org/wiki/Posting_style
>
>
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style