[Bug 563618] Re: Ignoring a broken clock results in infinite reboots; not ignoring results in fsck failure; no solution to this problem

Dave Martin Dave.Martin at arm.com
Mon Apr 19 11:10:54 UTC 2010


How about:

for x in $(cat /proc/cmdline); do
	case ${x} in
	root=*)
		case ${x} in
			UUID=*)
ROOTDEVPATH=$ROOTDEVPATH/disk/by-uuid/${x#UUID=} ;;
			*) ROOTDEVPATH=$ROOTDEVPATH/$x ;;
		esac
		;;

...

done

ROOTDEVPATH=$(readlink -f "/dev/$ROOTDEVPATH")

[...]


This supports the root=<device node> case.  Hackers will thank you (I know I
will)
Extending it to support LABEL= would be easy too.

(Extra case statement used to avoid sed (slow) and ${//} (bash-
specific))

-- 
Ignoring a broken clock results in infinite reboots; not ignoring results in fsck failure; no solution to this problem
https://bugs.launchpad.net/bugs/563618
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to util-linux in ubuntu.




More information about the kernel-bugs mailing list