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

Bug#847802: can't open /sys/block/*/removable: 9990-misc-helpers.sh



Package: live-boot
Version: 4.0.2-1

On some computer systems, when booting from the "debian GNU/Linux 8.1 Live "Jessie" amd64 Standard" CDROM, the 9990-misc-helpers.sh script is dispatched before the /sys/block directory is populated, resulting in a multiple copies of the disturbing message: "cat: can't open '/sys/block/*/removable': no such file or directory" on the console.

This occurs after the splash screen is removed and just after the initial "Loading, please wait ..." message has been displayed.  My (limited) testing indicates that the /sys/block directory is present but empty when the 9990-misc-helpers.sh script is run.

The behavior occurs on a system with an ASRock E3C226D2I motherboard, populated with an E3-1240L v3 Xeon processor and 16 GB of ECC memory and no internal drives when booted from an external USB-3 CD/DVD drive.  The behavior does not seem present on my older desktop workstation with internal sata hard drives and an internal sata CD/DVD drive.

I have been able to temporarily correct the issue with the following "hook" file used during the live-build process:

1234-fixhelper.hook.chroot:
#!/bin/sh
set -e
sed -i '\:echo /sys/block:s:|fd:|fd|\\*$:' /lib/live/boot/9990-misc-helpers.sh

Best regards, Scott.


Reply to: