| Fact disks does not show serial of disks because of using absolute path for lsblk, on my updated ubuntu 20.04 from 18.04. On my updated OS lsblk is available in path /bin/lsblk, on my another PC with installed ubuntu 20.04 from scratch lsblk is on /usr/bin/lsblk. I think should use instead of full path result = Facter::Core::Execution.execute("/usr/bin/lsblk -dn -o serial /dev/# {disk}", {on_fail: "", time_limit: 1}).strip, use result = Facter::Core::Execution.execute("lsblk -dn -o serial /dev/#{disk} ", {on_fail: "", time_limit: 1} ).strip Which solves the problem. |