```$self->{type} ne 'none' || !$self->{block_device}->has_filesystem``` should become ```$self->{type} ne 'none' && !$self->{block_device}->has_filesystem``` (eg ```'xfs' ne 'none' ```).