aboutsummaryrefslogtreecommitdiffstats
path: root/RHEL73-efi.sh
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-02-06 07:35:11 +0100
committerGerd Hoffmann <kraxel@redhat.com>2017-02-06 07:35:11 +0100
commitf4d4e887577b7a15563740583d741945d47f5951 (patch)
treef6b757d1591754320971baf496ee21ac4a10c085 /RHEL73-efi.sh
parentc553550661b7d265f04cbe8286e89b518cad96de (diff)
downloadimagefish-f4d4e887577b7a15563740583d741945d47f5951.tar.gz
tweak scripts
Diffstat (limited to 'RHEL73-efi.sh')
-rwxr-xr-xRHEL73-efi.sh20
1 files changed, 9 insertions, 11 deletions
diff --git a/RHEL73-efi.sh b/RHEL73-efi.sh
index d3640a4..8ad53cb 100755
--- a/RHEL73-efi.sh
+++ b/RHEL73-efi.sh
@@ -1,15 +1,13 @@
#!/bin/sh
+
+name="rhel-73-efi"
+repo="repos/rhel-73.repo"
+rpms="kernel grub2-efi shim"
+
arch="$(uname -m)"
-tar="rhel-73-efi-${arch}.tar.gz"
-img="rhel-73-efi-${arch}.qcow2"
+tar="${name}-${arch}.tar.gz"
+img="${name}-${arch}.qcow2"
set -ex
rm -f "$tar" "$img"
-scripts/install-redhat.sh \
- --config repos/rhel-73.repo \
- --tar "$tar" \
- --packages "grub2-efi shim kernel" \
- --yum
-scripts/tar-to-image.sh \
- --tar "$tar" \
- --image "$img" \
- --efi
+scripts/install-redhat.sh --config "$repo" --tar "$tar" --packages "$rpms" --yum
+scripts/tar-to-image.sh --tar "$tar" --image "$img" --efi