Skip to content

Commit

Permalink
add regex for parted .... chs call
Browse files Browse the repository at this point in the history
It should not fail if the disk has no disk label. We still get useful information
  • Loading branch information
Mrfai committed Feb 16, 2024
1 parent 2a95835 commit 33c7d2b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/setup-storage/Exec.pm
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@ $FAI::error_codes = [
response => "warn",
exit_codes => [1],
},
{
error => "parted_3_3",
message => "Parted could not read a disk label (new disk?)\n",
stderr_regex => "Error: .* unrecognised disk label",
stdout_regex => "",
program => "parted -s \\S+ unit chs print free",
response => "warn",
exit_codes => [1],
},
{
error => "parted_4",
message => "Parted was unable to read the partition table\n",
Expand Down

0 comments on commit 33c7d2b

Please sign in to comment.