]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsblk: on --sysroot read attributes from /dev/<devname> text file
authorKarel Zak <kzak@redhat.com>
Tue, 15 Oct 2019 10:36:16 +0000 (12:36 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 15 Oct 2019 10:36:16 +0000 (12:36 +0200)
commit7408a5d9c2e0bb20ac0660ead16b787825ef240e
tree7ff2ae271f8ad32e08621d9e63c1c23c50e0d061
parentb1418ed14691567b4b1d6fc8b465821e3b060d5d
lsblk: on --sysroot read attributes from /dev/<devname> text file

The option --sysroot is used to read information from dumps rather
than from the current system. This patch allows to read also udev
attributes from text file in location /sysroot/dev/<devname>. The file
is text file in format NAME=value\n.

Suggested-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lsblk-properties.c
misc-utils/lsblk.h