redirect disklabel errors to /dev/null

openbsd
Jérémy Dubois 8 months ago
parent 6daf5c6b42
commit b1642d39cb

@ -16,6 +16,8 @@ The **patch** part changes is incremented if multiple releases happen the same m
### Changed
* redirect disklabel errors to /dev/null
### Fixed
### Removed

@ -293,7 +293,7 @@ task_disks() {
for disk in ${disks}; do
disklabel_bin=$(command -v disklabel)
if [ -n "${disklabel_bin}" ]; then
last_result=$(${disklabel_bin} "${disk}" > "${dump_dir}/partitions-${disk}")
last_result=$(${disklabel_bin} "${disk}" 2>/dev/null > "${dump_dir}/partitions-${disk}")
last_rc=$?
if [ ${last_rc} -eq 0 ]; then

Loading…
Cancel
Save