Arnar Þórarinsson wrote: >Hi >I'm having a hard time getting the %post section to do what I want to >do, like turning services off and installing RPMs and fonts. > >chkconfig is not found unless I use /mnt/sysimage/sbin/chkconfig and >then it can't find /etc/init.d > >rpm -qa gives a blank output, like no rpms are installed. > >I'm guessing that theres something wrong with my environment ;) > >post section runs as : >%post --nochroot --interpreter=/bin/bash --log=/mnt/sysimage/root/post- >install.log > >/sbin/chkconfig --level 345 telnet off >/mnt/sysimage/sbin/chkconfig --level 345 telnet off > > >System in RHEL WS 4.3 > >what am I doing wrong here ???? > >Regards. > > > Either use as chroot'd environment, or else use --root /mnt/sysimage with rpm. -Philip