Skip to content

Commit

Permalink
Update 660_install_grub2.sh
Browse files Browse the repository at this point in the history
By the way in finalize/Linux-ppc64le/660_install_grub2.sh fixed comment
wrong "Erase the first 512 bytes of the PPC PReP boot partition"
to what the code actually does "Zero out the PPC PReP boot partition"
cf. #673
  • Loading branch information
jsmeix committed Jul 20, 2020
1 parent dd1793b commit c559e9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion usr/share/rear/finalize/Linux-ppc64le/660_install_grub2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ for part in $part_list ; do
# Install GRUB2 on the PPC PReP boot partition if one was found:
if test "$part" ; then
LogPrint "Found PPC PReP boot partition $part - installing GRUB2 there"
# Erase the first 512 bytes of the PPC PReP boot partition:
# Zero out the PPC PReP boot partition
# cf. https://github.com/rear/rear/pull/673
dd if=/dev/zero of=$part
if chroot $TARGET_FS_ROOT /bin/bash --login -c "$grub_name-install $grub2_install_option $part" ; then
# In contrast to the above behaviour when GRUB2_INSTALL_DEVICES is specified
Expand Down

0 comments on commit c559e9c

Please sign in to comment.