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() {
if [ -x /${NEW_ROOT}/mnt/cdrom/cdupdate.sh ]
then
${NEW_ROOT}/mnt/cdrom/cdupdate.sh
if [ "$?" != '0' ]
if [ "${CDROOT}" -eq '1' ]
then
splash 'verbose'
bad_msg "FAILED TO EXECUTE cdupdate.sh"
run_shell
fi
fi
if [ -x /${NEW_ROOT}/mnt/cdrom/cdupdate.sh ]
then
good_msg "Running cdupdate.sh"
${NEW_ROOT}/mnt/cdrom/cdupdate.sh
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(){

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

Loading…
Cancel
Save