Create a small background process in %pre. E.g. %pre mount whatever to get my / if not mounted mkdir /tmp/ssh cp /mountpoint/etc/ssh/* /tmp/ssh umount /mountpoint while : do if [ -d /mnt/sysimage/etc/ssh ] then sleep 10 # let ssh rpm finish any post work cp -f /tmp/ssh/* /mnt/sysimage/etc/ssh break fi sleep 1 done & This will loop forever until /mnt/sysimage/etc/ssh exists as part of the ssh rpm install. Then the files will be copied over. I am doing something similar for remote monitoring. > -----Original Message----- > From: kickstart-list-admin@xxxxxxxxxx > [mailto:kickstart-list-admin@xxxxxxxxxx] On Behalf Of Crow69 > aka thedude > Sent: Monday, December 01, 2003 4:52 PM > To: kickstart-list@xxxxxxxxxx > Subject: preinstall section - how to backup ssh keys? > > > I'm trying to backup the ssh keys on a server to be > rekickstarted but I am > having trouble. Can someone suggest a "pre" and "post" > section to backup > the keys? > > Right now i'm trying to backup the keys to /tmp during the > "pre" section and > then copy them back in the "post" section. But, the files > don't seem to be > copied: > pre section: > /bin/mkdir /tmp/sshkeys > /bin/cp /etc/ssh/ssh_host* /tmp/sshkeys > > post section: > /bin/cp -rp /tmp/sshkeys /root > cp /root/sshkeys/* /etc/ssh > > Can anyone tell me why the above is not backing up the ssh > keys? I don't > think it even copies the original sshkeys to /tmp/sshkeys. > > Jeff > > _________________________________________________________________ > Groove on the latest from the hot new rock groups! Get > downloads, videos, > and more here. > http://special.msn.com/entertainment/wiredform> usic.armx > > > > _______________________________________________ > > Kickstart-list mailing list > Kickstart-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/kickstart-list >