Skip to content

sudo lsblk fails if password is not cached #1

@Ambrevar

Description

@Ambrevar

In the following

(defun helm-linux-disks--lsblk-with-levels ()
  "Run lsblk command and annotate each line with its level."
  (mapcar (lambda (raw-output)
            (cons (helm-linux-disks--lsblk-get-level raw-output) raw-output))
          (process-lines "sudo" "lsblk" "-n" "-p" "-o" "name,mountpoint,fstype,type,size")))

the process-lines fails if the password is not cached by sudo.
I'm not sure how to fix it, but lsblk works without sudo for me (on Guix System).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions