Only modify the root= portion of kernel command-line

Instead of replacing the entire line in the loader entry, just replace the
portion specifying the root device.