xen-delete-image [options] [--hostname=]imageName1 [--hostname=]imageName2
+ Filename Options:
+ --extension Specify the file extension to use. An empty extension is equal
+ to any extension.
+
Help Options:
--help Show help information.
--manual Read the manual for this script.
#
$CONFIG{ 'xm' } = findXenToolstack();
+#
+# Default values
+#
+$CONFIG{ 'extension' } = '.cfg';
+
#
# Read the global configuration file if it exists.
"dry-run", \$CONFIG{ 'dry-run' },
"lvm=s", \$CONFIG{ 'lvm' },
"evms=s", \$CONFIG{ 'evms' },
+ "extension:s", \$CONFIG{ 'extension' },
"hostname=s@", \$CONFIG{ 'hostname' },
"test", \$CONFIG{ 'test' },
"verbose", \$CONFIG{ 'verbose' },
#
# Delete the Xen auto-start file if it exists.
#
- if ( -e "/etc/xen/auto/$hostname.cfg" )
+ if ( -e "/etc/xen/auto/$hostname".$CONFIG{ 'extension' } )
{
- push( @delete, "/etc/xen/auto/$hostname.cfg" );
+ push( @delete, "/etc/xen/auto/$hostname".$CONFIG{ 'extension' } );
}
#
# Delete the Xen configuration file if it exists.
#
- if ( -e "/etc/xen/$hostname.cfg" )
+ if ( -e "/etc/xen/$hostname".$CONFIG{ 'extension' } )
{
- push( @delete, "/etc/xen/$hostname.cfg" );
+ push( @delete, "/etc/xen/$hostname".$CONFIG{ 'extension' } );
}
#
--memory. (Closes: #691320) Document the recognized units.
- Default DomUs to use the noop scheduler (Closes: #693131)
- Overwork TLS disabling on Debian and Ubuntu
- - xen-list-images update:
- + now understands the --extension option.
- + also outputs the file name of the config file
+ - xen-list-images now also outputs the file name of the config file.
+ - xen-list-images and xen-delete-image now understand --extension.
- Fixes "--extension=" with empty parameter.
- Sarge amd64 case handle properly
- Remove CVS revisions from --version output