<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0"><span style="font-size: 12pt;">dnsmasq has command line option:</span><br>
</p>
<p style="margin-top:0;margin-bottom:0"><span>-l, --dhcp-leasefile=<path></span><br>
</p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>or in config file:</span></p>
<p style="margin-top:0;margin-bottom:0"><span><span>dhcp-leasefile=/var/lib/misc/dnsmasq.leases</span><br>
</span></p>
<div><br>
</div>
if you want more details try "man dnsmasq" or example config file provided (at least on ubuntu)
<div><br>
</div>
<div>/Fredrik<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Från:</b> Dnsmasq-discuss <dnsmasq-discuss-bounces@lists.thekelleys.org.uk> för Geert Stappers <stappers@stappers.nl><br>
<b>Skickat:</b> den 14 juni 2018 09:40<br>
<b>Till:</b> dnsmasq-discuss@lists.thekelleys.org.uk<br>
<b>Ämne:</b> Re: [Dnsmasq-discuss] Working on read-only drive</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">On Wed, Jun 13, 2018 at 08:51:01PM -0400, Weedy wrote:<br>
> On Wed, Jun 13, 2018 at 10:34:08PM +0200, Jan Jurá?? wrote:<br>
> > <br>
> > I have Raspberry Pi 3 with minimal raspbian image based on jessie<br>
> > and I use it as access point.<br>
> > <br>
> > The thing is that I made / read-only to prevent any possible<br>
> > corruption caused by power loss. Now the problem of course is that<br>
> > dnsmasq fails to open the lease file for writing and I get the<br>
> > following error:<br>
> > <br>
> > dnsmasq: cannot open or create lease file<br>
> > /var/lib/misc/dnsmasq.leases: read-only file system<br>
> > <br>
> > Now as I see it, I have several options:<br>
> > <br>
> >  * disable somehow leasing so that dnsmasq doesn't fail on startup<br>
> >  * Persuade dnsmasq to search for the lease file elsewhere (I still<br>
> >    have rw home)<br>
> >  * Mount the file somehow to RAM disk<br>
> > <br>
> > What would be the best solution and how to do it? Any ideas?<br>
> Stick it on whatever tmpfs is already mounted. Thats what LEDE/OpenWRT do.<br>
<br>
How is it done?    A symlink? If yes,  what.<br>
<br>
<br>
Groeten<br>
Geert Stappers<br>
-- <br>
Leven en laten leven<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
Dnsmasq-discuss@lists.thekelleys.org.uk<br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" id="LPlnk815252" class="OWAAutoLink" previewremoved="true">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a>
<div id="LPBorder_GT_15289642652560.31361008115928213" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15289642652500.6366251826158733" role="presentation" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_15289642652520.14001803608560115" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_15289642652520.06629010237685762"></div>
<div id="LPTitle_15289642652520.6853778065077492" style="top: 0px; color: rgb(0, 1, 255); font-weight: 400; font-size: 21px; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15289642652540.2887269084827664" href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank" style="text-decoration: none;">Dnsmasq-discuss Info Page</a></div>
<div id="LPMetadata_15289642652540.49914801700410183" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_semibold, "Segoe UI Semibold", "Segoe WP Semibold", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
lists.thekelleys.org.uk</div>
<div id="LPDescription_15289642652550.7891253750828287" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_semibold, "Segoe UI Semibold", "Segoe WP Semibold", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
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.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
</div>
</span></font></div>
</div>
</div>
</div>
</body>
</html>