grub-multi-install: Reset partition type between partitions
Reconfiguring shim-signed in a lxd VM offered /dev/sda as
an ESP, which is obviously wrong.
What happened is that it did not have any ID_PART_ENTRY_TYPE
or ID_PART_ENTRY_SCHEME properties set in udev, so the eval
did not set anything, and the values from the previous partition
were reused.
The line count of the file was too short for unknown reasons,
fix this manually and then reimport and export the patch series
to clean up all the hunk locations.
In the situation where ZFS snapshots do not contain a .../etc directory,
the generation of /b/g/grub.cfg silently fails, providing no "linux"
kernel lines in the /b/g/grub.cfg file.
This patch prevents this type of failure from occurring.
This issue is especially apparent on systems running in FIPS mode
with ZFS boot+root pools.