Pour l'utilisateur tu passes un -p motdepasse ou un -p md5dumotdepasse ?
Sinons tu peux faire :
useradd toto
echo "toto" | passwd --stdin toto
Sinons tu peux faire :
useradd toto
echo "toto" | passwd --stdin toto
Comme explique dans la page de manuel. useromd -p prend un mot de passe chiffré. Pas un mot de passe en clair.L'utilisateur est bien crée mais avec un mauvais mot de passe.
chvt 3
exec < /dev/tty3 > /dev/tty3
echo "--Static Network Configuration--"
echo "Please enter ip address for this machine."
read IPADDR
chvt 1
exec < /dev/tty1 > /dev/tty1
Ca me plante l'install.[... tronqué]
# Network information
network --device eth1 --bootproto static --ip 192.168.157.1 --netmask 255.255.255.0 --hostname WIFIOCB --onboot yes
#########################################################################
#########################################################################
#### Post install Script
%post --nochroot
# Trace de linstall
exec &>/root/postinstall.log
echo -n "Debut PostInstall : "; date
set -x
#
echo ""
echo "Debut %post section kickstart install"
echo ""
# Montage du cdROM
mkdir -p /mnt/temp
mount /tmp/Config /mnt/temp
# Modification IP/Hostname
myip=`/sbin/ifconfig eth0 | grep "inet addr" | cut -f2 --delimiter=: | cut -f1 --delimiter=" "`
myhostname=`/usr/bin/host $myip | cut -f5 --delimiter=" " | awk -F'.' '{print $1"."$2"."$3"."$4}'`
mynetwork=`/bin/ipcalc $myip --network 255.255.255.192 | cut -f2 --delimiter="="`
mygateway=`echo $mynetwork | awk -F'.' '{print $1"."$2"."$3"."$4+1}'`
cat << EOF >> /root/euu.log
NETWORKING=$myip
HOSTNAME=$myhostname
GATEWAY=$mygateway
EOF
#########################################################################
#### Fedora updates
### add third party repositories to yum
cp /tmp/Config/livna.repo /etc/yum.repos.d/
cp /tmp/Config/dag.repo /etc/yum.repos.d/
cp /tmp/Config/freshrpms.repo /etc/yum.repos.d/
rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY
rpm --import http://freshrpms.net/packages/RPM-GPG-KEY.txt
cp /tmp/Config/html/* /var/www/html/
#### Cron Neutralizing
mv /etc/crontab /etc/crontab.old
crontab -l > /tmp/cron
echo "0 */2 * * * /root/rsync-backup" >> /tmp/cron
crontab /tmp/cron
### Boot active
/sbin/chkconfig chilli on
/sbin/chkconfig dhcpd on
/sbin/chkconfig httpd on
/sbin/chkconfig named on
/sbin/chkconfig radiusd on
/sbin/chkconfig postfix on
echo "Serveur installe..."
#
set +x
echo -n "Fin PostInstall : "; date
#############################################################################################
### end of installation process
umount /mnt/temp
#############################################################################################
Voila donc avec le network sans ou avec rien n'y fait il ne me pose jamais la question.C'est normal qu'il ne te pose pas la question tu lui donnes la reponse !!# Network information
network --device eth1 --bootproto static --ip 192.168.157.1 --netmask 255.255.255.0 --hostname WIFIOCB --onboot yes
#########################################################################
Il faudrait donc que tu travaille en relatif de /mnt/sysimage.%post --nochroot
Je trouve plus simple de travailler sans cette option.--nochroot
Allows you to specify commands that you would like to run outside of the chroot environment.
The following example copies the file /etc/resolv.conf to the file system that was just installed.%post --nochroot cp /etc/resolv.conf /mnt/sysimage/etc/resolv.conf