Improve error message in case the initrd is too big.

This commit is contained in:
Jonas 'Sortie' Termansen 2013-11-11 15:25:47 +01:00
parent f8e7553187
commit 951ecb625b
1 changed files with 3 additions and 1 deletions

View File

@ -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();