mirror of
https://github.com/reactos/reactos.git
synced 2026-06-08 00:46:10 +08:00
[BOOTDATA] hivesys.inf: "OsLoaderPath" and "SystemPartition" shouldn't be pre-hardcoded
These two registry values, stored in `HKEY_LOCAL_MACHINE\SYSTEM\Setup`, are generated at runtime by the kernel; they are based on the current values of: `LoaderBlock->NtHalPathName` and `LoaderBlock->ArcBootDeviceName` respectively. In particular, hardcoding `SystemPartition` to a default value "\Device\Harddisk0\Partition1" , would be as random as hardcoding it to anything else, since nothing justifies that there exists a partition on the first harddisk, and if there is one, nothing guarantees that it is one that was used to boot the operating system... Especially when booting a LiveCD!
This commit is contained in:
@@ -2246,9 +2246,7 @@ HKLM,"SYSTEM\Select","LastKnownGood",0x00010003,0x00000001
|
||||
|
||||
; System setup settings
|
||||
HKLM,"SYSTEM\Setup","CmdLine",0x00000000,"setup -newsetup"
|
||||
HKLM,"SYSTEM\Setup","OsLoaderPath",0x00000000,"\"
|
||||
HKLM,"SYSTEM\Setup","SetupType",0x00010001,0x00000001
|
||||
HKLM,"SYSTEM\Setup","SystemPartition",0x00000000,"\Device\Harddisk0\Partition1"
|
||||
HKLM,"SYSTEM\Setup","SystemPrefix",0x00000001
|
||||
HKLM,"SYSTEM\Setup","SystemSetupInProgress",0x00010001,0x00000001
|
||||
|
||||
|
||||
Reference in New Issue
Block a user