For some reason /dev/hda1 mounted as root (/) isn't being symlinked to /dev/root
( /dev/hda1 -> /dev/root symlink is missing )
The rule:
Code:
KERNEL=="hda1" , SYMLINK:="root"
works perfectly but this is bad since it hardcodes hda1 into the rule.
They suggested I do:
Code:
SUBSYSTEM=="ide", PROGRAM="/bin/sh -c 'mount | grep \"%k on /\" | cut -d\" \" -f1'", SYMLINK+="%c"
SUBSYSTEM=="scsi", PROGRAM="/bin/sh -c 'mount | grep \"%k on /\" | cut -d\" \" -f1'", SYMLINK+="%c"
but that rule doesn't seem to work. Any idea? I just want a udev rule that symlinks whatever device is mounted as / to /dev/root.