On Thu, Feb 26, 2009 at 12:46 PM, <geoffroy.val...@free.fr> wrote:

> Henrique,
>
> Assuming you are using oscar-6.x.


Yes, I am using the x86_64 stable repo.

Can you tell me if you have the following file:
> /var/lib/oscar/packages/sync-files/post_rpm_nochroot?

That is run to update the /etc/passwd and /etc/group files of a given image.


Yes. It contains:

#!/bin/bash
#
# Copy /etc/{passwd,group,shadow} to /opt/sync_files/templates/image.
# This is required in order to deal with uid/gid mismatches between
# different distros and bug #166.
#
# $Id: post_rpm_nochroot 5452 2006-10-25 17:53:30Z efocht $
# Copyright (c) Erich Focht 2006

IMAGEDIR=$1
if [ -z "$IMAGEDIR" -o ! -d "$IMAGEDIR" ]; then
    echo "Image directory doesn't exist!"
    exit 1
fi

IBASE=`basename $IMAGEDIR`

DIR=/opt/sync_files/templates/image/$IBASE
if [ ! -d $DIR ]; then
    mkdir -p $DIR
fi
cp $IMAGEDIR/etc/passwd $IMAGEDIR/etc/group $DIR
egrep -v '^root:' $IMAGEDIR/etc/shadow > $DIR/shadow

echo "Created templates for image $IBASE in $DIR"
echo "Make sure these files do not contain any user accounts."
echo "Only system account IDs should be included!"


Regards,
--
Henrique Baggio
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Oscar-users mailing list
Oscar-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-users

Reply via email to