[Voyage-linux] Questions with DHCP Client (dhcp3?? ) && Asterisk -- Unable to "remountro"
Kim-man 'Punky' TSE
(spam-protected)
Fri Aug 13 12:42:19 HKT 2010
Hi Matt,
Using tmpfs (or VOYAGE_SYNC_DIRS way) does not modify the underlying directories. It uses "mount -bind" mechanism to
achieve rw on ro mounts. Before reboot, the modifications would be synchronized back from tmpfs to disk. In this mode,
it may create a number of mount points and it does not work for a single file.
Use ro/rw way, your directory will be moved to /ro. and the existing one becomes a symlink to /lib/init/rw. At boot
the content of /ro will be moved to /lib/init/rw. This is a legacy feature during 0.1 to 0.5.2. This mode work for
both file and directory. It does not create extra mount point and does not support sync'd back to /ro before reboot (of
course you can implement it).
For asterisk, you can look at the following script, which is used to generate voyage one distro. So yes, voyage-one
uses tmpfs to hold some asterisk directories. There is a line showing you what directories to be put in
VOYAGE_SYNC_DIRS in /etc/default/voyage-util.
http://svn.voyage.hk/repos/voyage/branches/voyage-live/0.6.6/config/chroot_local-hooks/099-one
Regards,
Punky
On 8/13/2010 12:06 PM, Matt Signorello wrote:
> Hey Punky,
>
> Thanks for your reply. I will attempt the method you outlined for the
> DHCP client. As of now, I do have it working in tmpfs.. would you be
> able to elaborate how your method differs from just adding
> /var/lib/dhcp3 into the "tmpfs" voyage-util?
>
> Regarding Asterisk.. I was able to install the Asterisk 1.6 package
> using apt-get.. It did install, and it was running. While Voyage One
> looks exciting, I wanted to attempt to run the system with limited
> extras (specifically no gui so I could code it by hand) I actually
> co-own a company that makes embedded PBX systems (my partner used
> Slackware as a base) and we wrote a drag and drop GUI for Asterisk..
> but this being my own personal system and not really having as much
> hands on experience as I would like... i wanted to try and get my
> hands a little dirty.
>
> Do you have any suggestions for this? Is there a Voyage specific
> package that I have missed? Would you suggest I compile from source
> using the dev environment? If so I would like to make an Asterisk 1.4
> since 1.6 has been a hog of system resources.
>
> Thanks again for a great distribution!
>
> -Matt
>
> On Thu, Aug 12, 2010 at 10:46 PM, Kim-man 'Punky' TSE
> <punkytse at punknix.com> wrote:
>> Hi Matt,
>>
>> In the coming voyage 0.7, dhcp-client will be used. In this case, we will
>> use the legacy rw/ro mechanism. The latest voyage-utils should come with a
>> tools for you to make the link.
>>
>> /usr/local/sbin/voyage-rwfile.sh create /var/lib/dhcp3
>>
>> such that, it moves your existing /var/lib/dhcp3 to /ro/var/lib/dhcp3, make
>> a symlink /var/lib/dhcp3 -> /lib/init/rw/var/lib/dhcp3. At boot, all
>> files and directories will be copied from /ro to /lib/init/rw.
>>
>> The drawback of this method is that all files under
>> /lib/init/rw/var/lib/dhcp3 will be lost after reboot. I believe it is OK
>> for dhcp lease info.
>>
>> For asterisk issue, did you use Voyage ONE or you make your own?
>>
>> Regards,
>> Punky
>>
>> On 8/13/2010 8:13 AM, Matt Signorello wrote:
>>> Hello,
>>>
>>> First I would like to say that this is a GREAT distro and EXACTLY what
>>> I have been looking for in a compact distribution.. THANKS!
>>>
>>> What is the stock DHCP client? I have properly configured my
>>> interfaces file however I was not able to get any kind of IP address
>>> automatically until I installed the "dhcp3-client" package. However
>>> the default package writes the lease file to /var/lib/dhcp3 and it
>>> forces / to become rw. I have managed to work around this by creating
>>> a tempfs in /etc/default/voyage-util for /var/lib/dhcp3.. I was
>>> curious if this was the right thing or if I am missing something
>>> obvious.
>>>
>>> I have a similar situation with Asterisk making / unable to me
>>> remounted as read only at boot. I have to kill asterisk then remountro
>>> and then start Asterisk again.. I thought voyage linux was very much a
>>> part of a PBX platform (VoyageOne) so I was surprised to see this
>>> behavior.. Again, am I missing something?
>>>
>>> Thanks,
>>>
>>> Matt
>>>
>>> _______________________________________________
>>> Voyage-linux mailing list
>>> Voyage-linux at list.voyage.hk
>>> http://list.voyage.hk/mailman/listinfo/voyage-linux
>>
>> --
>> Regards,
>> Punky
>>
>> Voyage Solutions (http://solution.voyage.hk)
>> * Embedded Solutions and Systems
>> - Mesh Networking, Captive Portal, IP Surveillance, VoIP/PBX
>> - Network Engineering, Development Platform and Consultation
>>
>>
>>
>>
--
Regards,
Punky
Voyage Solutions (http://solution.voyage.hk)
* Embedded Solutions and Systems
- Mesh Networking, Captive Portal, IP Surveillance, VoIP/PBX
- Network Engineering, Development Platform and Consultation
More information about the Voyage-linux
mailing list