Skip to content

Commit e8b7614

Browse files
committed
fix check bootloader for POWER arch
1 parent 518bbcd commit e8b7614

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

usr/share/rear/layout/save/default/45_check_bootloader_files.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ case $myBOOTloader in
1414
;;
1515
ELILO) CHECK_CONFIG_FILES=( ${CHECK_CONFIG_FILES[@]} /etc/elilo.conf )
1616
;;
17+
PPC) CHECK_CONFIG_FILES=( ${CHECK_CONFIG_FILES[@]} /etc/lilo.conf /etc/yaboot.conf)
18+
;;
1719
*) BugError "Unknown bootloader ($myBOOTloader) - ask for sponsoring to get this fixed"
1820
;;
1921
esac

usr/share/rear/prep/default/50_guess_bootloader.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ for disk in /sys/block/* ; do
1212
blockd=${disk#/sys/block/}
1313
if [[ $blockd = hd* || $blockd = sd* || $blockd = cciss* || $blockd = vd* || $blockd = xvd* ]] ; then
1414
devname=$(get_device_name $disk)
15+
16+
# Check if devname contains a PPC PreP boot partition (ID=0x41)
17+
if $(file -s $devname | grep ID=0x41 >/dev/null) ; then
18+
echo "PPC" >$VAR_DIR/recovery/bootloader
19+
return
20+
fi
21+
1522
dd if=$devname bs=512 count=4 | strings > $TMP_DIR/bootloader
1623
grep -q "EFI" $TMP_DIR/bootloader && {
1724
echo "EFI" >$VAR_DIR/recovery/bootloader
@@ -29,4 +36,3 @@ for disk in /sys/block/* ; do
2936
cat $TMP_DIR/bootloader >&2
3037
fi
3138
done
32-

0 commit comments

Comments
 (0)