mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 07:36:21 +00:00
[SETUP] Add support for selecting FS type in unattended setups
By default, we still fallback to FAT if nothing asked, or if there is an invalid input. 0 is FAT, 1 is BtrFS. This can be grown as soon as we add more IFS.
This commit is contained in:
parent
c526f94b8c
commit
4ed6b1ffca
4 changed files with 41 additions and 9 deletions
|
@ -196,6 +196,16 @@ CheckUnattendedSetup(
|
|||
}
|
||||
}
|
||||
|
||||
/* Search for FsType in the 'Unattend' section */
|
||||
pSetupData->FsType = 0;
|
||||
if (SpInfFindFirstLine(UnattendInf, L"Unattend", L"FsType", &Context))
|
||||
{
|
||||
if (SpInfGetIntField(&Context, 1, &IntValue))
|
||||
{
|
||||
pSetupData->FsType = IntValue;
|
||||
}
|
||||
}
|
||||
|
||||
Quit:
|
||||
SpInfCloseInfFile(UnattendInf);
|
||||
}
|
||||
|
|
|
@ -110,6 +110,7 @@ typedef struct _USETUP_DATA
|
|||
LONG MBRInstallType;
|
||||
LONG FormatPartition;
|
||||
LONG AutoPartition;
|
||||
LONG FsType;
|
||||
|
||||
/* Settings lists *****/
|
||||
PGENERIC_LIST ComputerList;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue