From owner-freebsd-hackers Thu Jul 26 4: 9:52 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id A6D8337B406 for ; Thu, 26 Jul 2001 04:09:48 -0700 (PDT) (envelope-from iedowse@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 26 Jul 2001 12:09:46 +0100 (BST) To: Peter Pentchev Cc: Etienne de Bruin , "'freebsd-hackers@freebsd.org'" Subject: Re: crunched binary oddity In-Reply-To: Your message of "Thu, 26 Jul 2001 12:41:27 +0300." <20010726124127.F15667@ringworld.oblivion.bg> Date: Thu, 26 Jul 2001 12:09:46 +0100 From: Ian Dowse Message-ID: <200107261209.aa21116@salmon.maths.tcd.ie> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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