Comment 1 for bug 19609

Revision history for this message
Jeff Bailey (jbailey) wrote :

Mostly as a note to myself, this should work for regular and md partitions, but
not for lvm. lvm triggers based on the presence of a volume group name.

parse_numeric() {
        case $1 in
        *:*)
                minor=${1#*:}
                major=${1%:*}
                ;;
        *)
                minor=$((0x${1#??}))
                major=$((0x${1%??}))
                ;;
        esac

        mknod /dev/root b ${major} ${minor}
        ROOT=/dev/root

}