Commit f0d4066
committed
Add error handling for older lsblk
The partitions resolver uses `lsblk --version` to determine the version
of lsblk and what features it has available to it. The --version flag
was not added until lsblk 2.22 in 2012, so versions prior to that will
respond with `lsblk: unrecognized option '--version'`.
Puppet still supports older operating systems like SUSE Enterprise Linux
11 that may ship versions of lsblk that do not support --version.
This commit updates the partitions resolver to handle errors when
determining the version of lsblk and to fall back to blkid when lsblk is
too old to support --version.1 parent b6cf607 commit f0d4066
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
0 commit comments