Modified the logic to determine root volume device ids appropriately.