mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
remove the calls to DIOCWLABEL, as it isn't supported any more
and the error message confuses the user. (just commented out foe now)
This commit is contained in:
parent
7c4f0a18ff
commit
ba3551df6e
2 changed files with 8 additions and 0 deletions
|
|
@ -582,14 +582,18 @@ write_s0()
|
|||
* sector 0. (e.g. empty disk)
|
||||
*/
|
||||
flag = 1;
|
||||
#ifdef NOT_NOW
|
||||
if (ioctl(fd, DIOCWLABEL, &flag) < 0)
|
||||
perror("ioctl DIOCWLABEL");
|
||||
#endif
|
||||
if (write_disk(0, (char *) mboot.bootinst) == -1) {
|
||||
fprintf(stderr, "%s: Can't write fdisk partition table\n",
|
||||
name);
|
||||
return -1;
|
||||
flag = 0;
|
||||
#ifdef NOT_NOW
|
||||
(void) ioctl(fd, DIOCWLABEL, &flag);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -582,14 +582,18 @@ write_s0()
|
|||
* sector 0. (e.g. empty disk)
|
||||
*/
|
||||
flag = 1;
|
||||
#ifdef NOT_NOW
|
||||
if (ioctl(fd, DIOCWLABEL, &flag) < 0)
|
||||
perror("ioctl DIOCWLABEL");
|
||||
#endif
|
||||
if (write_disk(0, (char *) mboot.bootinst) == -1) {
|
||||
fprintf(stderr, "%s: Can't write fdisk partition table\n",
|
||||
name);
|
||||
return -1;
|
||||
flag = 0;
|
||||
#ifdef NOT_NOW
|
||||
(void) ioctl(fd, DIOCWLABEL, &flag);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue