Fix to let the /mnt/cdrom/cdupdate.sh script run just before the chroot

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

@ -473,16 +473,22 @@ verbose_kmsg() {
cdupdate() { cdupdate() {
if [ -x /${NEW_ROOT}/mnt/cdrom/cdupdate.sh ] if [ "${CDROOT}" -eq '1' ]
then
${NEW_ROOT}/mnt/cdrom/cdupdate.sh
if [ "$?" != '0' ]
then then
splash 'verbose' if [ -x /${NEW_ROOT}/mnt/cdrom/cdupdate.sh ]
bad_msg "FAILED TO EXECUTE cdupdate.sh" then
run_shell good_msg "Running cdupdate.sh"
fi ${NEW_ROOT}/mnt/cdrom/cdupdate.sh
fi if [ "$?" != '0' ]
then
splash 'verbose'
bad_msg "FAILED TO EXECUTE cdupdate.sh"
run_shell
fi
else
good_msg "no cdupdate.sh script found .... skipping"
fi
fi
} }
rundebugshell(){ rundebugshell(){

@ -486,6 +486,9 @@ else
mkdir -p ${NEW_ROOT}/tmp/.initrd mkdir -p ${NEW_ROOT}/tmp/.initrd
fi fi
# Execute script on the cdrom just before boot to update things if necessary
cdupdate
if [ "${SUBDIR}" != '' -a -e "${CHROOT}/${SUBDIR}" ] if [ "${SUBDIR}" != '' -a -e "${CHROOT}/${SUBDIR}" ]
then then
good_msg"Entering ${SUBDIR} to boot" good_msg"Entering ${SUBDIR} to boot"

Loading…
Cancel
Save