sysinstall flakey after PXE booting 5.3 / AMD64
Erik Norgaard
norgaard at locolomo.org
Fri Nov 26 03:18:57 PST 2004
allan at stokes.ca wrote:
> I wasn't able to discover much in the "holographic console". That console
> has rm but not ls. It has ifconfig but not netstat. I can cd into /stand
> but hardly any other directory listed in the PATH variable. Next time
> I'll try typing xyzzy to see if more commands materialize.
>
> What seems clear is that sysinstall starts sick and becomes sicker. I've
> repeated this drill several times with consistently depressing results.
>
> Where I'm at now is wondering if I should give up, dig the server out of
> the network closet, and hang a CDROM off the side (hangs head in shame).
> Is sysinstall not yet quite up to the job, or have I missed a few specs of
> magic pixie dust in my loader.conf configuration?
I have been messing with pxeboot lately on i386 though. I don't know
what's on the bootonly iso, but usually there is a memory file system
that is mounted as root containing the binaries. OpenBSD (AFAIK) does
not support (FBSD) memory disks, so if you want to pook around you
better fire up a FBSD.
Some tricks I have learned along the way: It's neat to have init with
your memory disk image also. You can toggle wether init or sysinstall is
started setting init_path in loader.conf. If /etc/rc is not present for
init you will be offered to start a shell, then you can manually try and
debug the system if hardware is causing trouble.
The best documentation for sysinstall is ... the source ... many
variables are not documented, I found some of the variables from the
configuration menu by grepping for the menu items in the source.
sysinstall can read an installation script if it's called install.cfg
and is in / or /stand. It should(?) be posible to set any variable set
in the interactive menu.
The PATH environment variable appears to be hardcoded (install.c):
setenv("PATH", "/bin:/sbin:/usr/bin:/usr/sbin:/stand:"
"/mnt2/stand:/mnt2/bin:/mnt2/sbin:/mnt2/usr/bin:/mnt2/usr/sbin", 1);
But, I must admit that sysinstall would not find ifconfig if not in the
same directory as sysinstall itself.
Well, if you need to get work done now, it is probably faster just to
install from CD as usual, but pxeboot is too cool to give up just
because sysinstall is causing troubles :-)
BTW, I have messed arround so much that I eventually decided to
docuement my yet unsuccesfull attempts to install (at least so I can
repeat the process to the same state of lack of success :-).
I don't know if my document is any better than the others you can find
on the net: www.daemonsecurity.com/pxe/
Cheers, Erik
--
Ph: +34.666334818 web: www.locolomo.org
S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt
Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9
Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2
More information about the freebsd-questions
mailing list