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

make-disk-image: add hybrid and dynamic sized images #89331

Merged
merged 1 commit into from Jul 28, 2020

Conversation

Lassulus
Copy link
Member

@Lassulus Lassulus commented Jun 1, 2020

I was bitten by the fixed diskSize a couple of times.
Also there was no way to increase the boot partition size, which also made some problems with unfree firmware.
I also added hybrid images, which could be booted via efi or mbr, if used with grub.
Will still have to test around and see if any problems arise. Also I would prefer to use sgdisk over parted since I prefer the script interface. But there are problems with msdos partiton tables, so I implemented it with parted.

@ofborg ofborg bot added the 6.topic: nixos label Jun 1, 2020
@Lassulus Lassulus changed the title WIP make-disk-image: add hybrid and dynamic sized images WIP: make-disk-image: add hybrid and dynamic sized images Jun 1, 2020
@Lassulus Lassulus changed the title WIP: make-disk-image: add hybrid and dynamic sized images make-disk-image: add hybrid and dynamic sized images Jun 4, 2020
@Lassulus Lassulus requested review from alyssais and dezgeg and removed request for alyssais June 4, 2020 17:08
@Lassulus
Copy link
Member Author

Lassulus commented Jul 9, 2020

This now also incorporates a fix to run nixos-install again after #90431

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/218

@vcunat
Copy link
Member

vcunat commented Jul 10, 2020

I don't really understand stuff in this nix file, so I just pushed an improved version of the easy fix as 8d05772.

@Lassulus
Copy link
Member Author

after some testing I realized, that this fails sometimes when building efi/hybrid images. will have to debug and fix that.

@Lassulus Lassulus changed the title make-disk-image: add hybrid and dynamic sized images WIP: make-disk-image: add hybrid and dynamic sized images Jul 25, 2020
@Lassulus Lassulus changed the title WIP: make-disk-image: add hybrid and dynamic sized images make-disk-image: add hybrid and dynamic sized images Jul 28, 2020
@Lassulus
Copy link
Member Author

tested all partitionTableTypes with my x220 and all of them booted. So this seems good to go.

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

Successfully merging this pull request may close these issues.

None yet

3 participants