RE: Accessing floppy from %post

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Hi All,
> 
> I want to be able to copy some files from a secure server. I 
> don't want
> to expose those files with nfs, so I was thinking of using scp with an
> identity key, which I would like to store on the Kickstart floppy. The
> problem is, I'm not sure how to access the floppy from the %post
> section. I tried things like
> 
> Mkdir /mnt/floppy; mount /dev/fd0 /mnt/floppy and
> 
> Mount /mnt/sysimage/dev/fd0 /mnt/floppy,
> 
> But these do not seem to work. Could somebody point me in the right
> direction? The HOWTO doesn't seem to explain how to do this.
> 
> Jan
> 
> wyvern@xxxxxxx

IIRC the floppy should be mounted under /mnt/source (look at this directory
once kickstart has begun).  If it is, you should be able to copy files over
in the %post --nochroot environment:

%post --nochroot
cp /mnt/source/ssh-key /mnt/sysimage/root/.ssh/identity (the .ssh directory
must exist, of course).

Forrest





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux