Newbie problem with kickstart post section

Alain TAUCH anaconda at maisondubonheur.com
Tue May 23 08:26:05 UTC 2006


On Tue, 23 May 2006 10:25:06 -0700
Neerad Niksun [Neerad] wrote:

[...]
Neerad> Let me give you an example.
Neerad> 
Neerad> I needed to create a user in my post section. So this is what i did.
Neerad> 
Neerad> cp -f /mnt/sysimage/etc/passwd /etc/passwd
Neerad> cp -f /mnt/sysimage/etc/group /etc/group
Neerad> cp -f /mnt/sysimage/etc/shadow /etc/shadow
Neerad> /mnt/sysimage/usr/sbin/useradd <user_name>  -d <usr_home_path> -s
Neerad> /bin/bash -g <gorup> -G <group_member>, <group_member>.....
Neerad> cp -f /etc/passwd /mnt/sysimage/etc/passwd
Neerad> cp -f /etc/group /mnt/sysimage/etc/group
Neerad> cp -f /etc/shadow /mnt/sysimage/etc/shadow

The chroot is precisely here to avoid such ugly stuff

[...]
Neerad> 2) In post section as described under.
Neerad> 
Neerad> mkdir /tmp/cd
Neerad> mount /tmp/cdrom /tmp/cd
Neerad> 
Neerad> /mnt/sysimage/bin/rpm -i /tmp/cdrom /tmp/cd/<your_package_name>

good luck with this.

Neerad> Hope this helps.

It won't for sure. But it should help you fix your kickstarts ;-)

Neerad> 
Neerad> Neerad Mittal
Neerad> Lead Software Engineer

-- 
Alain 




More information about the Kickstart-list mailing list