forked from josch/mmdebstrap
make sure genext2fs and genext2fs exist for the respective formats
This commit is contained in:
parent
374ae3dc99
commit
830270840b
1 changed files with 10 additions and 0 deletions
10
mmdebstrap
10
mmdebstrap
|
@ -5426,6 +5426,16 @@ sub main() {
|
|||
info "ignoring target $options->{target} with null format";
|
||||
}
|
||||
|
||||
if ($format eq 'ext2') {
|
||||
if (!can_execute 'genext2fs') {
|
||||
error "need genext2fs for ext2 format";
|
||||
}
|
||||
} elsif ($format eq 'squashfs') {
|
||||
if (!can_execute 'tar2sqfs') {
|
||||
error "need tar2sqfs binary from the squashfs-tools-ng package";
|
||||
}
|
||||
}
|
||||
|
||||
if (any { $_ eq $format } ('tar', 'squashfs', 'ext2', 'null')) {
|
||||
if ($format ne 'null') {
|
||||
if (any { $_ eq $options->{variant} } ('extract', 'custom')
|
||||
|
|
Loading…
Reference in a new issue