Modified the logic to determine root volume device id.