I realized that OSDL bugzilla #960 is about the same thing. The patch should fix this bug, too.
I added a comment to the bugzilla. Ragnar Kjørstad <[EMAIL PROTECTED]> writes: > It seems to me that the default %preinstall scripts can not work > on Red Hat unless heartbeat has been installed on the systems already, > so that /var/lib/heartbeat/cores/ exists prior to installing the > package. > > The patch works ok for us. Will it be applied to the development branch? > > > On Wed, Nov 15, 2006 at 10:06:48PM +0900, Keisuke MORI wrote: >> Hi, >> >> I built the RPMs with the following configure options to specify >> the uid/gid for hacluster/haclient on RedHat Linux, but >> the user is created with the different uid/gid with the RPMs. >> >> ./ConfigureMe rpm --with-group-id=90 --with-ccmuser-id=90 >> >> /etc/passwd is like this. >> hacluster:x:1001:1001::/home/hacluster:/bin/bash >> >> >> The attached patch fixes this. >> >> >> The cause of this problem comes from the default behavior of >> useradd command. There are at least two kinds of 'useradd' for >> Linux and the useradd used by RedHat trys to create the home >> directory by default, therefore it fails during the %pre scripts >> execution because the directory >> '/var/lib/heartbeat/cores/hacluster' does not exist yet. >> >> FYI, the difference of the two useradds is summarized as: >> >> 1) pwdutils version (used by SuSE) >> - it does not create the home directory unless '-m' option is specified. >> - ref. http://rpmfind.net/linux/rpm2html/search.php?query=pwdutils >> >> 2) shadow-utils version (used by RedHat etc.) >> - it depends on /etc/login.defs configuration whether if it >> creates the home directory by default. >> - in the case of RedHat, it's configured to create the home >> directory by default. >> - '-M' option is available if you don't want to create it. >> - ref. http://rpmfind.net/linux/rpm2html/search.php?query=shadow-utils >> >> I hope it helps. >> Thanks, >> -- >> Keisuke MORI >> NTT DATA Intellilink Corporation > > >> _______________________________________________________ >> Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org >> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev >> Home Page: http://linux-ha.org/ > > > -- > Ragnar Kjørstad > Software Engineer > Scali - http://www.scali.com > Scaling the Linux Datacenter > _______________________________________________________ > Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev > Home Page: http://linux-ha.org/ -- Keisuke MORI Open Source Business Division NTT DATA Intellilink Corporation Tel: +81-3-3534-4811 / Fax: +81-3-3534-4814 _______________________________________________________ Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/