dom0: remove unused reset_vm_configs.py
This commit is contained in:
parent
2ec08734dd
commit
366e405df0
@ -1,24 +0,0 @@
|
||||
#!/usr/bin/python2.6
|
||||
from qubes.qubes import QubesVmCollection
|
||||
import sys
|
||||
def main():
|
||||
if len(sys.argv) != 2:
|
||||
print 'Usage: fixconf templatename'
|
||||
sys.exit(1)
|
||||
qvm_collection = QubesVmCollection()
|
||||
qvm_collection.lock_db_for_reading()
|
||||
qvm_collection.load()
|
||||
qvm_collection.unlock_db()
|
||||
templ = sys.argv[1]
|
||||
tvm = qvm_collection.get_vm_by_name(templ)
|
||||
if tvm is None:
|
||||
print 'Template', templ, 'does not exist'
|
||||
sys.exit(1)
|
||||
if not tvm.is_template():
|
||||
print templ, 'is not a template'
|
||||
sys.exit(1)
|
||||
for vm in qvm_collection.values():
|
||||
if vm.template is not None and vm.template.qid == tvm.qid:
|
||||
vm.create_config_file()
|
||||
|
||||
main()
|
@ -103,7 +103,6 @@ cp aux-tools/convert_apptemplate2vm.sh $RPM_BUILD_ROOT/usr/lib/qubes
|
||||
cp aux-tools/convert_dirtemplate2vm.sh $RPM_BUILD_ROOT/usr/lib/qubes
|
||||
cp aux-tools/create_apps_for_appvm.sh $RPM_BUILD_ROOT/usr/lib/qubes
|
||||
cp aux-tools/remove_appvm_appmenus.sh $RPM_BUILD_ROOT/usr/lib/qubes
|
||||
cp aux-tools/reset_vm_configs.py $RPM_BUILD_ROOT/usr/lib/qubes
|
||||
cp qmemman/server.py $RPM_BUILD_ROOT/usr/lib/qubes/qmemman_daemon.py
|
||||
cp ../misc/meminfo-writer $RPM_BUILD_ROOT/usr/lib/qubes/
|
||||
cp ../qrexec/qrexec_daemon $RPM_BUILD_ROOT/usr/lib/qubes/
|
||||
@ -334,7 +333,6 @@ fi
|
||||
/usr/lib/qubes/convert_dirtemplate2vm.sh
|
||||
/usr/lib/qubes/create_apps_for_appvm.sh
|
||||
/usr/lib/qubes/remove_appvm_appmenus.sh
|
||||
/usr/lib/qubes/reset_vm_configs.py*
|
||||
/usr/lib/qubes/qmemman_daemon.py*
|
||||
/usr/lib/qubes/meminfo-writer
|
||||
/usr/lib/qubes/qfile-daemon-dvm*
|
||||
|
Loading…
Reference in New Issue
Block a user