Skip to content

Commit

Permalink
shared.unattended: Add startup.nsh to RHEL-7 when EFI used
Browse files Browse the repository at this point in the history
Arm machine uses EFI to boot the machine. To boot grub it requires
startup.nsh file specifying which EFI should be executed. Apparently
this is not done by anaconda, so do this manually if it exists.

NOTE: I'm not sure whether this is the correct way thus I'd like to have
this as a separate commit in case we need to revert.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
  • Loading branch information
ldoktor committed Mar 3, 2015
1 parent 1d340b6 commit e4be4ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shared/unattended/RHEL-7-series.ks
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,6 @@ ECHO "update ifcfg-eth0"
sed -i "/^HWADDR/d" /etc/sysconfig/network-scripts/ifcfg-eth0
ECHO "Disable lock cdrom udev rules"
sed -i "/--lock-media/s/^/#/" /usr/lib/udev/rules.d/60-cdrom_id.rules 2>/dev/null>&1
[ -f /boot/efi/EFI/redhat/grubaa64.efi ] && ECHO "Setup AARCH64 efi" && echo EFI\\redhat\\grubaa64.efi > /boot/efi/startup.nsh
ECHO 'Post set up finished'
%end

0 comments on commit e4be4ba

Please sign in to comment.