]> xenbits.xensource.com Git - people/dariof/osstest.git/commitdiff
Debian: New host flag "no-di-kernel"
authorIan Campbell <ian.campbell@citrix.com>
Wed, 4 Sep 2013 16:36:29 +0000 (17:36 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 4 Sep 2013 16:36:29 +0000 (17:36 +0100)
This squashes the installers messages about not being able to find kernel
module udebs in the archive for the kernel running the installer. This will
likely be the case if the need-kernel-deb-foo flag is used (perhaps this
functionality could be keyed off this instead?)

Osstest/Debian.pm

index 91a300db25bbda4535d44b267270959f36033517..daa89b107663733a66862cf4c584d4c80feb526c 100644 (file)
@@ -599,6 +599,14 @@ END
             (join ' && ', @{ $preseed_cmds{$di_key} }). "\n";
     }
 
+    if ($ho->{Flags}{'no-di-kernel'}) {
+       $preseed_file .= <<END;
+d-i anna/no_kernel_modules boolean true
+d-i base-installer/kernel/skip-install boolean true
+d-i nobootloader/confirmation_common boolean true
+END
+    }
+
     $preseed_file .= "$c{DebianPreseed}\n";
 
     foreach my $name (keys %{ $xopts{Properties} }) {