[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kernel errors



"Thomas Schmitt" <scdbackup@gmx.net> writes:

> Hi,
>
> Richmond wrote:
>> /tmp/initrd21/scripts/local:    [ "${quiet?}" != "y" ] && log_begin_msg "Running /scripts/local-block"
>> [...]
>> local_block()
>> {
>>        [ "${quiet?}" != "y" ] && log_begin_msg "Running /scripts/local-block"
>>        run_scripts /scripts/local-block "$@"
>> [...]
>> Then later this, which would explain the delays: (The video shows
>> "waiting for suspend/resume device")
>> [...]
>>               log_begin_msg "Waiting for ${name}"
>> [...]
>>                 while true; do
>>                         sleep 1
>>                         time_elapsed="$(time_elapsed)"
>>
>>                         local_block "${dev_id}"
>
> I remember to have seen this code under
>   https://sources.debian.org/src/initramfs-tools/unstable/
> when i looked for occurences of "local-block". (This URL is currently not
> working for me.)
> I did not find any built-in runs of programs like blkid or lsblk. Thus i
> concluded that such runs would be in files of /scripts/local-block or other
> local customization of the initrd.
>
> We are most probably at the right spot of initramfs-tools.
> Maybe the script which runs blkid or alike has vanished during the recent
> reconstruction of the initrd which fixed the problems ?

I didn't need to reconstruct initrd to cause the problems. As far as I
remember all I did was destroy the swap space, having commented-it-out
of fstab. So I imagin that the scripts are the same. But I could test
that as suggested by Max Nikulin by altering the resume parameter from
grub before booting.

>
> Does fgrep find anything about "blkid" in /tmp/initrd21 ?

I did it like this:

find /tmp/initrd21/ -print|xargs grep -i blkid|less


/tmp/initrd21/usr/lib/udev/rules.d/60-persistent-storage.rules:  IMPORT{builtin}="blkid --offset=$env{ID_CDROM_MEDIA_SESSION_LAST_OFFSET}"
/tmp/initrd21/usr/lib/udev/rules.d/60-persistent-storage.rules:  IMPORT{builtin}="blkid --noraid"
/tmp/initrd21/usr/lib/udev/rules.d/60-persistent-storage.rules:KERNEL!="sr*", IMPORT{builtin}="blkid"
/tmp/initrd21/usr/lib/udev/rules.d/60-persistent-storage-dm.rules:IMPORT{builtin}="blkid"
/tmp/initrd21/scripts/functions:        # blkid has a more complete list of file systems,
/tmp/initrd21/scripts/functions:                FSTYPE=$(blkid -o value -s TYPE "${FS}") || return
/tmp/initrd21/scripts/functions:                DEV="$(blkid -l -t "$DEV" -o device)" || return 1
/tmp/initrd21/scripts/local:    # device in /dev and isn't resolvable by blkid (e.g. mtd0)


Reply to: