From 56de80c38a85c4f90bc1c1b45742cc1e7c4d286d Mon Sep 17 00:00:00 2001 From: Martin Gracik Date: Wed, 30 Sep 2009 13:02:40 +0200 Subject: [PATCH] Added code for creating s390 images --- etc/modules/modules.s390 | 15 + etc/modules/modules.s390x | 1 + rewrite/mk-images | 1019 +++++++++++++++++++++++++++++++++++++ rewrite/mk-images.alpha | 131 +++++ rewrite/mk-images.ia64 | 172 +++++++ rewrite/mk-images.ppc | 171 +++++++ rewrite/mk-images.s390 | 54 ++ src/pylorax/images.py | 67 +++ 8 files changed, 1630 insertions(+) create mode 100644 etc/modules/modules.s390 create mode 120000 etc/modules/modules.s390x create mode 100755 rewrite/mk-images create mode 100644 rewrite/mk-images.alpha create mode 100644 rewrite/mk-images.ia64 create mode 100644 rewrite/mk-images.ppc create mode 100644 rewrite/mk-images.s390 diff --git a/etc/modules/modules.s390 b/etc/modules/modules.s390 new file mode 100644 index 00000000..02177798 --- /dev/null +++ b/etc/modules/modules.s390 @@ -0,0 +1,15 @@ +zfcp +tape390 +dasd_diag_mod +dasd_eckd_mod +dasd_fba_mod +dasd_mod +ctc +netiucv +smsgiucv +lcs +qdio +qeth +ccwgroup +crypto_api +xfrm_nalgo diff --git a/etc/modules/modules.s390x b/etc/modules/modules.s390x new file mode 120000 index 00000000..a125a962 --- /dev/null +++ b/etc/modules/modules.s390x @@ -0,0 +1 @@ +modules.s390 \ No newline at end of file diff --git a/rewrite/mk-images b/rewrite/mk-images new file mode 100755 index 00000000..56a7a88d --- /dev/null +++ b/rewrite/mk-images @@ -0,0 +1,1019 @@ +#!/bin/bash +# +# mk-images +# +# Copyright (C) 2007 Red Hat, Inc. All rights reserved. +# +# 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; either version 2 of the License, or +# (at your option) any later version. +# +# 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, see . +# + +LANG=C + +PATH=$PATH:/sbin:/usr/sbin +IMAGEUUID=$(date +%Y%m%d%H%M).$(uname -i) +TMPDIR=${TMPDIR:-/tmp} + +usage () { + echo "usage: mk-images