IntroductionDescriptionNote: I start to write this note the first time I tried jumpstart. So, I guess there are some errors. My jumpstart was a Solaris 9, running in Sun Fire V120. RequirementsCheck if you have following services :
Packages :
Hierarchy
MiscSince I want rarpd listen only in my eri1 device, I modify the file /etc/init.d to have : /usr/sbin/in.rarpd eri 1 Prepare the environmentSince I install the jumpstart for both Sol9 and 10, I use main files which comes with the latest version
Do the following command for each CD you have :
Add a client
Don't forget to check if the hardware address is in /etc/ethers Files use by jumpstasrt/etc/ethers0:3:ba:a1:46:d chihiro.j2ee.fimasys.fr This - very simple - file is used by the Reverse ARP (RARP) daemon. The box will receive its IP (resolved from the hostname) from the jumpstart server, via an ARP reply. /etc/bootparamsNote: In this example, I used a wildcard definition. So the same configurations files like sysidcfg are read by all clients. Though, you can use per hostname definition. * root=192.168.10.2:/export/Solaris/5.10/Solaris_10/Tools/Boot \ install=192.168.10.2:/export/Solaris/5.10 \ boottype=:in \ install_config=192.168.10.2:/export/jumpstart \ rootopts=:rsize=32768 \ sysid_config=192.168.10.2:/export/Solaris/5.10
rules, profiles and scriptsThe rules fileDon't forget to run ./check if you change the rules files. Examplehostname chihiro.j2ee.fimasys.fr - v240_sol10_prof fms_finish_sol10 ProfilesExamplev240_sol10_prof install_type initial_install system_type standalone partitioning default cluster SUNWCreq # Following clusters are available : # - SUNWCreq: Core Systeme # - SUNWCuser: End-User # - SUNWCprog: Developer # - SUNWCall: All locale en_US partitioning explicit filesys c1t0d0s0 2048 / filesys c1t0d0s1 1024 /var filesys c1t0d0s2 all overlap # Install bash package SUNWbash add # Install man and manpages package SUNWdoc add package SUNWman add # Install zones and related packages package SUNWadmc add package SUNWadmfr add package SUNWadmfw add package SUNWlur add package SUNWpoolr add package SUNWxwplr add package SUNWxwrtl add package SUNWxwice add package SUNWxwfnt add package SUNWxwplt add package SUNWctpls add package SUNWmfrun add package SUNWj5rt add package SUNWluu add package SUNWluzone add package SUNWpool add package SUNWpoolr add package SUNWzoner add package SUNWzoneu add # Install SSH (server and client) package SUNWsshr add package SUNWsshcu add package SUNWsshdr add package SUNWsshdu add package SUNWsshu add # Install few others packages package SUNWtoo add The begin scriptI never used a begin script at this time. The finish scriptExample#!/bin/sh echo "Setting user profile for root" # set the root password PASSWD=xxxxxxxxx # create a temporary input file cp /a/etc/shadow /a/etc/shadow.orig cp /a/etc/passwd /a/etc/passwd.orig nawk -F: '{ if ( $1 == "root" ) printf"%s:%s:%s:%s:%s:%s:%s:%s:%s\n",$1,passwd,$3,$4,$5,$6,$7,$8,$9 else printf"%s:%s:%s:%s:%s:%s:%s:%s:%s\n",$1,$2,$3,$4,$5,$6,$7,$8,$9 }' passwd="$PASSWD" /a/etc/shadow.orig > /a/etc/shadow nawk -F: '{ if ( $1 == "root" ) printf "%s:%s:%s:%s:%s:%s:%s\n", $1,$2,$3,$4,$5,"/root","/usr/bin/bash" else printf "%s:%s:%s:%s:%s:%s:%s\n", $1,$2,$3,$4,$5,$6,$7 }' /a/etc/passwd.orig > /a/etc/passwd # reset the permissions on the new /etc/shadow file to whatever is was # set to during the install perm=`grep '^/etc/shadow e' /a/var/sadm/install/contents | (read f1 f2 f3 f4 f5 ; echo $f4)` chmod $perm /a/etc/shadow perm=`grep '^/etc/passwd e' /a/var/sadm/install/contents | (read f1 f2 f3 f4 f5 ; echo $f4)` chmod $perm /a/etc/passwd # remove the temporary file rm -f /a/etc/shadow.orig rm -f /a/etc/passwd.orig mkdir /a/root chmod 750 /a/root # set the flag so sysidroot won't prompt for the root password sed -e 's/0 # root/1 # root/' ${SI_SYS_STATE} > /tmp/state.$$ mv /tmp/state.$$ ${SI_SYS_STATE} As you can see, I create the root password, and set the $HOME to /root, $SHELL to /usr/bin/bash The sysidcfg fileExamplesystem_locale=en_US TIMEZONE=Europe/Paris timeserver=time.intranet.fimasys.fr terminal=vt100 network_interface=PRIMARY {netmask=255.255.255.0 protocol_ipv6=no} name_service=DNS {domain_name=fimasys.fr name_server=192.168.1.1 name_server=192.168.1.5} security_policy=NONE |
Welcome to Bruno Bonfils's (aka asyd homepage).