From 635f284d7185673581fb517f335512199603ec03 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 8 Jun 2023 10:55:54 +0200 Subject: [PATCH] make extracting tar archive for /dev opt-in Signed-off-by: Thomas Lamprecht --- PVE/DAB.pm | 2 +- dab | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PVE/DAB.pm b/PVE/DAB.pm index c3f1a2a..e3d5b01 100644 --- a/PVE/DAB.pm +++ b/PVE/DAB.pm @@ -1535,7 +1535,7 @@ sub bootstrap { } # setup devices - $self->run_command ("tar xzf '$devicetar' -C '$rootdir'"); + $self->run_command ("tar xzf '$devicetar' -C '$rootdir'") if $opts->{'device-skelleton'}; # avoid warnings about missing default locale write_file ("LANG=\"C\"\n", "$rootdir/etc/default/locale", 0644); diff --git a/dab b/dab index 0df6306..7771771 100755 --- a/dab +++ b/dab @@ -11,7 +11,7 @@ $ENV{'LC_ALL'} = 'C'; my $commands = { 'init' => '', - 'bootstrap' => '[--exim] [--include ] --exclude [] [--minimal]', + 'bootstrap' => '[--exim] [--include ] --exclude [] [--minimal] [--device-skelleton]', 'finalize' => '[--keepmycnf] [--compressor ]', 'veid' => '', 'basedir' => '', @@ -84,7 +84,7 @@ eval { } elsif ($cmd eq 'bootstrap') { my $opts = {}; - if (!GetOptions ($opts, 'exim', 'minimal', 'include=s', 'exclude=s')) { + if (!GetOptions ($opts, 'exim', 'minimal', 'device-skelleton', 'include=s', 'exclude=s')) { fatal_usage(); } die "command 'bootstrap' expects no arguments.\n" if scalar (@ARGV) != 0; -- 2.39.2