makebootable didn't work correctly on BeOS: the partition offset was divided by
the block size once too often. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21228 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a988990db4
commit
361a19cd94
@ -386,8 +386,7 @@ main(int argc, const char *const *argv)
|
||||
if (!noPartition) {
|
||||
partition_info partitionInfo;
|
||||
if (ioctl(fd, B_GET_PARTITION_INFO, &partitionInfo) == 0) {
|
||||
// hard coded sector size: 512 bytes
|
||||
partitionOffset = partitionInfo.offset / 512;
|
||||
partitionOffset = partitionInfo.offset;
|
||||
} else {
|
||||
fprintf(stderr, "Error: Failed to get partition info: %s",
|
||||
strerror(errno));
|
||||
|
Loading…
Reference in New Issue
Block a user