From owner-freebsd-questions@FreeBSD.ORG Mon Dec 10 21:41:25 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45F4916A419 for ; Mon, 10 Dec 2007 21:41:25 +0000 (UTC) (envelope-from royce@alaska.net) Received: from iris.acsalaska.net (iris.acsalaska.net [209.112.173.229]) by mx1.freebsd.org (Postfix) with ESMTP id E4E1E13C45A for ; Mon, 10 Dec 2007 21:41:24 +0000 (UTC) (envelope-from royce@alaska.net) Received: from [192.168.254.100] (209-112-210-212-rb1.nwc.dsl.dynamic.acsalaska.net [209.112.210.212]) by iris.acsalaska.net (8.14.1/8.14.1) with ESMTP id lBAL7clB051910; Mon, 10 Dec 2007 12:07:38 -0900 (AKST) (envelope-from royce@alaska.net) Message-ID: <475DAAB0.80702@alaska.net> Date: Mon, 10 Dec 2007 12:08:00 -0900 From: Royce Williams User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-ACS-Spam-Status: no X-ACS-Scanned-By: MD 2.63; SA 3.2.3; spamdefang 1.122 Subject: does sysinstall's "Upgrade" ever use the local system's shell? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Dec 2007 21:41:25 -0000 Question: Does the sysinstall "Upgrade" option have a dependency on the local system's sh at any time during the install? Details: I have a system that I'm trying to rescue. It has a mix of 6.2-SECURITY and 6.3-BETA components due to a failure during the freebsd-update minor-upgrade procedure. After some analysis and help from cperciva, we think that this was due to possible filesystem errors that have since been corrected. On Colin's recommendation, to repair the system, I am not relying on anything local to the system and instead, using sysinstall's "upgrade" option from CD to upgrade 6.3-RC1. Somewhere during or after the backup of /etc, I get this dialog: "Hmmm! I couldn't move the old kernel over! Do you want to treat this as a big problem and abort the upgrade? Due to the way that this upgrade process works, you will have to reboot and start over from the beginning. Select Yes to reboot now" The verbose upgrade output ends here, with this error: /mnt/stand/usbdevs /mnt/stand/dhclient-script 4330 blocks /libexec/ld-elf.so.1: sh: Undefined symbol "__sbmaskrune" This is the exactly the same error that I get when trying to run the local system's sh. I'm pretty sure that the sh that comes on the 6.3-RC1 CD is OK. Is the installUpgrade.c system(mv) call here: if (system("mv /boot/kernel /boot/kernel.prev")) { if (!msgYesNo("Hmmm! I couldn't move the old kernel over! Do you want to\n" "treat this as a big problem and abort the upgrade? Due to the\n" "way that this upgrade process works, you will have to reboot\n" "and start over from the beginning. Select Yes to reboot now")) systemShutdown(1); ... managing to invoke the local shell instead of the one on the CD? Not knowing any better, if local binaries are being called for some part of the upgrade, that would be a Bad Thing and I should open a PR. Royce -- Royce D. Williams - IP Engineering, ACS http://www.tycho.org/royce/ - PGP: 3FC087DB/1776A531 We are called to be architects of the future, not its victims. -Fuller