From 951ecb625bb2efb8971afd741f7fec93cd2b33cd Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Mon, 11 Nov 2013 15:25:47 +0100 Subject: [PATCH] Improve error message in case the initrd is too big. --- sortix/kernel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sortix/kernel.cpp b/sortix/kernel.cpp index 9570847a..c4fc7075 100644 --- a/sortix/kernel.cpp +++ b/sortix/kernel.cpp @@ -478,7 +478,9 @@ static void BootThread(void* /*user*/) // Install the initrd into our fresh RAM filesystem. if ( !InitRD::ExtractFromPhysicalInto(initrd, initrdsize, droot) ) - Panic("Unable to extract initrd into RAM root filesystem."); + Panic("Unable to extract initrd into RAM root filesystem. You machine " + "needs more memory to boot using this initrd, as a rule of thumb " + "you need twice as much memory as the size of the initrd device."); // We no longer need the initrd, so free its resources. InitRD::Delete();