https://bugzilla.novell.com/show_bug.cgi?id=683140 https://bugzilla.novell.com/show_bug.cgi?id=683140#c2 --- Comment #2 from Giacomo Comes <comes@naic.edu> 2011-03-29 16:41:25 UTC --- (In reply to comment #1)
the user and the group should have been created in the %pre scriptlet.
I have found the issue. I have selected atftp during the installation. /var/log/zypp/history contains: # 2011-03-25 10:16:49 atftp-0.7.0-142.1.i586.rpm installed ok # Additional rpm output: # warning: group tftp does not exist - using root # warning: user tftp does not exist - using root # Updating /etc/sysconfig/atftpd... the scriplet uses useradd and groupadd (rpm pwdutils) but at the time atftp is installed pwdutils is not installed yet, it is installed later. To fix the issue atftp must depend on pwdutils. A quick workaround is to run: 'zypper in --force atfrp' the package is reinstalled and user and group are created correctly.
can you give me the output of 'rpm -qi --qf "%{DISTURL}\n" atftp' and 'rpm -q --scripts atftp'?
rpm is from 11.4 repository, rpm -qi --qf "%{DISTURL}\n" atftp: Name : atftp Relocations: (not relocatable) Version : 0.7.0 Vendor: openSUSE Release : 142.1 Build Date: Fri Feb 18 15:56:45 2011 Install Date: Fri Mar 25 10:16:49 2011 Build Host: build33 Group : System/Daemons Source RPM: atftp-0.7.0-142.1.src.rpm Size : 155226 License: GPLv2+ Signature : RSA/8, Fri Feb 18 15:57:03 2011, Key ID b88b2fd43dbdc284 Packager : http://bugs.opensuse.org URL : ftp://ftp.mamalinux.com/pub/atftp/ Summary : Advanced TFTP Server and Client Description : atftp stands for Advanced Trivial File Transfer Protocol. It is called "advanced", in contrast to others TFTP servers, for two reasons. First, it is intended to be fully compliant with all related RFCs. This includes RFC1350, RFC2090, RFC2347, RFC2348, and RFC2349. Second, atftp is intended for serving boot files to large clusters. It is multithreaded and will eventually support multicast, allowing faster boot of hundreds of machines simultaneously. Authors: -------- Jean-Pierre Lefebvre <helix@step.polymtl.ca> Remi Lefebvre <remi@debian.org> Distribution: openSUSE 11.4 obs://build.opensuse.org/openSUSE:11.4/standard/876267f0dec01cf5882dcf86a3e52ec9-atftp rpm -q --scripts atftp: preinstall scriptlet (using /bin/sh): # This group/user is shared with tftp, so please # keep this in sync with tftp.spec # add group /usr/sbin/groupadd -r tftp 2>/dev/null || : # add user /usr/sbin/useradd -c "TFTP account" -d /srv/tftpboot -G tftp -g tftp \ -r -s /bin/false tftp 2>/dev/null || : # fix sysconfig to get new defaults on Update if [ -f /etc/sysconfig/atftpd ]; then /usr/bin/sed -i -e "s@^\(ATFTPD_OPTIONS=\"--daemon \"\)@#\1@" /etc/sysconfig/atftpd /usr/bin/sed -i -e "s@^\(ATFTPD_DIRECTORY=\"/tftpboot\"\)@#\1@" /etc/sysconfig/atftpd fi postinstall scriptlet (using /bin/sh): PNAME=atftpd SUBPNAME= TEMPLATE_DIR=/var/adm/fillup-templates SYSC_TEMPLATE=$TEMPLATE_DIR/sysconfig.$PNAME$SUBPNAME SD_NAME="" if [ -x /bin/fillup ] ; then if [ -f $SYSC_TEMPLATE ] ; then echo "Updating /etc/sysconfig/$SD_NAME$PNAME..." mkdir -p /etc/sysconfig/$SD_NAME touch /etc/sysconfig/$SD_NAME$PNAME /bin/fillup -q /etc/sysconfig/$SD_NAME$PNAME $SYSC_TEMPLATE fi else echo "ERROR: fillup not found. This should not happen. Please compare" echo "/etc/sysconfig/$PNAME and $TEMPLATE_DIR/sysconfig.$PNAME and" echo "update by hand." fi preuninstall scriptlet (using /bin/sh): test -n "$FIRST_ARG" || FIRST_ARG=$1 if test "$FIRST_ARG" = "0" ; then test -f /etc/sysconfig/services && . /etc/sysconfig/services if test "$YAST_IS_RUNNING" != "instsys" -a "$DISABLE_STOP_ON_REMOVAL" != yes ; then for service in atftpd ; do /etc/init.d/$service stop > /dev/null done fi fi postuninstall scriptlet (using /bin/sh): test -n "$FIRST_ARG" || FIRST_ARG=$1 if test "$FIRST_ARG" -ge 1 ; then test -f /etc/sysconfig/services && . /etc/sysconfig/services if test "$YAST_IS_RUNNING" != "instsys" -a "$DISABLE_RESTART_ON_UPDATE" != yes ; then for service in atftpd ; do /etc/init.d/$service try-restart > /dev/null || : done fi fi /sbin/insserv /etc/init.d -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.