File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff 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 ;;
1921esac
Original file line number Diff line number Diff 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
3138done
32-
You can’t perform that action at this time.
0 commit comments