Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Ignore harmless error #126

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/setup-storage/Volumes.pm
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ sub get_current_disks {
my $error =
&FAI::execute_ro_command("parted -sm $disk unit B print", \@parted_print, 0);

if ($error eq 'parted_3_2') {
# Ignore this
print "Ignoring error $error\n";
$error = '';
}

# possible problems
if (!defined($FAI::configs{"PHY_$disk"}) && $error ne "") {
warn "Could not determine size and contents of $disk, skipping\n";
Expand Down