mirror of
https://gitlab.com/bztsrc/bootboot.git
synced 2023-02-13 20:54:32 -05:00
Fixed issue #29
This commit is contained in:
parent
4bd9e167c0
commit
0d1f8f220c
3 changed files with 3 additions and 3 deletions
|
@ -132,7 +132,7 @@ mérete). Ugyanakkor `iso9660` használata esetén garantálni kell, hogy minden
|
||||||
4 szektor per kluszterrel a legegyszerűbb elérni. Itt is ugyanaz a probléma merül fel, mind a lemezkép készítő, mind a
|
4 szektor per kluszterrel a legegyszerűbb elérni. Itt is ugyanaz a probléma merül fel, mind a lemezkép készítő, mind a
|
||||||
BOOTBOOT betöltők képesek lennének kevessebb kluszterrel is használni a FAT32-t, de néhány UEFI förmver nem, és hibásan
|
BOOTBOOT betöltők képesek lennének kevessebb kluszterrel is használni a FAT32-t, de néhány UEFI förmver nem, és hibásan
|
||||||
FAT16-nak látná. Hogy ezt elkerüljük a minimális kluszterszámmal, az ISO9960 és FAT32 együttes használata esetén a
|
FAT16-nak látná. Hogy ezt elkerüljük a minimális kluszterszámmal, az ISO9960 és FAT32 együttes használata esetén a
|
||||||
partíció minimális mérete 128 Megabájt (128*1024*1024/512/4 = 65536, ami pont eggyel több, mint ami még 16 bitbe belefér).
|
partíció minimális mérete 128 Megabájt (128\*1024\*1024/512/4 = 65536, ami pont eggyel több, mint ami még 16 bitbe belefér).
|
||||||
|
|
||||||
A többi (a másodiktól kezdve) bejegyzés esetén a `type` vagy egy GUID, vagy egy az előre definiált aliaszok közül. Érvénytelen
|
A többi (a másodiktól kezdve) bejegyzés esetén a `type` vagy egy GUID, vagy egy az előre definiált aliaszok közül. Érvénytelen
|
||||||
sztring esetén a parancs listázza az összes lehetséges értéket.
|
sztring esetén a parancs listázza az összes lehetséges értéket.
|
||||||
|
|
|
@ -132,7 +132,7 @@ smaller images, but at least 33 Megabytes (that's a hard lower limit for FAT32).
|
||||||
be 2048 bytes aligned, which is achieved by 4 sectors per cluster. The same problem applies here, both the image
|
be 2048 bytes aligned, which is achieved by 4 sectors per cluster. The same problem applies here, both the image
|
||||||
creator and the BOOTBOOT loader capable of handling FAT32 with smaller cluster numbers, but some UEFI firmware don't,
|
creator and the BOOTBOOT loader capable of handling FAT32 with smaller cluster numbers, but some UEFI firmware don't,
|
||||||
and falsely assumes FAT16. To guarantee the minimum number of clusters, with ISO9660 and FAT32 the boot partition's
|
and falsely assumes FAT16. To guarantee the minimum number of clusters, with ISO9660 and FAT32 the boot partition's
|
||||||
minimum size is 128 Megabytes (128*1024*1024/512/4 = 65536, just one larger than what fits in 16 bits).
|
minimum size is 128 Megabytes (128\*1024\*1024/512/4 = 65536, just one larger than what fits in 16 bits).
|
||||||
|
|
||||||
For the other entries (starting from the second), `type` is either a GUID or one of a pre-defined file system aliases.
|
For the other entries (starting from the second), `type` is either a GUID or one of a pre-defined file system aliases.
|
||||||
With an invalid string, the utility will list all possible values.
|
With an invalid string, the utility will list all possible values.
|
||||||
|
|
|
@ -109,7 +109,7 @@ void esp_makepart()
|
||||||
if(boot_size < i) boot_size = i;
|
if(boot_size < i) boot_size = i;
|
||||||
/* we must force 16M at least, because if FAT16 has too few clusters, some UEFI thinks it's FAT12... */
|
/* we must force 16M at least, because if FAT16 has too few clusters, some UEFI thinks it's FAT12... */
|
||||||
if(boot_size < 16) boot_size = 16;
|
if(boot_size < 16) boot_size = 16;
|
||||||
if(boot_fat == 16 && boot_size >= 256) boot_fat = 32;
|
if(boot_fat == 16 && boot_size >= 128) boot_fat = 32;
|
||||||
/* we must force 128M, because if FAT32 has too few clusters, some UEFI thinks it's FAT16... */
|
/* we must force 128M, because if FAT32 has too few clusters, some UEFI thinks it's FAT16... */
|
||||||
i = (iso9660 ? 128 : 33);
|
i = (iso9660 ? 128 : 33);
|
||||||
if(boot_fat == 32 && boot_size < i) boot_size = i;
|
if(boot_fat == 32 && boot_size < i) boot_size = i;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue