From 1a4bb39aad62b134bbfbaf8c45436684fed1ee42 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Wed, 12 Jun 2024 11:40:39 +0200 Subject: [PATCH] check if libarchive is available for ext4 format --- mmdebstrap | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mmdebstrap b/mmdebstrap index 3fcf6fe..01d4a28 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -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') {