diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-02-28 19:28:22 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-02-28 19:28:22 +0100 |
commit | 54a217e65e56280561c18e8aac8b32b936ffabfb (patch) | |
tree | 32af6b74c739fc8687cee2c569d0ace3fbea82b0 | |
parent | 3e67e95d94e07c9f8b8d3cd5b22a60b7da1e702e (diff) | |
download | imagefish-54a217e65e56280561c18e8aac8b32b936ffabfb.tar.gz |
add centos
-rwxr-xr-x | CentOS7-efi.sh | 19 | ||||
-rw-r--r-- | repos/centos-7.repo | 8 | ||||
-rwxr-xr-x | run-all.sh | 1 |
3 files changed, 28 insertions, 0 deletions
diff --git a/CentOS7-efi.sh b/CentOS7-efi.sh new file mode 100755 index 0000000..cdb47ec --- /dev/null +++ b/CentOS7-efi.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +name="centos-7-efi" +repo="repos/centos-7.repo" +rpms="grub2-efi shim -dracut-config-rescue dracut-config-generic" + +arch="$(uname -m)" +tar="${IMAGEFISH_DESTDIR-.}/${name}-${arch}.tar.gz" +img="${IMAGEFISH_DESTDIR-.}/${name}-${arch}.qcow2" + +echo "" +echo "###" +echo "### $name" +echo "###" + +set -ex +rm -f "$tar" "$img" +scripts/install-redhat.sh --config "$repo" --tar "$tar" --packages "$rpms" --yum +scripts/tar-to-image.sh --tar "$tar" --image "$img" --efi-grub2 diff --git a/repos/centos-7.repo b/repos/centos-7.repo new file mode 100644 index 0000000..c57613e --- /dev/null +++ b/repos/centos-7.repo @@ -0,0 +1,8 @@ +[mkimage-centos-7-base] +baseurl=http://mirror.centos.org/centos/7/os/$basearch/ +proxy=http://spunk.home.kraxel.org:3128 + +[mkimage-centos-7-updates] +baseurl=http://mirror.centos.org/centos/7/updates/$basearch/ +proxy=http://spunk.home.kraxel.org:3128 + @@ -23,6 +23,7 @@ nilsson) # rebuild images export IMAGEFISH_DESTDIR="/vmdisk/ext/imagefish" ./RHEL73-efi.sh || exit 1 + ./CentOS7-efi.sh || exit 1 ./F25-efi-grub2.sh || exit 1 ./F25-efi-systemd.sh || exit 1 ;; |