base-files: upgrade: make get_partitions() endian agnostic