* `xen-create-image` says on startup summary that the Debian mirror is
used even if Ubuntu is going to be installed (and works)
-* `xen-list-images` does not honour `--extension`
-
Bugs to fix later
-----------------
xen-list-image [options]
+ Filename Options:
+
+ --extension Specify the file extension to use. An empty extension is equal
+ to any extension.
+
Help Options:
--help Show this scripts help information.
--manual Read this scripts manual.
my %CONFIG;
#
-# Default prefix
+# Default values
#
$CONFIG{ 'prefix' } = "/etc/xen";
+$CONFIG{ 'extension' } = '.cfg';
#
# Release number.
# Parse options.
#
GetOptions( "test=s", \$CONFIG{ 'prefix' },
+ "extension:s", \$CONFIG{ 'extension' },
"help", \$HELP,
"manual", \$MANUAL,
"version", \$VERSION );
{
my @found;
- foreach my $file ( sort( glob( $CONFIG{ 'prefix' } . "/*.cfg" ) ) )
+ foreach my $file ( sort( glob( $CONFIG{ 'prefix' } . "/*" . $CONFIG{ 'extension' } ) ) )
{
- push @found, $file if ( -e $file );
+ push @found, $file if (
+ -f $file and
+ $file !~ m(~$|\.dpkg-[a-z]+$|\.sxp$|/xl\.conf$)
+ );
}
return (@found);
- Also recognize "M" and "G" instead of "MB" and "GB" as size unit for
--memory. (Closes: #691320) Document the recognized units.
- Default DomUs to use the noop scheduler (Closes: #693131)
+ - xen-list-images now understands the --extension option.
- Fixes "--extension=" with empty parameter.
- Remove CVS revisions from --version output
- Preliminary support for Debian Jessie and Ubuntu Raring