summaryrefslogtreecommitdiffstats
path: root/scripts/mk-images.efi
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2008-08-25 10:19:19 -1000
committerDavid Cantrell <dcantrell@redhat.com>2008-08-25 10:19:19 -1000
commit57e7079052bec83c6aa0bb327b220d1de908d118 (patch)
tree4a4e0a548e489543cdb6152768e8800d43668ddf /scripts/mk-images.efi
parent2be503dd8da94df9979528594bc2a91db5e0cc96 (diff)
downloadanaconda-57e7079052bec83c6aa0bb327b220d1de908d118.tar.gz
anaconda-57e7079052bec83c6aa0bb327b220d1de908d118.tar.xz
anaconda-57e7079052bec83c6aa0bb327b220d1de908d118.zip
Use NetworkManager instead of libdhcp. (#458183)
Finally, no more libdhcp. This is the first set of changes to take anaconda over to the wonderful world of NetworkManager. We are no longer linking with libdhcp to do interface configuration. NM is started early in the installation and opens the door to things like WPA installation support and things like that.
Diffstat (limited to 'scripts/mk-images.efi')
-rwxr-xr-xscripts/mk-images.efi6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/mk-images.efi b/scripts/mk-images.efi
index 23038eb35..f39a051a1 100755
--- a/scripts/mk-images.efi
+++ b/scripts/mk-images.efi
@@ -23,7 +23,11 @@ makeefibootdisk()
partimg=$1
target=$2
- local partsize=$(ls -l $1 | awk '{ print $5 }')
+ if [ ! -f $1 ]; then
+ return
+ fi
+
+ local partsize=$(ls -l $1 | awk '{ print $5; }')
local disksize=$((17408 + $partsize + 17408))
disksize=$(($disksize + $(($disksize % 512))))
local diskimg=$(mktemp /tmp/efidisk.img.XXXXXX)