Le 23/11/2019 à 06:19, Christopher Gregory via blfs-support a écrit :
> 
> 
>> Sent: Saturday, November 23, 2019 at 6:06 AM
>> From: "Ken Moffat via blfs-support" <[email protected]>
>> To: "BLFS Support List" <[email protected]>
>> Cc: "Ken Moffat" <[email protected]>
>> Subject: Re: [blfs-support] More weirdness in this install
>>
>> On Fri, Nov 22, 2019 at 05:43:21PM +0100, Pierre Labastie via blfs-support 
>> wrote:
>>> Le 22/11/2019 à 15:04, Christopher Gregory via blfs-support a écrit :
>> [...]
>>>
>>> Christopher, I think you do not need (yet) to "destroy" everything again. 
>>> What
>>> you describe really looks like some missing kernel feature: if a dvd drive 
>>> is
>>> correctly connected (either through sata or scsi), and all the relevant
>>> options are correctly set when building the kernel, the kernel itself should
>>> create /dev/sr0 in the devtmpfs. Udev is not involved I think.
>>>
>>> So compare what you build in or as module for your kernel to what the host
>>> distro has (lsmod on host distro). Note: builtin modules list is at
>>> /lib/modules/<version>/modules.builtin.
>>>
>>> For example, from host distro (with the lfs root mounted on $LFS, and 
>>> VERSION
>>> set to the lfs kernel version string):
>>> ------
>>> lsmod | while read module notused; do
>>>   if ! find $LFS/lib/modules/$VERSION/ -name ${module}\* > /dev/null; then
>>>     if ! grep -q $module $LFS/lib/modules/$VERSION/modules.builtin; then
>>>       echo $module is missing
>>>     fi
>>>   fi
>>> done
>>> ------

First:
Sorry, the above is completely wrong: find exits with 0 code even when it does
not find a file (if no error occurred). A possible command is:
------
lsmod | while read module notused; do
  if [ -z "$(find $LFS/lib/modules/$VERSION/ -name ${module}\*)" ]; then
    if ! grep -q $module $LFS/lib/modules/$VERSION/modules.builtin; then
      echo $module is missing
    fi
  fi
done
------

Second: I understand that you have no way to start a distro, but you have a
debian dvd with an installer, don't you? I think you can start in "rescue
mode" (avoid graphical mode), and execute a shell in the installer
environment. Then mount the lfs drive (maybe you'll need to start some lvm
modules), set $LFS and $VERSION, then type the command above (no way to
copy-paste in this case).

Pierre
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to