From ad2d4a1f1a60b7eab92de525d02f689ed7fb6967 Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Thu, 28 Apr 2022 16:11:30 +0200 Subject: utils: fix winreghives path string Adds missing slash in the windows reghives path f-string. When calling os_probe inside refresh (live/ogOperations) the mountpoint is passed without a trailing slash. --- src/utils/probe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils') diff --git a/src/utils/probe.py b/src/utils/probe.py index f1bdc27..fa0ca83 100644 --- a/src/utils/probe.py +++ b/src/utils/probe.py @@ -81,7 +81,7 @@ def os_probe(mountpoint): Returns a string depending on the OS it detects. """ - winreghives = f'{mountpoint}Windows/System32/config' + winreghives = f'{mountpoint}/Windows/System32/config' osrelease = f'{mountpoint}/etc/os-release' if os.path.exists(osrelease): -- cgit v1.2.3-18-g5258