#!/usr/bin/python -tt
#
-# Copyright 2008, 2009, 2010 Intel, Inc.
+# Copyright 2009, 2010, 2011 Intel, Inc.
#
# This copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the GNU
#!/usr/bin/python -tt
#
-# Copyright 2008, 2009, 2010 Intel, Inc.
+# Copyright 2011 Intel, Inc.
#
# This copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the GNU
#!/usr/bin/python -tt
#
-# Copyright 2008, 2009, 2010 Intel, Inc.
+# Copyright 2011 Intel, Inc.
#
# This copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the GNU
+#!/usr/bin/python -tt
#
-# creator.py : ImageCreator and LoopImageCreator base classes
+# Copyright 2011 Intel, Inc.
#
-# Copyright 2007, Red Hat Inc.
+# This copyrighted material is made available to anyone wishing to use, modify,
+# copy, or redistribute it subject to the terms and conditions of the GNU
+# General Public License v.2. This program is distributed in the hope that it
+# will be useful, but WITHOUT ANY WARRANTY expressed or implied, including the
+# implied warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the GNU General Public License for more details.
#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
+# You should have received a copy of the GNU General Public License along with
+# this program; if not, write to the Free Software Foundation, Inc., 51
+# Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Any Red Hat
+# trademarks that are incorporated in the source code or documentation are not
+# subject to the GNU General Public License and may only be used or replicated
+# with the express permission of Red Hat, Inc.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Library General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
import os, sys
import subprocess
+#!/usr/bin/python -tt
#
-# livecd.py : LiveCDImageCreator class for creating Live CD images
+# Copyright 2011 Intel, Inc.
#
-# Copyright 2007, Red Hat Inc.
+# This copyrighted material is made available to anyone wishing to use, modify,
+# copy, or redistribute it subject to the terms and conditions of the GNU
+# General Public License v.2. This program is distributed in the hope that it
+# will be useful, but WITHOUT ANY WARRANTY expressed or implied, including the
+# implied warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the GNU General Public License for more details.
#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
+# You should have received a copy of the GNU General Public License along with
+# this program; if not, write to the Free Software Foundation, Inc., 51
+# Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Any Red Hat
+# trademarks that are incorporated in the source code or documentation are not
+# subject to the GNU General Public License and may only be used or replicated
+# with the express permission of Red Hat, Inc.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Library General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
import os, sys
import glob
+#!/usr/bin/python -tt
#
-# liveusb.py : LiveUSBImageCreator class for creating Live USB images
+# Copyright 2011 Intel, Inc.
#
-# Copyright 2007, Red Hat Inc.
+# This copyrighted material is made available to anyone wishing to use, modify,
+# copy, or redistribute it subject to the terms and conditions of the GNU
+# General Public License v.2. This program is distributed in the hope that it
+# will be useful, but WITHOUT ANY WARRANTY expressed or implied, including the
+# implied warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the GNU General Public License for more details.
#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
+# You should have received a copy of the GNU General Public License along with
+# this program; if not, write to the Free Software Foundation, Inc., 51
+# Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Any Red Hat
+# trademarks that are incorporated in the source code or documentation are not
+# subject to the GNU General Public License and may only be used or replicated
+# with the express permission of Red Hat, Inc.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Library General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
import os
import shutil
+#!/usr/bin/python -tt
#
-# loop.py : LoopImageCreator classes
+# Copyright 2011 Intel, Inc.
#
-# Copyright 2007, Red Hat Inc.
+# This copyrighted material is made available to anyone wishing to use, modify,
+# copy, or redistribute it subject to the terms and conditions of the GNU
+# General Public License v.2. This program is distributed in the hope that it
+# will be useful, but WITHOUT ANY WARRANTY expressed or implied, including the
+# implied warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the GNU General Public License for more details.
#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
+# You should have received a copy of the GNU General Public License along with
+# this program; if not, write to the Free Software Foundation, Inc., 51
+# Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Any Red Hat
+# trademarks that are incorporated in the source code or documentation are not
+# subject to the GNU General Public License and may only be used or replicated
+# with the express permission of Red Hat, Inc.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Library General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
import os
import subprocess
+#!/usr/bin/python -tt
#
-# raw.py: RawImageCreator class
+# Copyright 2011 Intel, Inc.
#
-# Copyright 2007-2008, Red Hat Inc.
-# Copyright 2008, Daniel P. Berrange
+# This copyrighted material is made available to anyone wishing to use, modify,
+# copy, or redistribute it subject to the terms and conditions of the GNU
+# General Public License v.2. This program is distributed in the hope that it
+# will be useful, but WITHOUT ANY WARRANTY expressed or implied, including the
+# implied warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the GNU General Public License for more details.
#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; version 2 of the License.
+# You should have received a copy of the GNU General Public License along with
+# this program; if not, write to the Free Software Foundation, Inc., 51
+# Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Any Red Hat
+# trademarks that are incorporated in the source code or documentation are not
+# subject to the GNU General Public License and may only be used or replicated
+# with the express permission of Red Hat, Inc.
#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Library General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
import os
import stat
#!/usr/bin/python -tt
# vim: ai ts=4 sts=4 et sw=4
-
-# Copyright (c) 2009 Intel Corporation
#
-# This program is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by the Free
-# Software Foundation; version 2 of the License
+# Copyright 2009, 2010, 2011 Intel, Inc.
+#
+# This copyrighted material is made available to anyone wishing to use, modify,
+# copy, or redistribute it subject to the terms and conditions of the GNU
+# General Public License v.2. This program is distributed in the hope that it
+# will be useful, but WITHOUT ANY WARRANTY expressed or implied, including the
+# implied warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the GNU General Public License for more details.
#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
-# for more details.
+# You should have received a copy of the GNU General Public License along with
+# this program; if not, write to the Free Software Foundation, Inc., 51
+# Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Any Red Hat
+# trademarks that are incorporated in the source code or documentation are not
+# subject to the GNU General Public License and may only be used or replicated
+# with the express permission of Red Hat, Inc.
#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc., 59
-# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
import os,sys
import re
#!/usr/bin/python -tt
#
-# Copyright 2008, 2009, 2010 Intel, Inc.
+# Copyright 2011 Intel, Inc.
#
# This copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the GNU
#!/usr/bin/python -tt
#
-# Copyright 2008, 2009, 2010 Intel, Inc.
+# Copyright 2011 Intel, Inc.
#
# This copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the GNU
#
# misc.py : miscellaneous utilities
#
-# Copyright 2010, Intel Inc.
+# Copyright 2010, 2011 Intel Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#!/usr/bin/python -tt
#
-# Copyright 2008, 2009, 2010 Intel, Inc.
+# Copyright 2008, 2009, 2010, 2011 Intel, Inc.
#
# This copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the GNU
createopts = cfgmgr.create
cfgmgr.setProperty("ksconf", ksconf)
+ # try to find the pkgmgr
+ pkgmgr = None
plgmgr = pluginmgr.PluginMgr()
for (key, pcls) in plgmgr.get_plugins('backend').iteritems():
if key == createopts['pkgmgr']:
pkgmgr = pcls
+ break
if not pkgmgr:
raise CreatorError("Can't find backend plugin: %s" % createopts['pkgmgr'])
cfgmgr = configmgr.getConfigMgr()
cfgmgr.setProperty("ksconf", ksconf)
creatoropts = cfgmgr.create
- plgmgr = pluginmgr.PluginMgr()
+ # try to find the pkgmgr
+ pkgmgr = None
+ plgmgr = pluginmgr.PluginMgr()
for (key, pcls) in plgmgr.get_plugins('backend').iteritems():
- if key == creatoropts['pkgmgr']:
+ if key == createopts['pkgmgr']:
pkgmgr = pcls
+ break
if not pkgmgr:
raise CreatorError("Can't find backend %s" % pkgmgr)
cfgmgr = configmgr.getConfigMgr()
creatoropts = cfgmgr.create
cfgmgr.setProperty("ksconf", args[0])
- plgmgr = pluginmgr.PluginMgr()
+ # try to find the pkgmgr
+ pkgmgr = None
+ plgmgr = pluginmgr.PluginMgr()
for (key, pcls) in plgmgr.get_plugins('backend').iteritems():
- if key == creatoropts['pkgmgr']:
+ if key == createopts['pkgmgr']:
pkgmgr = pcls
+ break
creator = liveusb.LiveUSBImageCreator(creatoropts, pkgmgr)
try:
creatoropts = cfgmgr.create
cfgmgr.setProperty("ksconf", ksconf)
+ # try to find the pkgmgr
+ pkgmgr = None
plgmgr = pluginmgr.PluginMgr()
-
for (key, pcls) in plgmgr.get_plugins('backend').iteritems():
- if key == creatoropts['pkgmgr']:
+ if key == createopts['pkgmgr']:
pkgmgr = pcls
+ break
if not pkgmgr:
raise CreatorError("Can't find backend %s" % pkgmgr)
cfgmgr = configmgr.getConfigMgr()
creatoropts = cfgmgr.create
cfgmgr.setProperty("ksconf", ksconf)
- plgmgr = pluginmgr.PluginMgr()
+ # try to find the pkgmgr
+ pkgmgr = None
+ plgmgr = pluginmgr.PluginMgr()
for (key, pcls) in plgmgr.get_plugins('backend').iteritems():
- if key == creatoropts['pkgmgr']:
+ if key == createopts['pkgmgr']:
pkgmgr = pcls
+ break
if not pkgmgr:
raise CreatorError("Can't find backend %s" % pkgmgr)