Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Mar 3, 2024
1 parent d69362e commit 771470a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/fai-cd
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,16 @@ create_grub2_image() {
mkdir -p $tmp/boot/grub

if [ -d $NFSROOT/usr/lib/grub/x86_64-efi ]; then

# prepare grub.cfg
cp $grub_config $NFSROOT/tmp/grub.cfg
# insert date into grub menu
perl -pi -e "s/_VERSIONSTRING_/ $isoversion /" $NFSROOT/tmp/grub.cfg
if [ -n "$config_space" ] || [ $configset -eq 1 ]; then
perl -pi -e "s|FAI_CONFIG_SRC=(.*?)\S+|FAI_CONFIG_SRC=$config_space|" $NFSROOT/tmp/grub.cfg
fi

# create arch.efi and copy to vfat file system
TMPDIR=tmp chroot $NFSROOT grub-mkstandalone \
--format=x86_64-efi \
--output=/tmp/bootx64.efi \
Expand Down

0 comments on commit 771470a

Please sign in to comment.