Best place to control partition layout (leave extra space for a Windows 11 install) #6
-
This is a beautiful project, and I am very grateful it exists! Thank you for the care and attention to detail you've invested in it. Perhaps surprisingly, after browsing both the docs and the implementation for a bit, it wasn't obvious to me where to edit to control the partition layout. It seems like this could be used with only minimal adaptations to create an Ubuntu install that is ready for Windows 11 dual-boot to be installed afterwards. I'm happy to make local changes for my use case, but if you would be so kind to direct me to the correct place, that would be great! A brief callout in the docs would seem to be helpful too. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
I was ultimately able to find the correct line, so apologies if this is noise! I'll leave this discussion open for now so you can decide if adding a config variable or a documentation note about this is worthwhile. Cheers! Line 756 in 4330dde |
Beta Was this translation helpful? Give feedback.
-
Thanks for the kind words, makes all the more worthwhile :) The main partitions are created here with an example of the layout here For example, a local system here with a 60G boot disk looks like
I'll add a pointer in the Adding an extra partition for Windows should be easy, and I think rEFInd should see and pick it up cleanly. Though be aware that Windows can do some weird things to the boot partitions when it updates. |
Beta Was this translation helpful? Give feedback.
-
Awesome, thanks!! BTW, there is a missing space before the " on this line that I think might break things, at least in some cases. I'm technically working right now so apologies for not just sending a PR, but this fixed the script for me! It has been a blast, definitely going to hold onto this one. Line 489 in 4330dde |
Beta Was this translation helpful? Give feedback.
-
I may as well ask, since my goal has remained elusive - do you think most of the script would still work if it were changed to use existing partitions, created manually, with Windows 11 already installed? I heard that in principal leaving the unallocated space at the end of the desk would work and windows would install afterwards, but it seems the installer is not cooperating with that installation order. |
Beta Was this translation helpful? Give feedback.
Thanks for the kind words, makes all the more worthwhile :)
The main partitions are created here
https://github.com/Halfwalker/ZFS-root/blob/master/ZFS-root.sh#L716-L758
with an example of the layout here
https://github.com/Halfwalker/ZFS-root/blob/master/ZFS-root.sh#L68-L72
For example, a local system here with a 60G boot disk looks like
I'll add a pointer in the
README.md
to a tag in the scriptAdding an extra partition for Windows should be easy, and I think rEFInd should see and pick it up clea…