for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -vE "/(loop|ram|dm-|fd)")
do
+ if [ ! -d "${sysblock}" ]; then
+ continue
+ fi
+
dev_ok=
if [ "$(cat ${sysblock}/removable)" = "1" ]
then
for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -vE "/(loop|ram|dm-|fd)")
do
+ if [ ! -d "${sysblock}" ]; then
+ continue
+ fi
+
if [ "$(cat ${sysblock}/removable)" = "0" ]
then
case "${output_format}" in
* Team upload.
* Fix nodhcp option to actually force DHCP off. Closes: #785345
Thanks to Frank Lillo for the report and Evgeni Golov for the patch.
+ * Improve 9990-misc-helpers.sh when /sys/block/ is empty.
+ Closes: #847802
[ Kristian Klausen ]
* Add "nls_ascii" module in the initrd so that we can access FAT