#!/bin/bash K=/tmp/insp/krd echo "=== 'Cannot find device' context:" grep -n -B 25 -A 10 'Cannot find device' "$K/init" | head -80 echo echo "=== subdir / datadev / basedev handling:" grep -n 'subdir\|datadev\|basedev\|kernel.dat\|find_data\|hd0' "$K/init" | head -40