check if libarchive is available for ext4 format

This commit is contained in:
Johannes Schauer Marin Rodrigues 2024-06-12 11:40:39 +02:00
parent dfeb21cfe5
commit 1a4bb39aad
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -5737,6 +5737,9 @@ sub main() {
if (!can_execute 'mke2fs', '-V') {
error "need mke2fs for ext4 format";
}
require DynaLoader;
my $libarchive = DynaLoader::dl_load_file("libarchive.so.13", 0)
or error "need libarchive for ext4 format";
$blocksize = 4096;
} elsif ($options->{format} eq 'squashfs') {
if (!can_execute 'tar2sqfs') {