3ddb05d4 | 23-Oct-2024 |
Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org> |
[SETUPLIB] GetSourcePaths(): Fix determination of the installation source path.
Refine the algorithm introduced in commit c560342f08 (r75667, r75676), whereby the installation source path is based o
[SETUPLIB] GetSourcePaths(): Fix determination of the installation source path.
Refine the algorithm introduced in commit c560342f08 (r75667, r75676), whereby the installation source path is based on the full image file path of the installer program, and of the \SystemRoot symlink.
Also reverts commit 6f389a35db "Add a workaround for installing from USB drives" CORE-17818
+ SAL2-annotate and add Doxygen comments.
----
In case the \SystemRoot full path prefixes the image file path, use the resolved \SystemRoot as the installation source path. Otherwise, use the image file path.
The \SystemRoot symlink target resolution needs full path reparsing, because it can reference other symlinks. This is what happens, for example when booting the installation from a removable hard-disk. We can have:
\SystemRoot ---> \Device\Harddisk1\Partition1\ReactOS and: \Device\Harddisk1\Partition1 ---> \Device\HarddiskVolume2 etc. and we wish to resolve \SystemRoot to: \Device\HarddiskVolume2\ReactOS instead of keeping the former version (using Harddisk1\Partition1).
We then verify whether it prefixes the image file path, which is a fully reparsed path.
show more ...
|
b3cd5767 | 30-Aug-2024 |
Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org> |
[SETUPLIB][USETUP] Introduce a bootloader installation helper (#7310)
CORE-13525
This is done so that the caller doesn't need to know details about particular architecture specifics, like VBR, MBR
[SETUPLIB][USETUP] Introduce a bootloader installation helper (#7310)
CORE-13525
This is done so that the caller doesn't need to know details about particular architecture specifics, like VBR, MBR etc.
Extra checks and specific handling is also performed for supporting bootloader installation on removable media: - verify whether the media is a floppy or some other removable media, - depending on which, a suitable file system is chosen, - and if the media is not a floppy, do the supplemental partition verifications to determine whether the media is a "super-floppy" (in the partitioning sense).
show more ...
|
636e2e91 | 17-Oct-2024 |
Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org> |
[SETUPLIB] Introduce a helper for copying bootloader files (#7310)
This function could be generalized later to copy other files necessary for the bootloader; removing also the currently hardcoded pl
[SETUPLIB] Introduce a helper for copying bootloader files (#7310)
This function could be generalized later to copy other files necessary for the bootloader; removing also the currently hardcoded placement in the installation source directory, and instead, using a configurable path (specified in txtsetup.sif); etc.
Adapted from a commit by Timo Kreuzer (see PR #7420)
Co-Authored-By: Timo Kreuzer <timo.kreuzer@reactos.org>
show more ...
|