Ben Hutchings eff1806334 parse_numeric: Do not attempt to canonicalise root device name
LILO allows specifying an md-RAID device as root, e.g. root=/dev/md0,
but as usual translates them into device numbers, e.g. root=900.

parsen_numeric translates device numbers back into e.g. /dev/block/9:0
but then tries to canonicalise them using readlink -f.  This works OK
for simple disk devices whose drivers will have initialised by the
point it runs, but not for stacked disk devices which will be created
later.

We could move parse_numeric later, but I think it's preferable to
handle this weird special case before running external scripts that
use $ROOT.

Closes: #815555
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2016-04-17 00:36:46 +01:00
..