Skip to content

Commit

Permalink
build.sh: check if /boot/efi is present
Browse files Browse the repository at this point in the history
  • Loading branch information
jcajka authored and jlebon committed Aug 14, 2019
1 parent 16d0eba commit 99d2786
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ else
exit 1
fi

arch=$(uname -m)

if [ $# -eq 0 ]; then
echo Usage: "build.sh CMD"
echo "Supported commands:"
Expand Down Expand Up @@ -76,10 +78,11 @@ install_rpms() {
sed -e "s/^.*default_ccache_name/# default_ccache_name/g" -i /etc/krb5.conf

# Open up permissions on /boot/efi files so we can copy them
# for our ISO installer image
find /boot/efi -type f -print0 | xargs -r -0 chmod +r
find /boot/efi -type d -print0 | xargs -r -0 chmod +rx

# for our ISO installer image, skip if not present
if [ -e /boot/efi ]; then
find /boot/efi -type f -print0 | xargs -r -0 chmod +r
find /boot/efi -type d -print0 | xargs -r -0 chmod +rx
fi
# Further cleanup
yum clean all

Expand Down Expand Up @@ -110,7 +113,6 @@ _prep_make_and_make_install() {
# doesn't support the installclass stuff and hopefully we'll stop using it soon.
installer_release=29

arch=$(uname -m)
# Download url is different for primary and secondary fedora
# Primary Fedora - https://download.fedoraproject.org/pub/fedora/linux/releases/
# Secondary Fedora - https://download.fedoraproject.org/pub/fedora-secondary/releases/
Expand Down

0 comments on commit 99d2786

Please sign in to comment.