From 9aa9397e422e4c29fc54d32d52f75364a7e9e313 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 3 May 2012 11:16:08 -0400 Subject: [PATCH] ostbuild: Create deploy-qemu subcommand --- Makefile-ostbuild.am | 2 + gnomeos/gnomeos-qemu-create.sh | 74 ---------------- gnomeos/gnomeos-qemu-pull.sh | 70 ---------------- .../pyostbuild/builtin_deploy_qemu.py | 8 +- .../builtin_privhelper_deploy_qemu.py | 84 +++++++++++++++---- src/ostbuild/pyostbuild/main.py | 4 + src/ostbuild/pyostbuild/privileged_subproc.py | 4 +- 7 files changed, 81 insertions(+), 165 deletions(-) delete mode 100755 gnomeos/gnomeos-qemu-create.sh delete mode 100755 gnomeos/gnomeos-qemu-pull.sh diff --git a/Makefile-ostbuild.am b/Makefile-ostbuild.am index 0c87e65c..a6e97062 100644 --- a/Makefile-ostbuild.am +++ b/Makefile-ostbuild.am @@ -29,8 +29,10 @@ pyostbuild_PYTHON = \ src/ostbuild/pyostbuild/builtin_compose.py \ src/ostbuild/pyostbuild/builtin_chroot_compile_one.py \ src/ostbuild/pyostbuild/builtin_compile_one.py \ + src/ostbuild/pyostbuild/builtin_deploy_qemu.py \ src/ostbuild/pyostbuild/builtin_deploy_root.py \ src/ostbuild/pyostbuild/builtin_pull_components.py \ + src/ostbuild/pyostbuild/builtin_privhelper_deploy_qemu.py \ src/ostbuild/pyostbuild/builtin_git_mirror.py \ src/ostbuild/pyostbuild/builtin_prefix.py \ src/ostbuild/pyostbuild/builtin_resolve.py \ diff --git a/gnomeos/gnomeos-qemu-create.sh b/gnomeos/gnomeos-qemu-create.sh deleted file mode 100755 index bc0e6a57..00000000 --- a/gnomeos/gnomeos-qemu-create.sh +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/bash -# -*- indent-tabs-mode: nil; -*- -# Create ostree-qemu.img file in the current directory, suitable -# for booting via qemu. -# -# Copyright (C) 2011,2012 Colin Walters -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This library 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 -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the -# Free Software Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. - -set -e -set -x - -SRCDIR=`dirname $0` -WORKDIR=`pwd` - -if test $(id -u) != 0; then - cat < -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This library 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 -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the -# Free Software Foundation, Inc., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. - -set -e -set -x - -SRCDIR=`dirname $0` -WORKDIR=`pwd` - -if test $(id -u) != 0; then - cat <