<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=2333&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / /etc/udev/rules.d/70-persistent-net.rules not regenerating [SOLVED]]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2333</link>
		<description><![CDATA[The most recent posts in /etc/udev/rules.d/70-persistent-net.rules not regenerating [SOLVED].]]></description>
		<lastBuildDate>Tue, 06 Apr 2021 16:27:41 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: /etc/udev/rules.d/70-persistent-net.rules not regenerating [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=28892#p28892</link>
			<description><![CDATA[<p>It looks like this problem is reoccurring with chimera. <br />The line</p><div class="codebox"><pre><code>ls /run/udev/tmp-rules* &amp;&amp; { sleep 5; /lib/udev/udev-finish; } &amp;</code></pre></div><p>is missing in </p><div class="quotebox"><blockquote><div><p>/etc/init.d/eudev</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (devujan)]]></author>
			<pubDate>Tue, 06 Apr 2021 16:27:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=28892#p28892</guid>
		</item>
		<item>
			<title><![CDATA[Re: /etc/udev/rules.d/70-persistent-net.rules not regenerating [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17535#p17535</link>
			<description><![CDATA[<p>Anyone knows if a patch or pull-request was made regarding this solution ?<br />The source to make that is <a href="https://github.com/anto/eudev" rel="nofollow">https://github.com/anto/eudev</a>&#160; or <a href="https://git.devuan.org/devuan-packages/eudev" rel="nofollow">https://git.devuan.org/devuan-packages/eudev</a> ?<br />Thanks</p>]]></description>
			<author><![CDATA[dummy@example.com (tormes)]]></author>
			<pubDate>Mon, 26 Aug 2019 15:53:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17535#p17535</guid>
		</item>
		<item>
			<title><![CDATA[Re: /etc/udev/rules.d/70-persistent-net.rules not regenerating [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11563#p11563</link>
			<description><![CDATA[<p>A solution: In <span class="bbc">/etc/init.d/eudev</span>, add this as the last line of the <span class="bbc">start)</span> section (in my file, this line ends up being line 218):&#160; &#160; &#160;<br /><span class="bbc">ls /run/udev/tmp-rules* &amp;&amp; { sleep 5; /lib/udev/udev-finish; } &amp;</span></p><p>That part of <span class="bbc">/etc/init.d/eudev</span> now looks like this:</p><div class="codebox"><pre><code># wait for the udevd childs to finish
    log_action_begin_msg &quot;Waiting for /dev to be fully populated&quot;
    if udevadm settle; then
	log_action_end_msg 0
    else
	log_action_end_msg 0 &#039;timeout&#039;
    fi
    ls /run/udev/tmp-rules* &amp;&amp; { sleep 5; /lib/udev/udev-finish; } &amp;
    ;;

    stop)</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Wed, 29 Aug 2018 15:43:32 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11563#p11563</guid>
		</item>
		<item>
			<title><![CDATA[Re: /etc/udev/rules.d/70-persistent-net.rules not regenerating [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11562#p11562</link>
			<description><![CDATA[<p>I think the issue is that when <span class="bbc">eudev</span> runs, the filesystem is not yet writable and therefore <span class="bbc">/lib/udev/write_net_rules</span> writes to temporary files in <span class="bbc">/run/udev/</span> (see the <span class="bbc">choose_rules_file</span> and <span class="bbc">writeable</span> functions in <span class="bbc">/lib/udev/rule_generator.functions</span>). </p><p>It is the job of <span class="bbc">/lib/udev/udev-finish</span> to copy temporary rules in <span class="bbc">/run/udev/</span> (which don&#039;t survive reboot because they exist in RAM) to the root filesystem once filesystem is writable, but nothing seems to ever run this script (I inserted a line in <span class="bbc">udev-finish</span> that creates a dummy file, but the dummy file never shows up under any circumstances).</p><p>So I think I found a bug: Nothing ever triggers <span class="bbc">/lib/udev/udev-finish</span>, therefore temporary rules in RAM never get transferred to the filesystem, therefore <span class="bbc">/run/udev/tmp-rules--70-persistent-net.rules</span> gets generated anew at every boot but <span class="bbc">/etc/udev/rules.d/70-persistent-net.rules</span> never sees the light of day.</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Wed, 29 Aug 2018 15:27:16 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11562#p11562</guid>
		</item>
		<item>
			<title><![CDATA[Re: /etc/udev/rules.d/70-persistent-net.rules not regenerating [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11559#p11559</link>
			<description><![CDATA[<p>I discovered something: After every boot, <span class="bbc">/run/udev/tmp-rules--70-persistent-net.rules</span> exists (populated with naming rules for <span class="bbc">eth0</span> and <span class="bbc">wlan0</span> based on their MAC addresses), even though <span class="bbc">/etc/udev/rules.d/70-persistent-net.rules</span> never gets created. So the naming rules are generated anew on each boot, but exist only in RAM.</p><p>Maybe the timing of things at boot is such that <span class="bbc">eudev</span> is trying to commit the naming rules to filesystem before the filesystem can be written to?</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Wed, 29 Aug 2018 14:09:15 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11559#p11559</guid>
		</item>
		<item>
			<title><![CDATA[Re: /etc/udev/rules.d/70-persistent-net.rules not regenerating [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11558#p11558</link>
			<description><![CDATA[<p>Yes, there is <span class="bbc">73-usb-net-by-mac.rules</span> which deals with USB net devices, unless there&#039;s a <span class="bbc">net.ifnames=0</span> assignment on the boot line. Then there is also <span class="bbc">80-net-name-slot.rules</span> being active unless <span class="bbc">net.ifnames=0</span>, applying some last resort naming that is made available by the (unconditional) <span class="bbc">net_id</span> invocation of <span class="bbc">75-net-description.rules</span>.</p><p>Those &quot;specialized conditions&quot; I mentioned are various reasons to avoid renaming, and they don&#039;t make renaming happen.</p><p>Note that <span class="bbc">net.ifnames=0</span>, <span class="bbc">net.ifnames=1</span> and <span class="bbc">net.ifnames unassigned</span> provide three different ways of hotplug handling of network device adapter naming, with a nice handful of rules files involved. Then there are also at least 2 other rules files involved in the enabling (or configuration) of network interfaces, and those of course depend on the name assignments, especially if there&#039;s a renaming involved.</p><p>Don&#039;t ask me why <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Wed, 29 Aug 2018 13:05:57 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11558#p11558</guid>
		</item>
		<item>
			<title><![CDATA[Re: /etc/udev/rules.d/70-persistent-net.rules not regenerating [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11557#p11557</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>IF the hotplug event is due to the (possibly faked) addition of a net device adapter, and the NAME attribute has not been set for it, and the environment does not contain an net.ifnames variable with value 1, and the initial kernel name pattern is one of some few (including eth* and wlan*), and some few more specialized conditions,<br />THEN make up a name for the device adapter, and run /lib/udev/write_net_rules to generate /etc/udev/rules.d/70-persistent-net.rules.</p></div></blockquote></div><p>FWIW - on the system that had the 70-persistent-net.rules file that I removed, I added a usb wireless interface.</p><p>Addition of new device adapter -&#160; &#160; &#160; check<br />NAME attribute not set -&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; check<br />No net.ifnames variable -&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;check<br />Kernel name wlan1 -&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; check<br />Specialized conditions -&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;?????</p><p>When I plug in the usb wireless dongle, I get a message saying that wlx&lt;hwaddr&gt; was renamed from wlan1.<br />No 70-persistent-net.rules gets generated. Same if I boot with the dongle plugged in.</p><p>So who is renaming wlan1? What are those specialized conditions that were mentioned?</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Wed, 29 Aug 2018 12:19:01 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11557#p11557</guid>
		</item>
		<item>
			<title><![CDATA[Re: /etc/udev/rules.d/70-persistent-net.rules not regenerating [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11552#p11552</link>
			<description><![CDATA[<div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>Afaict the idea is, that any subsequent addition event for the same net device adapter will process <span class="bbc">70-persistent-net.rules</span> first, and that will set <span class="bbc">NAME</span> for the adapter, and thereby disarm <span class="bbc">75-persistent-net-generator.rules</span>.</p></div></blockquote></div><p>This seems sensible, but the fact is that my <span class="bbc">70-persistent-net.rules</span> is absent, so it cannot be responsible for setting <span class="bbc">NAME</span> for the adapter or for disarming <span class="bbc">75-persistent-net-generator.rules</span>. <em>Something</em> is disarming the generator.rules, the question is what that something is.</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Wed, 29 Aug 2018 01:05:56 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11552#p11552</guid>
		</item>
		<item>
			<title><![CDATA[Re: /etc/udev/rules.d/70-persistent-net.rules not regenerating [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11551#p11551</link>
			<description><![CDATA[<p>The generation need not be a mystery. It&#039;s indeed that &quot;rules&quot; file <span class="bbc">75-persistent-net-generator.rules</span> that comes into play whenever some hotplug event occurs, plus the once off initial scanning of <span class="bbc">/sys</span>. I suppose you need to learn a bit udev-ish to work it out in detail, but essentially:</p><div class="quotebox"><blockquote><div><p>IF the hotplug event is due to the (possibly faked) addition of a net device adapter, and the <span class="bbc">NAME</span> attribute has not been set for it, and the environment does not contain an <span class="bbc">net.ifnames</span> variable with value <span class="bbc">1</span>, and the initial kernel name pattern is one of some few (including <span class="bbc">eth*</span> and <span class="bbc">wlan*</span>), and some few more specialized conditions,<br />THEN make up a name for the device adapter, and run <span class="bbc">/lib/udev/write_net_rules</span> to generate <span class="bbc">/etc/udev/rules.d/70-persistent-net.rules</span>.</p></div></blockquote></div><p>Afaict the idea is, that any subsequent addition event for the same net device adapter will process <span class="bbc">70-persistent-net.rules</span> first, and that will set <span class="bbc">NAME</span> for the adapter, and thereby disarm <span class="bbc">75-persistent-net-generator.rules</span>. It&#039;s all at a deplorable level and style of programming, but I&#039;m sure someone is proud of it.</p><p>One thing is that the&#160; logic ignores other possibilities of setting <span class="bbc">NAME</span> before <span class="bbc">75-persistent-net-generator.rules</span>. I have a vague memory of various random &quot;solutions&quot; to adapter naming that end up setting <span class="bbc">NAME</span> early, and thus also disarm the generation of <span class="bbc">70-persistent-net.rules</span>, but without them being grounded in their logic. The result is more untouchable udev rules mess, which is good for nothing but clocking consulting time. <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Tue, 28 Aug 2018 22:52:11 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11551#p11551</guid>
		</item>
		<item>
			<title><![CDATA[Re: /etc/udev/rules.d/70-persistent-net.rules not regenerating [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11542#p11542</link>
			<description><![CDATA[<p>Thank you very much for that, fsmithred. The 70-persistent-net.rules on my refractasnapshot &quot;parent&quot; partition was definitely not a leftover, either, since that partition was a fresh install.</p><p>This is a complete mystery to me at this point.</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Tue, 28 Aug 2018 14:09:06 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11542#p11542</guid>
		</item>
		<item>
			<title><![CDATA[Re: /etc/udev/rules.d/70-persistent-net.rules not regenerating [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11541#p11541</link>
			<description><![CDATA[<p>I moved 70-persistent-net.rules and rebooted. It was not regenerated.</p><p>I don&#039;t know where that file came from. This system started out in June as a debootstrap install, then added openbox (without dbus). The one that doesn&#039;t have that file started out in April as a netinstall with standard system utilities only, then added parts of xfce. Neither were upgrades from jessie, so it can&#039;t be a leftover.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Tue, 28 Aug 2018 13:54:59 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11541#p11541</guid>
		</item>
		<item>
			<title><![CDATA[Re: /etc/udev/rules.d/70-persistent-net.rules not regenerating [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11540#p11540</link>
			<description><![CDATA[<p>fsmithred: On your ASCII partition that has the file, would you please backup the file, delete it from <span class="bbc">/etc/udev/rules.d/</span>, reboot, then check if the file is regenerated? I&#039;m guessing it won&#039;t be autogenerated (i.e., the file was there because it was autogenerated at some point in the <em>past</em>).</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Tue, 28 Aug 2018 13:08:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11540#p11540</guid>
		</item>
		<item>
			<title><![CDATA[Re: /etc/udev/rules.d/70-persistent-net.rules not regenerating [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11539#p11539</link>
			<description><![CDATA[<p>I&#039;m glad I&#039;m not the only one scratching head over this. I don&#039;t care about 70-persistent-net.rules per se--after all, everything works and all machines have the old interface names. But I do want to figure out why the file mysteriously stopped being autogenerated.</p><p>Ralph: <span class="bbc">/lib/udev/rules.d/75-persistent-net-generator.rules</span> exists on all my machines, full of nice-looking code. Neither now nor in the past did any of these machines set the <span class="bbc">net.ifnames</span> kernel boot parameter.</p>]]></description>
			<author><![CDATA[dummy@example.com (GNUser)]]></author>
			<pubDate>Tue, 28 Aug 2018 12:47:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11539#p11539</guid>
		</item>
		<item>
			<title><![CDATA[Re: /etc/udev/rules.d/70-persistent-net.rules not regenerating [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11538#p11538</link>
			<description><![CDATA[<div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>It&#039;s generated by <span class="bbc">udevd</span> via <span class="bbc">/lib/udev/rules.d/75-persistent-net-generator.rules</span> when <span class="bbc">net.ifnames!=1</span>.</p></div></blockquote></div><p>Huh. Other than when net.ifnames=1, when else would it not be generated? I have two ascii installs on the same computer; one has 70-persistent-net.rules and the other does not. Interfaces get the old names on both.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Tue, 28 Aug 2018 12:40:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11538#p11538</guid>
		</item>
		<item>
			<title><![CDATA[Re: /etc/udev/rules.d/70-persistent-net.rules not regenerating [SOLVED]]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11537#p11537</link>
			<description><![CDATA[<p>It&#039;s generated by <span class="bbc">udevd</span> via <span class="bbc">/lib/udev/rules.d/75-persistent-net-generator.rules</span> when <span class="bbc">net.ifnames!=1</span>.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Tue, 28 Aug 2018 12:15:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11537#p11537</guid>
		</item>
	</channel>
</rss>
