[Dnsmasq-discuss] Working on read-only drive

Jan Juráň Jan.Juran_2003 at post.cz
Thu Jun 14 17:06:14 BST 2018


Yeah, I was hoping there would be something like this option. And I was 
trying to google it, but obviously wasn't successfull with that man page.

Thanks!

I have also tried to make a symlink to /home and that works as well.

Dne 14.06.2018 v 10:26 Lindgren Fredrik napsal(a):
>
> dnsmasq has command line option:
>
> -l, --dhcp-leasefile=<path>
>
>
> or in config file:
>
> dhcp-leasefile=/var/lib/misc/dnsmasq.leases
>
>
> if you want more details try "man dnsmasq" or example config file 
> provided (at least on ubuntu)
>
> /Fredrik
>
> ------------------------------------------------------------------------
> *Från:* Dnsmasq-discuss 
> <dnsmasq-discuss-bounces at lists.thekelleys.org.uk> för Geert Stappers 
> <stappers at stappers.nl>
> *Skickat:* den 14 juni 2018 09:40
> *Till:* dnsmasq-discuss at lists.thekelleys.org.uk
> *Ämne:* Re: [Dnsmasq-discuss] Working on read-only drive
> On Wed, Jun 13, 2018 at 08:51:01PM -0400, Weedy wrote:
> > On Wed, Jun 13, 2018 at 10:34:08PM +0200, Jan Jurá?? wrote:
> > >
> > > I have Raspberry Pi 3 with minimal raspbian image based on jessie
> > > and I use it as access point.
> > >
> > > The thing is that I made / read-only to prevent any possible
> > > corruption caused by power loss. Now the problem of course is that
> > > dnsmasq fails to open the lease file for writing and I get the
> > > following error:
> > >
> > > dnsmasq: cannot open or create lease file
> > > /var/lib/misc/dnsmasq.leases: read-only file system
> > >
> > > Now as I see it, I have several options:
> > >
> > >  * disable somehow leasing so that dnsmasq doesn't fail on startup
> > >  * Persuade dnsmasq to search for the lease file elsewhere (I still
> > >    have rw home)
> > >  * Mount the file somehow to RAM disk
> > >
> > > What would be the best solution and how to do it? Any ideas?
> > Stick it on whatever tmpfs is already mounted. Thats what 
> LEDE/OpenWRT do.
>
> How is it done?    A symlink? If yes,  what.
>
>
> Groeten
> Geert Stappers
> -- 
> Leven en laten leven
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> Dnsmasq-discuss Info Page 
> <http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss>
> lists.thekelleys.org.uk
> A list for discussion about the dnsmasq DNS and DHCP server. 
> Configuration, bugs and development. To control spam, only subscribers 
> are allowed to post to the list.
>
>
>
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20180614/a0ec367a/attachment.html>


More information about the Dnsmasq-discuss mailing list