Carl,
Thanks for sharing this info with us.
I suggest that you can put another service in
/etc/ocs/ocs-live.d
e.g.
/etc/ocs/ocs-live.d/S07pre-run-dhcp

You can refer to the existing /etc/ocs/ocs-live.d/S06pre-run to write that.

If you make it, please share that with everything again.
Thanks.

Steven.

Carl Karsten wrote:
>> would it be possible to set
>> ocs_daemonon="ssh" and usercrypted via dhcp parameters?
>>
>>     
>
> Here is how to get the parameters from the server to the client.  All that 
> remains is for the code that currently for boot parameters to look here too.  
> If 
> you will direct me to that code, I will propose something.
>
> btw - my personal goal is to be able to use this to fix a hijacked box.  But 
> it 
> will fit in nicely with Clonezilla: put unmodified Clonezilla CD in box, 
> boot, 
> ssh in from 2nd box, run clonezilla.  Which I currently can do with PXE, but 
> it 
> would be nice for those that do not have that setup and just want to boot/run 
> from a physical CD.
>
> #########################################
> # /etc/dhcp3/dhcpd.conf
> option cz_ocs_daemonon code 224 = string;
> option cz_usercrypted code 225 = string;
>
> subnet 192.168.1.0  netmask 255.255.255.0 {
>          range 192.168.1.10 192.168.1.254 ;
>          option cz_ocs_daemonon "ssh";
>          option cz_usercrypted "iTBGwkbHzKDfk";
> }
> #########################################
> # /etc/dhcp3/dhclient.conf
> # Configuration file for /sbin/dhclient, which is included in Debian's
> #       dhcp3-client package.
>
> option cz_ocs_daemonon code 224 = string;
> option cz_usercrypted code 225 = string;
>
> request cz_ocs_daemonon, cz_usercrypted,
>          subnet-mask, ... ;
>
> #########################################
> After a dhclient gets an IP...
>
> ju...@dell30:~$ grep cz /var/lib/dhcp3/dhclient.leases
>    option cz_ocs_daemonon "ssh";
>    option cz_usercrypted "iTBGwkbHzKDfk";
>
> #########################################
> # /etc/dhcp3/dhclient-exit-hooks.d/debug
> # writes out parameters to temp file
>          for i in ....new_cz_ocs_daemonon new_cz_usercrypted
>                  echo $i=\'${!i}\' >> /tmp/dhclient-script.debug
> #############
> ju...@dell30:~$ grep cz /tmp/dhclient-script.debug
> new_cz_ocs_daemonon='ssh'
> new_cz_usercrypted='iTBGwkbHzKDfk'
> #########################################
>
> Carl K
>
> ------------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It is the best place to buy or sell services for
> just about anything Open Source.
> http://p.sf.net/sfu/Xq1LFB
> _______________________________________________
> Clonezilla-live mailing list
> Clonezilla-live@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/clonezilla-live
>   


-- 
Steven Shiau <steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan. http://www.nchc.org.tw
Public Key Server PGP Key ID: 1024D/9762755A
Fingerprint: A2A1 08B7 C22C 3D06 34DB  F4BC 08B3 E3D7 9762 755A


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Clonezilla-live mailing list
Clonezilla-live@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clonezilla-live

Reply via email to