From 876d155be966737fcb45aacee1f8048644895900 Mon Sep 17 00:00:00 2001 From: codefiles <11915375+codefiles@users.noreply.github.com> Date: Fri, 6 Sep 2024 19:26:27 -0400 Subject: [PATCH] Move device after options in lsblk command (#2670) --- archinstall/lib/disk/device_model.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archinstall/lib/disk/device_model.py b/archinstall/lib/disk/device_model.py index 9992c867..0eb40de0 100644 --- a/archinstall/lib/disk/device_model.py +++ b/archinstall/lib/disk/device_model.py @@ -1431,15 +1431,15 @@ def _fetch_lsblk_info( fields = [_clean_field(f, CleanType.Lsblk) for f in LsblkInfo.fields()] cmd = ['lsblk', '--json', '--bytes', '--output', '+' + ','.join(fields)] - if dev_path: - cmd.append(str(dev_path)) - if reverse: cmd.append('--inverse') if full_dev_path: cmd.append('--paths') + if dev_path: + cmd.append(str(dev_path)) + try: result = SysCommand(cmd).decode() except SysCallError as err: