Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jul 2001 12:09:46 +0100
From:      Ian Dowse <iedowse@maths.tcd.ie>
To:        Peter Pentchev <roam@orbitel.bg>
Cc:        Etienne de Bruin <et@quidel.com>, "'freebsd-hackers@freebsd.org'" <freebsd-hackers@freebsd.org>
Subject:   Re: crunched binary oddity 
Message-ID:   <200107261209.aa21116@salmon.maths.tcd.ie>
In-Reply-To: Your message of "Thu, 26 Jul 2001 12:41:27 %2B0300." <20010726124127.F15667@ringworld.oblivion.bg> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20010726124127.F15667@ringworld.oblivion.bg>, Peter Pentchev writes
:
>On Tue, Jul 24, 2001 at 10:14:09AM -0700, Etienne de Bruin wrote:
>> Greetings.  I crunchgen'd newfs and linked mount_mfs to it (among many other
>> progs), compiled it with success.  And yet when I boot my MFS kernel and try
>> to mount /tmp to mfs, boot_crunch complains that 'mfs' is not compiled into
>> it?
>
>Could it be that it's not boot_crunch, but the kernel complaining?
>What is the exact error message?

When mount(8) invokes a mount_xxx program, it sets argv[0] to the
name of the filesystem (ufs, mfs, nfs etc). Crunched binaries use
the argv[0] name to determine which code to execute, so you need
to add

	ln mount_mfs mfs

to your crunchgen config file to get this to work. Alternatively,
just invoke mount_mfs directly instead of using mount(8).

Ian

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <200107261209.aa21116>