From ce807ca7610be8bf72ed6e3658723ee65e3b6635 Mon Sep 17 00:00:00 2001 From: neil Date: Fri, 19 Sep 2014 02:20:57 +0000 Subject: [PATCH] Set IoErr when returning from internalBootLock() if the mountlist is empty or the selected BootNode can't be mounted. Its caller, internalBootCliHandler(), needs IoErr set to know if a volume is not bootable. This should fix the infamous "Please insert volume SYS" bug (it does for me). git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@49648 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- rom/dos/cliinit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rom/dos/cliinit.c b/rom/dos/cliinit.c index 5f36c7b9e9..156b6074ee 100644 --- a/rom/dos/cliinit.c +++ b/rom/dos/cliinit.c @@ -381,6 +381,7 @@ static BPTR internalBootLock(struct DosLibrary *DOSBase, struct ExpansionBase *E if (bn == NULL) { ReleaseSemaphore(&IntExpBase(ExpansionBase)->BootSemaphore); + SetIoErr(ERROR_OBJECT_NOT_FOUND); return BNULL; } @@ -389,6 +390,7 @@ static BPTR internalBootLock(struct DosLibrary *DOSBase, struct ExpansionBase *E if (!mp) { ReleaseSemaphore(&IntExpBase(ExpansionBase)->BootSemaphore); + SetIoErr(ERROR_OBJECT_WRONG_TYPE); return BNULL; } -- 2.11.4.GIT