[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: preserving ssh keys
- From: Eric Doutreleau int-evry fr
- To: kickstart-list redhat com
- Subject: Re: preserving ssh keys
- Date: Thu, 3 Apr 2003 21:43:36 +0200 (CEST)
On Thu, 3 Apr 2003, Philip Rowlands wrote:
Hi
> On Thu, 3 Apr 2003 Eric Doutreleau int-evry fr wrote:
>
> >i m wondering if someone has already written a %pre kickstart script
> >to backup ssh keys in order to put them back in place in the post
> >kickstart script.
>
> Didn't we have this thread three days ago?
>
> https://listman.redhat.com/pipermail/kickstart-list/2003-March/007823.html
> https://listman.redhat.com/pipermail/kickstart-list/2003-April/007842.html
Well i have missed it.
>
>
> No, perhaps we didn't. Try this:
> (untested, might make your computer catch fire)
>
> %pre
> mkdir -p /mnt/ssh
> # if you know where / is, use the next line:
> #mount /dev/hda1 /mnt/ssh
> # if not, use this:
> #mount -L / /mnt/ssh
> cp -a ssh_host_* /tmp
> umount /mnt/ssh
>
> and
>
> %post --nochroot
> mv -f /tmp/ssh_host_* /mnt/sysimage/etc/ssh
>
>
> Cheers,
> Phil
>
Well i will try it and perhaps try to write a more elaborate one.
if it works i will post the result on the list.
Thanks for your answer
>
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list redhat com
> https://listman.redhat.com/mailman/listinfo/kickstart-list
>
--
Eric Doutreleau
I.N.T | Tel : +33 (0) 160764687
9 rue Charles Fourier | Fax : +33 (0) 160764321
91011 Evry France | email : Eric Doutreleau int-evry fr
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]