From a2269ef7f96b32424c3927ec1c6d37ccefad53ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Thu, 16 Apr 2026 17:43:29 +0200 Subject: [PATCH] [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! --- boot/bootdata/hivesys.inf | 2 -- 1 file changed, 2 deletions(-) diff --git a/boot/bootdata/hivesys.inf b/boot/bootdata/hivesys.inf index a92adb742a9..735d6984bcc 100644 --- a/boot/bootdata/hivesys.inf +++ b/boot/bootdata/hivesys.inf @@ -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