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

Windows installation with puavo-install #756

Draft
wants to merge 8 commits into
base: puavo-reset-windows-prepare-for-installation-use
Choose a base branch
from

Conversation

tuomasjjrasanen
Copy link
Contributor

No description provided.

@tuomasjjrasanen tuomasjjrasanen self-assigned this Oct 20, 2024
@tuomasjjrasanen tuomasjjrasanen linked an issue Oct 20, 2024 that may be closed by this pull request
@tuomasjjrasanen tuomasjjrasanen force-pushed the puavo-reset-windows-prepare-for-installation-use branch from c27e53e to 10dade6 Compare November 16, 2024 07:42
@tuomasjjrasanen tuomasjjrasanen force-pushed the puavo-setup-filesystems-for-windows-too branch from e397f02 to 9e28ba1 Compare November 16, 2024 07:52
@tuomasjjrasanen tuomasjjrasanen force-pushed the puavo-reset-windows-prepare-for-installation-use branch from 10dade6 to 2d75bb6 Compare November 27, 2024 17:58
@tuomasjjrasanen tuomasjjrasanen force-pushed the puavo-setup-filesystems-for-windows-too branch from 9e28ba1 to fddf40e Compare November 27, 2024 17:58
@tuomasjjrasanen tuomasjjrasanen force-pushed the puavo-reset-windows-prepare-for-installation-use branch from 2d75bb6 to 0b7a47a Compare December 6, 2024 08:25
@tuomasjjrasanen tuomasjjrasanen force-pushed the puavo-setup-filesystems-for-windows-too branch from fddf40e to 0bafc5c Compare December 6, 2024 09:50
This commit adds new command line and prompt options for optionally
partitioning the disk (and creating filesystems) for Windows.

- Preseeding is supported.
- Only UEFI/GPT partitioning scheme is supported.
- Default Windows partition sizes are minimum (hard-minimum is obtained from Windows docs)
- Windows partition sizes are validated
- The default is to NOT create Windows partitions and filesystems.
It creates device-specific BCD from a template BCD by scanning
partition UUIDs filling them in to the template.

The base is https://github.com/U1F984/create_bcd ce120f0cc8168ca6265a399ac69b139c202e4335

The license of the base code is UNKNOWN! (hence [draft])

We have made some improvements on top of it:
 - added _get_uuids() function
 - added command line argument parsing

Requires python3-hivex.

This commit also includes a "template" minimal BCD, which is used by
create-bcd to create a device-specific read BCD.
New usage: puavo-reset-windows --mode install-boot-dir [--force] WIN_C_PARTITION_DEVPATH BOOT_DIR

This command installs Windows boot manager from a boot WIM image to to
BOOT_DIR. It requires Windows C Partition is correctly installed to
WIN_C_PARTITION_DEVPATH, which is scanned for currently installed
Windows product
New usage: puavo-reset-windows --mode install-c-partition [--force] WIN_C_PARTITION_DEVPATH

This causes puavo-reset-windows to install a fresh Win11 Pro from a WIM image to the
@tuomasjjrasanen tuomasjjrasanen force-pushed the puavo-setup-filesystems-for-windows-too branch from 0bafc5c to 05090d6 Compare January 7, 2025 18:22
@tuomasjjrasanen tuomasjjrasanen force-pushed the puavo-reset-windows-prepare-for-installation-use branch from 0b7a47a to 8b617c9 Compare January 7, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Installing dualboot Windows via wim images?
1 participant