[klibc] Query regarding initramfs
Andreas Jellinghaus
aj at ciphirelabs.com
Fri Feb 18 03:17:24 PST 2005
Hi Rachita,
you need to mount something to /newroot.
the run-init.c in klibc expects that this has already been done.
so insert a mount() call somewhere in the main() function, for example
mount("/dev/hda1","/newroot","ext2",MS_RDONLY,NULL);
should work (untested).
or add /bi/mount and all libs used by it to the initramdisk,
and write an init that first calls mount, and then calls run-init.
but adding a single function call to mount might be easier :-)
Good luck!
Regards, Andreas
--
---------------------[ Ciphire Signature ]----------------------
From: aj at ciphirelabs.com signed email body (409 characters)
Date: on 18 February 2005 at 11:17:39 UTC
To: rachitako at in.ibm.com, klibc at zytor.com
----------------------------------------------------------------
: Ciphire has secured this email against identity theft.
: Free download at www.ciphire.com. The garbled lines
: below are the sender's verifiable digital signature.
----------------------------------------------------------------
00fAAAAAEAAADTzhVCmQEAAA8DAAIAAgACACCFlK4A+54we7zwPJsjFBflkYBMj+
KIfUWI8cEb4zJitwEAjuLZDHPnOxRgKfQyXaVwrQqQB78iLphbN7mW+8mUnEEj7t
/f5paMmfsuXS5AoYMPhTD1tfhmCAhipsJPUwN3Vw==
------------------[ End Ciphire Signed Message ]----------------
More information about the klibc
mailing list