Page MenuHomeVyOS Platform

Unable to "format disk <new> like <old>"
Closed, ResolvedPublicBUG

Description

Commit https://github.com/vyos/vyos-1x/commit/deed5740137032f5512f21d167af9f362922c71d introduced the vyos.util.cmd() utility helper.
If an empty disk is formatted like an existing array disk, an error is thrown as the disk has no partition table. This makes cmd() fail as it raises an error if returncode != 0

Details

Version
1.3.0-epa1
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)