<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">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.<br>
      <br>
      Thanks!<br>
      <br>
      I have also tried to make a symlink to /home and that works as
      well.<br>
      <br>
      Dne 14.06.2018 v 10:26 Lindgren Fredrik napsal(a):<br>
    </div>
    <blockquote type="cite"
cite="mid:VI1PR0401MB2560660F276E2DA33F89048A8C7D0@VI1PR0401MB2560.eurprd04.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <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
                style="font-size:11pt" face="Calibri, sans-serif"
                color="#000000"><b>Från:</b> Dnsmasq-discuss
                <a class="moz-txt-link-rfc2396E" href="mailto:dnsmasq-discuss-bounces@lists.thekelleys.org.uk"><dnsmasq-discuss-bounces@lists.thekelleys.org.uk></a>
                för Geert Stappers <a class="moz-txt-link-rfc2396E" href="mailto:stappers@stappers.nl"><stappers@stappers.nl></a><br>
                <b>Skickat:</b> den 14 juni 2018 09:40<br>
                <b>Till:</b> <a class="moz-txt-link-abbreviated" href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk">dnsmasq-discuss@lists.thekelleys.org.uk</a><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>
                    <a class="moz-txt-link-abbreviated" href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
                    <a
                      href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss"
                      id="LPlnk815252" class="OWAAutoLink"
                      previewremoved="true" moz-do-not-send="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" 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);"
                        cellspacing="0">
                        <tbody>
                          <tr style="border-spacing: 0px;" valign="top">
                            <td
                              id="TextCell_15289642652520.14001803608560115"
                              colspan="2" style="vertical-align: top;
                              position: relative; padding: 0px; display:
                              table-cell;">
                              <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;"
                                  moz-do-not-send="true">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>
      <!--'"--><br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Dnsmasq-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a>
<a class="moz-txt-link-freetext" href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>