https://redmine.pfsense.org/https://redmine.pfsense.org/favicon.ico?16780521162016-11-09T14:57:25ZpfSense bugtrackerpfSense - Bug #6906: Issues with /tmp and /var in RAM on 2.4https://redmine.pfsense.org/issues/6906?journal_id=293532016-11-09T14:57:25ZJim Pingle
<ul></ul><p>Checking deeper, <code>pkg info</code> is empty after switching, which explains why the installed packages showed damaged, but also means the system is in a fairly broken state, upgrade-wise.</p>
<p>Additionally, at bootup this is shown:<br /><pre>
pkg: No package(s) matching pfSense-kernel-*
</pre></p> pfSense - Bug #6906: Issues with /tmp and /var in RAM on 2.4https://redmine.pfsense.org/issues/6906?journal_id=293712016-11-10T13:30:08ZJim Pingle
<ul></ul><p>The prompt when booting appears to be due to the fact that /var was not cleaned out when switching to RAM disk, and the other issue may be related as well.</p>
<p>Forcing an unmount of the /var RAM disk shows there are still files in /var, including the package database. The presence of these files makes it fall into the wrong test in pfSense-rc at boot up and it's attempting to mv a directory when it should not. Specifically, this test is evaluating when it should not be: <a class="external" href="https://github.com/pfsense/pfsense/blob/master/src/etc/pfSense-rc#L120">https://github.com/pfsense/pfsense/blob/master/src/etc/pfSense-rc#L120</a></p> pfSense - Bug #6906: Issues with /tmp and /var in RAM on 2.4https://redmine.pfsense.org/issues/6906?journal_id=294402016-11-15T13:29:23ZJim Thompsonjim@netgate.com
<ul><li><strong>Assignee</strong> set to <i>Renato Botelho</i></li></ul> pfSense - Bug #6906: Issues with /tmp and /var in RAM on 2.4https://redmine.pfsense.org/issues/6906?journal_id=302702017-01-02T09:20:04ZRenato Botelhorenato@netgate.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>I've used wrong ticket # in commit log. Relevant commits are:</p>
<p><a class="changeset" title="Ticket #6096: Remove target before try to move, also use mv -f to avoid human interaction" href="https://redmine.pfsense.org/projects/pfsense/repository/2/revisions/9bf6cdc135ddf108bc08f048687130c09cd09f4b">9bf6cdc135ddf108bc08f048687130c09cd09f4b</a> and <a class="changeset" title="Ticket #6096: Add PKG_DBDIR and PKG_CACHEDIR to user environment" href="https://redmine.pfsense.org/projects/pfsense/repository/2/revisions/f09aede6c0f692d93603ad2b3794fe0d78a4cf36">f09aede6c0f692d93603ad2b3794fe0d78a4cf36</a></p>
<p>After changes I couldn't reproduce any problems changing it to use or not MFS /var /tmp</p> pfSense - Bug #6906: Issues with /tmp and /var in RAM on 2.4https://redmine.pfsense.org/issues/6906?journal_id=302892017-01-02T21:48:48ZJim Pingle
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Assigned</i></li></ul><p>On a freshly installed VM I activated the option and when it rebooted, it came up all the way but it shows no packages installed. Rebooting didn't change anything.</p>
<p>When disabling the RAM disk setting, the packages were found again.</p> pfSense - Bug #6906: Issues with /tmp and /var in RAM on 2.4https://redmine.pfsense.org/issues/6906?journal_id=303212017-01-04T08:13:07ZRenato Botelhorenato@netgate.com
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Feedback</i></li></ul><p>The issue was happening on ZFS and should be fixed after <a class="changeset" title="Make sure ZFS partiion is mounted read-write before try to change items in filesystem" href="https://redmine.pfsense.org/projects/pfsense/repository/2/revisions/b712dd529e2445fc20e983815a80a4e8ea109760">b712dd529e2445fc20e983815a80a4e8ea109760</a></p> pfSense - Bug #6906: Issues with /tmp and /var in RAM on 2.4https://redmine.pfsense.org/issues/6906?journal_id=303262017-01-04T10:46:09ZJim Pingle
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Resolved</i></li></ul><p>Works fine on two different systems here, thanks!</p>