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

Re: [Diagnostic Summary] Re: Strange message during boot



On 2018-01-11 at 12:35, bw wrote:

> On Thu, 11 Jan 2018, The Wanderer wrote:
> 
>> On 2018-01-11 at 12:10, Richard Owlett wrote:
>> 
>> > I multi-boot several varieties of Debian.
>> > When booting one specific install, it displays many repetitions of:
>> >>> Begin: Running /scripts/local-block ... done.
>> > 
>> > It then proceeds to bring up an apparently normal system.
>> 
>> > Suggested diagnostics yielded:
>> > 
>> >> root@stretch-2nd:~# ls -l /sbin/init
>> >> lrwxrwxrwx 1 root root 20 Jun  4  2017 /sbin/init -> /lib/systemd/systemd
>> >> root@stretch-2nd:~#
>> 
>> Not particularly unexpected. (This also obviates any need to 'dlocate
>> /sbin/init', since it confirms which init system you're running.)
>> 
>> >> bash: dlocate: command not found
>> 
>> Install it ('apt-get install dlocate'), then try
>> 'dlocate scripts/local-block'. If that fails, try running 'updatedb' to
>> initialize the search database, then run the command again.
> 
> On stretch local_block is a function in a script named local, maybe using 
> a stretch tool on jessie has things confused?  or the initramfs-tools pkg 
> is hosed on the bad system.  Sounds complicated, one version of grub but 
> separate boot partitions always gets me confused too.
> 
> grep local_block /usr/share/initramfs-tools/scripts/local
> local_block()
>                         local_block "${dev_id}"

That's local_block; this appears to be local-block.

On my system (stable+testing, though with sysvinit rather than systemd):

$ dlocate scripts/local-block
mdadm: /usr/share/initramfs-tools/scripts/local-block
mdadm: /usr/share/initramfs-tools/scripts/local-block/mdadm
lvm2: /usr/share/initramfs-tools/scripts/local-block
lvm2: /usr/share/initramfs-tools/scripts/local-block/lvm2

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man.         -- George Bernard Shaw

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: