does sysinstall's Upgrade ever use the local system's shell?

2007-12-10 Thread Royce Williams
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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Interjet requires warm reboot from 5.x boot loader?

2005-02-27 Thread Royce Williams
When warm/cold booting an Interjet under FreeBSD 5.2.1 or 5.3 (vanilla
installs), kernel loading fails.  The only workaround I've figured out
so far is to reboot from the boot loader OK prompt, as shown below.

I'm not skilled in the hardware troubleshooting arena, so I'm stumped.
I've searched for others with this problem, and they seem to be clearly
related to things like booting from bad floppies, etc -- but my
instinct is that this would mean that booting would always fail.  Also,
I can warm boot without power-cycling (with shutdown, for example) and
I get the same error until I reboot from OK.

I thought that it might be some kind of hard-drive spin-up or delay
issue, but I haven't been able to locate anything in the loader configs
to create a delay to test this theory.

Unfortunately, since cold-booting always fails, this makes the boxes
unusable every time they take a power hit or reboot for some other
reason.

[example session starts]
Console: serial port
BIOS drive A: is disk0
BIOS drive C: is disk1
BIOS 639kB/7168kB available memory

FreeBSD/i386 bootstrap loader, Revision 1.1
([EMAIL PROTECTED], Mon Feb 23 18:35:51 GMT 2004)
Loading /boot/defaults/loader.conf
/boot/kernel/kernel text=0x45da18
elf32_loadexec: archsw.readin failed
/boot/kernel/kernel text=0x45da18
elf32_loadexec: archsw.readin failed
/boot/kernel/kernel text=0x45da18
elf32_loadexec: archsw.readin failed
Unable to load a kernel!
-
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...
/boot/kernel/kernel text=0x45da18
elf32_loadexec: archsw.readin failed
can't load 'kernel'

Type '?' for a list of commands, 'help' for more detailed help.
OK reboot
Rebooting...
Console: serial port
BIOS drive A: is disk0
BIOS drive C: is disk1
BIOS 639kB/64512kB available memory

FreeBSD/i386 bootstrap loader, Revision 1.1
([EMAIL PROTECTED], Mon Feb 23 18:35:51 GMT 2004)
Loading /boot/defaults/loader.conf
/boot/kernel/kernel text=0x45da18 data=0x79550+0x47a2c
syms=[0x4+0x57fa0+0x4+0x6a496]
/boot/kernel/snd_pcm.ko text=0x14d90 data=0x2634+0x10b8
syms=[0x4+0x2d00+0x4+0x3196]
/boot/kernel/snd_sbc.ko text=0x284c data=0x2cc+0x4
syms=[0x4+0x860+0x4+0x894]


 ZD?
 3 3
 3 3  ,,
 3 3 /()`
 3  Welcome to FreeBSD!3 \ \___   / |

[snip]

Can anyone kick me in the right direction?

Royce

--
Royce D. Williams- IP Engineering, ACS
personal: [EMAIL PROTECTED]  - PGP: 3FC087DB/1776A531
work: [EMAIL PROTECTED] - http://www.tycho.org/royce/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]