Skip to content

Commit

Permalink
Installer: add EFI boot entry for EFI installation
Browse files Browse the repository at this point in the history
Also add haveged in ISO initrd to speed up installer load

Change-Id: Iec161108baf7033ccadd80ae0d57a062e5f855d3
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5634
Reviewed-by: Anish Swaminathan <[email protected]>
Tested-by: Anish Swaminathan <[email protected]>
  • Loading branch information
ganboing authored and suezzelur committed Sep 13, 2018
1 parent 38dc4ae commit f0eaa70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/data/packages_iso.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"packages": ["glibc","zlib","filesystem","file","gmp","libgcc","libstdc++","bash","sed",
"packages": ["glibc","zlib","filesystem","file","gmp","libgcc","libstdc++","bash","sed", "haveged",
"bzip2","pkg-config","python3-curses","ncurses", "cracklib","cracklib-dicts","python3-cracklib",
"shadow","coreutils","grep","readline","findutils","xz","util-linux","e2fsprogs",
"libffi","expat","linux","cpio","Linux-PAM","attr","libcap", "systemd","dbus",
"gzip", "sqlite","nspr","nss","popt","lua","rpm","gptfdisk","tar", "librepo",
"hawkey", "python3","python3-libs","pcre","glib", "tdnf", "python3-requests",
"grub2-pc", "grub2-efi", "dracut", "curl", "dosfstools"]
"grub2-pc", "grub2-efi", "efivar", "efibootmgr", "dracut", "curl", "dosfstools"]
}
3 changes: 3 additions & 0 deletions installer/mk-setup-grub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,19 @@ grub_efi_install()
if [ $(uname -m) == "aarch64" ]
then
cp EFI_aarch64/BOOT/* $BUILDROOT/boot/efi/EFI/Boot/
local EXE_NAME="bootaa64.efi"
elif [ $(uname -m) == "x86_64" ]
then
cp EFI_x86_64/BOOT/* $BUILDROOT/boot/efi/EFI/Boot/
local EXE_NAME="bootx64.efi"
fi

mkdir -p $BUILDROOT/boot/efi/boot/grub2
cat > $BUILDROOT/boot/efi/boot/grub2/grub.cfg << EOF
search -n -u ${BOOT_UUID} -s
configfile ${BOOT_DIRECTORY}grub2/grub.cfg
EOF
efibootmgr --create --remove-dups --disk "$HDD" --part 1 --loader "/EFI/Boot/$EXE_NAME" --label Photon --verbose >&2
umount $BUILDROOT/boot/efi
}

Expand Down

0 comments on commit f0eaa70

Please sign in to comment.