git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@244
67a159dc-881f-0410-a524-
ba9dfbe2cb84
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(){
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"