niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Solaris » x86
Using update_drv with jumpstart server?
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
lundman@lundman.net
*nix forums beginner


Joined: 18 Mar 2005
Posts: 18

PostPosted: Mon Jun 19, 2006 6:46 am    Post subject: Re: Using update_drv with jumpstart server? Reply with quote

Ok this one was amusing.

Long time back, we added a line to "postinst" to eject the cdrom, so
that the machine can do the first reboot unsupervised. (and not boot
the jumpstart CD again).

The new machines use sata.

So the eject -f /dev/dsk/c*2 is a bit over-zealous. This would eject
the SATA /a mount as well, so the "last bits not quite yet saved" to
HDD would be lost. Which included my line addition to driver_aliases.
Back to top
lundman@lundman.net
*nix forums beginner


Joined: 18 Mar 2005
Posts: 18

PostPosted: Fri Jun 16, 2006 9:01 am    Post subject: Using update_drv with jumpstart server? Reply with quote

Got a new set of servers in, with have a slightly newer flavour of
Intel gig ethernet. I found on sunsolve how to enable these nics using:

# update_drv -a -i '"pci8086,108c"' e1000g
# ifconfig e1000g0 plumb

and that does work nicely.

Then I moved to fix the jumpstart server to apply this correctly, the
jumpstart x86.miniroot itself was actually easy. gunzip, lofiadm,
modify /etc/driver_aliases, and rebuild it.

The I modified "postinst" script with jumpstart server to append the
same additional line to
/a/etc/driver_aliases, but I find that this fails after reboot. It can
not plumb e1000g0 in network/physical.

If I run the update_drv command (after taking out my driver_aliases
entry, since otherwise it just points out I already have it) it does
work, so clearly update_drv does more than just append to this file.
(truss confirms this).

I have attempted to run "chroot /a update_drv" from postinst, but I was
unable to solve this. (modctl unable to set major number..)

I have attempted to create a /etc/rcS.d/S10nic hoping it would be
executed before svcs run network-physical, but it is not.

What would be the proper way to solve this? I mean, I could add S10nic
to update_drv and force reboot, then the NEXT time it'll be ok, but
that feels a little cheesey.

I could modify network-physical script itself.. but perhaps there is a
cleaner way?
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Fri Nov 21, 2008 6:35 am | All times are GMT
navigation Forum index » *nix » Solaris » x86
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Transfer qmail email account to postfix server tallman Postfix 0 Thu Jun 05, 2008 12:43 pm
No new posts NFS server on Solaris 10 gurgle Solaris 0 Tue Sep 04, 2007 7:05 pm
No new posts Help required for configuring the VPN Server in Linux SHERDIL security 0 Sun Nov 19, 2006 2:22 pm
No new posts Need Help with Program in Perl on a Netware Server fhadzocos@gmail.com Perl 3 Fri Jul 21, 2006 1:57 pm
No new posts Problem while accessing 64 bit Server thru 32 bit client Ganesh Server 0 Fri Jul 21, 2006 1:40 pm

Myspace Layouts | Bad Credit Mortgages | Loans | Agencia de turismo | Web directory
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2561s ][ Queries: 20 (0.1824s) ][ GZIP on - Debug on ]