Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create uefi/bios dual bootable images #36

Merged
merged 1 commit into from Mar 15, 2018
Merged

Conversation

@tsoome
Copy link

tsoome commented Mar 8, 2018

Update create_iso to add efi program.
Update usbgen to create ESP on usb image.

Note that we do have boot1.efi for now, but also be ready for UEFI32 support, so we wont fail when UEFI32 support will get integrated.

#
fdisk -B "${rdevs}"
zpool create -B -o bootsize=34M usbgen-$$ $pdev
zpool destroy usbgen-$$

This comment has been minimized.

Copy link
@pyhalov

pyhalov Mar 13, 2018

what's the point of doing this?

This comment has been minimized.

Copy link
@tsoome

tsoome Mar 13, 2018

Author

It will create the GPT on disk. Probably should use fdisk -E instead... I think the initial idea was to re-use the partitions created by zpool, but then it appeared we have to have boot partition for ufs anyhow (need that with GPT).

@pyhalov
Copy link

pyhalov commented Mar 14, 2018

My attempt doesn't work. usbgen (fmthard?) dies with 'Partition 1 not aligned on cylinder boundary: " 1 1 00 0 2048 2047".
After zpool create we have:

* /dev/rdsk/c1t2d0s2 partition map
*
* Dimensions:
*     512 bytes/sector
* 3993263 sectors
* 3993196 accessible sectors
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector 
*          34       222       255
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0     12    00        256     69632     69887
       1      4    00      69888   3906958   3976845
       8     11    00    3976846     16384   3993229

After fdisk -E:

* /dev/rdsk/c1t2d0s2 partition map
*
* Dimensions:
*     512 bytes/sector
*      32 sectors/track
*     128 tracks/cylinder
*    4096 sectors/cylinder
*     974 cylinders
*     972 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector 
*        4096   3977216   3981311
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       2      5    01          0   3981312   3981311
       8      1    01          0      4096      4095
@pyhalov pyhalov force-pushed the tsoome:loader branch from 472f20e to 72737e3 Mar 15, 2018
@pyhalov pyhalov merged commit a3b534d into OpenIndiana:oi/hipster Mar 15, 2018
@pyhalov
Copy link

pyhalov commented Mar 15, 2018

changing zpool create -B to something fdisk-baser we'll leave to time when illumos gets sane partitioning tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.