@@ -422,6 +422,7 @@ sub di_installcmdline_core ($$;@) {
my $debconf_priority= $xopts{DebconfPriority};
push @cl, "debconf/priority=$debconf_priority"
if defined $debconf_priority;
+ push @cl, "rescue/enable=true" if $xopts{RescueMode};
return @cl;
}
@@ -30,9 +30,14 @@ my $debconf_priority;
our %xopts;
-if (@ARGV && $ARGV[0] =~ m/^--priority(?:=(.*))?$/) {
+while (@ARGV and $ARGV[0] =~ m/^-/) {
+ $_= shift @ARGV;
+ last if m/^--$/;
+ if (m/^--priority(?:=(.*))?$/) {
$xopts{DebconfPriority}= defined($1) ? $1 : 'low';
- shift @ARGV;
+ } elsif (m/^--rescue$/) {
+ $xopts{RescueMode}= 1;
+ }
}
our ($whhost) = @ARGV;