Commit 2b7c3b3
committed
blockdev: Backfill partition number from sysfs for older lsblk
The "partn" column was added in util-linux 2.39, which is newer than
what CentOS 9 / RHEL 9 ship (2.37). Read the partition number from
sysfs when lsblk doesn't provide it.
Assisted-by: Claude Code (claude-opus-4-5-20251101)
Signed-off-by: ckyrouac <ckyrouac@redhat.com>1 parent e96362d commit 2b7c3b3
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
85 | 108 | | |
86 | 109 | | |
87 | 110 | | |
88 | 111 | | |
| 112 | + | |
89 | 113 | | |
90 | 114 | | |
91 | 115 | | |
| |||
0 commit comments