do_restore_write_mbr without fixing_gpt flag
as referenced here https://forums.urbackup.org/t/writing-gpt-backup-header-failed-error-on-restore/14451 I guess the code in the client_restore.cpp it was outdate about the fix mbr parameter.
The parameter is false in non-restore CD cases because there is no guarantee that sgdisk is available and the "fix" liberally relies on this.
Perhaps we can make the fix a parameter that is false by default?
The parameter is false in non-restore CD cases because there is no guarantee that
sgdiskis available and the "fix" liberally relies on this.Perhaps we can make the fix a parameter that is false by default?
or maybe we can test the presence of sgdisk and set the parameter based on this and also maybe outputting something about this on the terminal?