On 2019-12-09 08:43 +0900, Akira Urushibata via lfs-dev wrote: > Recently I installed Debian 10.2 on a computer with both LFS and > older > Debian versions. The installer automatically produced a new grub.cfg > in which LFS is listed as "unknown Linux distribution." To my great > surprise the listed kernel was changed to the new kernel that comes > with Debian 10.2. This had never happened in the past. I haven't > checked but I believe that grub-mkconfig is responsible for this. > > The Debian kernel does not work with LFS because CONFIG_DEVTMPFS > (maintain a devtmpfs filesystem to mount at /dev) is not set. > There may be other issues. LFS may boot, but you may not have enough > functionality to edit /boot/grub/grub.cfg . > > I don't know whether there should be some words of caution in the > Book > on installing other systems on the same computer after LFS. This > issue is not directly related to building LFS so probably it has no > place in the Book. On the other hand, many of us run multi-boot > systems which means many people are going to go through this.
There are these words. In Chap 8 Sect 4: > Caution > There is a command, grub-mkconfig, that can write a configuration > file automatically. It uses a set of scripts in /etc/grub.d/ and will > destroy any customizations that you make. These scripts are designed > primarily for non-source distributions and are not recommended for > LFS. If you install a commercial Linux distribution, there is a good > chance that this program will be run. Be sure to back up your > grub.cfg file. I'm installing Arch along with LFS on my new laptop. I added GRUB_OS_PROBER_SKIP_LIST into Arch /etc/default/grub to tell grub- mkconfig not to probe my LFS system (and generate unusable LFS entries). Then I added LFS entry manually into /boot/grub/custom.cfg. The grub.cfg generated by grub-mkconfig will load this file and show the entry. -- Xi Ruoyao <xry...@mengyan1223.wang> School of Aerospace Science and Technology, Xidian University -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page