cause genkernel to die if cant write to the DEBUGFILE. remove extra info strings that arent necessary

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@272 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Eric Edgar 20 years ago
parent e7983709d3
commit cd242f5c3d

@ -191,7 +191,10 @@ cache_replace() {
} }
clear_log() { clear_log() {
[ -f "${DEBUGFILE}" ] && echo > "${DEBUGFILE}" if [ -f "${DEBUGFILE}" ]
then
(echo > "${DEBUGFILE}") 2>/dev/null || small_die "Genkernel: Could not write to ${DEBUGFILE}."
fi
} }
gen_die() { gen_die() {

@ -371,22 +371,14 @@ fi
if [ "${BUILD_INITRD}" -eq '1' ] if [ "${BUILD_INITRD}" -eq '1' ]
then then
echo echo
if [ "${KERN_24}" != '1' -a "${CMD_BOOTSPLASH}" != '1' ] print_info 1 'WARNING... WARNING... WARNING...'
then print_info 1 'Additional kernel cmdline arguments that *may* be required to boot properly...'
print_info 1 'The initramfs compiled successfully!' [ "${LVM2}" -eq '1' ] && print_info 1 'add "dolvm2" for lvm2 support at boot time'
else [ "${EVMS2}" -eq '1' ] && print_info 1 'add "doevms" for evms support at boot time'
print_info 1 'The initrd compiled successfully!' [ "${DMRAID}" -eq '1' ] && print_info 1 'add "dodmraid" for dmraid support at boot time'
fi [ "${DMRAID}" -eq '1' ] && print_info 1 ' or "dodmraid=<additional options>"'
echo [ "${UNIONFS}" -eq '1' ] && print_info 1 'add "unionfs" for unionfs support at boot time'
echo [ "${UNIONFS}" -eq '1' ] && print_info 1 ' or "unionfs=<block_device>"'
print_info 1 'WARNING... WARNING... WARNING...'
print_info 1 'Additional kernel cmdline arguments that *may* be required to boot properly...'
[ "${LVM2}" -eq '1' ] && print_info 1 'add "dolvm2" for lvm2 support at boot time'
[ "${EVMS2}" -eq '1' ] && print_info 1 'add "doevms" for evms support at boot time'
[ "${DMRAID}" -eq '1' ] && print_info 1 'add "dodmraid" for dmraid support at boot time'
[ "${DMRAID}" -eq '1' ] && print_info 1 ' or "dodmraid=<additional options>"'
[ "${UNIONFS}" -eq '1' ] && print_info 1 'add "unionfs" for dmraid support at boot time'
[ "${UNIONFS}" -eq '1' ] && print_info 1 ' or "unionfs=<block_device>"'
fi fi
if [ "${CMD_NOINSTALL}" != '1' -a "${SYMLINK}" = '1' ] if [ "${CMD_NOINSTALL}" != '1' -a "${SYMLINK}" = '1' ]

Loading…
Cancel
Save