> [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
sounds like a plan. thanks bruce. > -- > 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
