Current File : //proc/self/root/usr/local/jetapps/usr/share/rear/conf/Linux-ppc64le.conf |
REQUIRED_PROGS+=( sfdisk )
PROGS+=(
pseries_platform
nvram
bc
agetty
)
# If not specified have no firmware files in the recovery system on Linux-ppc64le architecture
# except ppc64le Linux is run in BareMetal Mode (PowerNV) where firmware files are needed
# cf. https://github.com/rear/rear/issues/1142#issuecomment-276050900
# test for "${name[*]}" because FIRMWARE_FILES is an array and the test should succeed
# when there is any non-empty array member, (not necessarily the first one):
if [[ $(awk '/platform/ {print $NF}' < /proc/cpuinfo) != PowerNV ]] ; then
# No firmware files when ppc64le Linux is not run in BareMetal Mode (PowerNV):
test "${FIRMWARE_FILES[*]}" || FIRMWARE_FILES=( 'no' )
# grub2-install for powerpc-ieee1275 calls ofpathname, so without it,
# the rescue system can't make the recovered system bootable
REQUIRED_PROGS+=( ofpathname )
if grep -q "emulated by qemu" /proc/cpuinfo ; then
# Qemu/KVM virtual machines don't need bootlist - don't complain if
# it is missing
PROGS+=( bootlist )
else
# PowerVM environment, we need to run bootlist, otherwise
# we can't make the system bpotable. Be strict about requiring it
REQUIRED_PROGS+=( bootlist )
fi
else
PROGS+=( ofpathname bootlist )
fi