␉_exfat = 1,␊ |
␉_hfs = 2,␊ |
␉_msdos = 3,␊ |
␉_ntfs = 4,␊ |
␉_ext4 = 5,␊ |
␉_other = 255␊ |
};␊ |
␊ |
|
␉␉␉else␊ |
␉␉␉␉*pKind = _other;␊ |
␉␉␉break;␊ |
␉␉case _ntfs:␊ |
␉␉␉rc = 0;␊ |
␉␉␉break;␊ |
␉␉default:␊ |
␉␉␉break;␊ |
␉}␊ |
|
␉␉␉daVolumeKind = _hfs;␊ |
␉␉else if (!strcmp(cstr, "msdos"))␊ |
␉␉␉daVolumeKind = _msdos;␊ |
␉␉else if (!strcmp(cstr, "ntfs"))␊ |
␉␉␉daVolumeKind = _ntfs;␊ |
␉␉else␊ |
␉␉␉daVolumeKind = _other;␊ |
␉}␊ |
|
␉␉␉case _exfat:␊ |
␉␉␉case _hfs:␊ |
␉␉␉case _msdos:␊ |
␉␉␉case _ntfs:␊ |
␉␉␉␉break;␊ |
␉␉␉default:␊ |
␉␉␉␉unsupported();␊ |
|
␉␉}␊ |
␉␉printf("Using %s as default boot template\n", bootFile);␊ |
␉}␊ |
␊ |
␉if (loadChunk(bootFile, 0, 0, &bootBlob) < 0)␊ |
␉␉goto cleanup_and_error;␊ |
␊ |
␉switch (daVolumeKind) {␊ |
␉␉case _exfat:␊ |
␉␉␉if (calcSum(&bootBlob, &bpbBlob, &outputBlob, devicePath) < 0)␊ |