Commit Graph

6 Commits (1357f493bd68fdc4b2cccb9e49a8ed881341ef96)

Author SHA1 Message Date
Markus Partheymüller 1357f493bd Add support for legacy installations 2021-03-09 10:48:29 +01:00
Markus Partheymüller e8232ab89a win: Allow for selection specific image
This is useful if the install.wim contains multiple Windows versions
(e.g., Home, Pro, ..), because the autounattend file will always select
index 1. With this mechanism, a variant different from the first one can
be automatically selected. imageSelection can be either an index (1-N)
or the image name wiminfo can list all images contained in a given WIM
file.

The default case is index 1, which has the same effect as before, with
the possibility of having a slightly smaller install.wim file because
all unwanted variants are discarded.
2021-03-09 10:36:56 +01:00
Markus Partheymüller fbd5b97d79 Split install.wim before creating USB image
With newer Windows 10 versions, `install.wim` can become larger than
4GiB, which can't be placed in a FAT32 partition anymore. By splitting
it into chunks with `wimsplit` and removing `install.wim`, the larger
images work fine.
2021-03-09 10:36:56 +01:00
adisbladis 4b497938ff
Fixup: Use win-exec instead of `win exec` 2020-06-30 10:22:17 +02:00
adisbladis 6f546f5e25
Disable password expiry
Since we set RTC in the Nix build it's likely that any passwords have
expired since the image generation RTC time.

Ideally this should be applied in autounattend.xml but it didn't work
out either as FirstLogonCommands or as a command in the specialize pass.
2020-06-29 11:35:48 +02:00
Sebastien Bourdeauducq b3515a9192 copy from nix-scripts 2020-06-28 14:23:43 +08:00