mirror of
https://github.com/opnsense/src.git
synced 2026-02-12 23:36:07 -05:00
- Relax sanitazion requirements in libdisk, as a previous commit enabling this
sanitization broke sysinstall on some disks. This was due to the disks reporting a geometry that was incorrectly sanitized by sysinstall. This makes the sanitization consistent with fdisk. Tested by: randi
This commit is contained in:
parent
7b593c5d9d
commit
3eba493397
1 changed files with 1 additions and 9 deletions
|
|
@ -34,17 +34,9 @@ Sanitize_Bios_Geom(struct disk *disk)
|
|||
|
||||
sane = 1;
|
||||
|
||||
#ifdef PC98
|
||||
if (disk->bios_cyl >= 65536)
|
||||
#else
|
||||
if (disk->bios_cyl > 1024)
|
||||
#endif
|
||||
sane = 0;
|
||||
#ifdef PC98
|
||||
if (disk->bios_hd >= 256)
|
||||
#else
|
||||
if (disk->bios_hd > 16)
|
||||
#endif
|
||||
if (disk->bios_hd > 256)
|
||||
sane = 0;
|
||||
#ifdef PC98
|
||||
if (disk->bios_sect >= 256)
|
||||
|
|
|
|||
Loading…
Reference in a new issue