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() {

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

Loading…
Cancel
Save