Follow symlinks while copying shim files
The shim EFI file on Ubuntu can be a symlink, as it may be in the alternatives system, so previously, when calculating the size of the FAT32 partition, we would measure the size of the symlink instead of the actual file and get "Disk full" errors when trying to copy the files into the new FAT32 partition.
If we dereference the file on copy, we get the actual file and can calculate the size accurately.
lrwxrwxrwx. 1 root root 36 Jul 12 20:04 bootx64.efi -> /etc/alternatives/shimx64.efi.signed
Edited by David Hewitt