Skip to content

Commit

Permalink
Move device after options in lsblk command
Browse files Browse the repository at this point in the history
  • Loading branch information
codefiles committed Sep 6, 2024
1 parent 6a2a204 commit f74a63c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions archinstall/lib/disk/device_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f74a63c

Please sign in to comment.