feat(chromeos_legacy): add cgpt logic

add the logic to update the partition metadata in the postinstall
scripts.
fix(chromeos_legacy): remove HDROOT replacement code

we can remove this code now since we are using PARTUUID now.
fix(chromeos_legacy): refactor into two functions

refactor this into two functions, one of which will go away soonish.