NIS map for locale

2007-12-25 11:05:00

Thanks to Mr. Sean Quaint for giving me the exact solution.

The mistake I did was as follows: in /var/adm/Makefile

                | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/locale; \

and the correct answer is

                | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/locale.byname; \

The summary of the solution :

Edit /var/adm/Makefile, and do the following changes

---------------------------------------------------------------------------

all: passwd group hosts ethers networks rpc services protocols \

        netgroup bootparams aliases publickey netid netmasks c2secure \

        timezone auto.master auto.home auto.direct locale

locale.time: $(DIR)/locale

        -@if [ -f $(DIR)/locale ]; then \

                sed -e "/^#/d" -e s/#.*$$// $(DIR)/locale \

                | awk '{for (i = 2; i <=NF; i++ ) print $$i, $$0}' \

                | $(MAKEDBM) - $(YPDBDIR)/$(DOM)/locale.byname; \

                touch locale.time; \

                echo "Updated locale"; \

                if [ ! $(NOPUSH) ]; then \

                        $(YPPUSH) locale.time; \

                        echo "Pushed locale"; \

                else \

                : ; \

                fi \

        else \

                echo "Couldn't find $(DIR)/locale"; \

        fi

locale: locale.time

---------------------------------------------------------------------------

and recreate the NIS maps:

# cd /var/yp ; make

and the system's NIS map for locale is working fine.

Jagadeesh. V

sunsrv@blr.cmc.net.in wrote:

> I am trying to do JumpStart Installation with NIS. I need to setup NIS

> locale map. I edited /var/yp/Makefile and added an entry "locale" in

> "all" list. Also, did the required other modifications in Makefile.

>

> the /etc/locale looks like

> rmn en_US

> amit C

>

> where rmn is the NIS domainname, and amit is the name of the auto

> installation client. Then,

> # cd /var/yp ; make locale

> works without any errors.

>

> At the client's ok prompt, if we say

> ok> boot net - install

> It takes all information for system configuration like hostname, ip-addr,

> ethernet addr, bootparams, timehost etc, except locale.

> It asks us to select the locale, and then the installation continues

> without any errors. If I use the sysidcfg file, the locale is taken

> without any problem.

>

> My problem is with NIS, and the question is how to create an NIS locale

> map ?

>

> Any info will be of extreme help.

> TIA.

>

> Jagadeesh.

S

U BEFORE POSTING please READ the FAQ located at

N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq

. and the list POLICY statement located at

M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy

A To submit questions/summaries to this list send your email message to:

N sun-managers@ececs.uc.edu

A To unsubscribe from this list please send an email message to:

G majordomo@codeprof.ececs.uc.edu

E and in the BODY type:

R unsubscribe sun-managers

S Or

. unsubscribe sun-managers original@subscription.address

L To view an archive of this list please visit:

I http://www.latech.edu/sunman.html

S

T

Comments

Got something to say?

You must be logged in to post a comment.