]> pere.pagekite.me Git - homepage.git/blobdiff - blog/index.rss
Generated.
[homepage.git] / blog / index.rss
index 1e377557f9a41bd6fb5a6c61be462329959cdf32..5c3145202fad57b2fd511c883a94eafcee30d6f5 100644 (file)
@@ -6,6 +6,74 @@
                 <link>http://people.skolelinux.org/pere/blog/</link>
                 <atom:link href="http://people.skolelinux.org/pere/blog/index.rss" rel="self" type="application/rss+xml" />
        
+       <item>
+               <title>How is booting into runlevel 1 different from single user boots?</title>
+               <link>http://people.skolelinux.org/pere/blog/How_is_booting_into_runlevel_1_different_from_single_user_boots_.html</link>
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/How_is_booting_into_runlevel_1_different_from_single_user_boots_.html</guid>
+                <pubDate>Thu, 4 Aug 2011 12:40:00 +0200</pubDate>
+               <description>
+&lt;p&gt;Wouter Verhelst have some
+&lt;a href=&quot;http://grep.be/blog/en/retorts/pere_kubuntu_boot&quot;&gt;interesting
+pcomments and opinions&lt;/a&gt; on my blog post on
+&lt;a href=&quot;http://people.skolelinux.org/pere/blog/What_should_start_from__etc_rcS_d__in_Debian____almost_nothing.html&quot;&gt;the
+need to clean up /etc/rcS.d/ in Debian&lt;/a&gt; and my blog post about
+&lt;a href=&quot;http://people.skolelinux.org/pere/blog/What_is_missing_in_the_Debian_desktop__or_why_my_parents_use_Kubuntu.html&quot;&gt;the
+default KDE desktop in Debian&lt;/a&gt;.  I only have time to address one
+small piece of his comment now, and though it best to address the
+misunderstanding he bring forward:&lt;/p&gt;
+
+&lt;p&gt;&lt;blockquote&gt;
+Currently, a system admin has four options: [...] boot to a
+single-user system (by adding &#39;single&#39; to the kernel command line;
+this runs rcS and rc1 scripts)
+&lt;/blockquote&gt;&lt;/p&gt;
+
+&lt;p&gt;This make me believe Wouter believe booting into single user mode
+and booting into runlevel 1 is the same.  I am not surprised he
+believe this, because it would make sense and is a quite sensible
+thing to believe.  But because the boot in Debian is slightly broken,
+runlevel 1 do not work properly and it isn&#39;t the same as single user
+mode.  I&#39;ll try to explain what is actually happing, but it is a bit
+hard to explain.&lt;/p&gt;
+
+&lt;p&gt;Single user mode is defined like this in /etc/inittab:
+&quot;&lt;tt&gt;~~:S:wait:/sbin/sulogin&lt;/tt&gt;&quot;.  This means the only thing that is
+executed in single user mode in sulogin.  Single user mode is a boot
+state &quot;between&quot; the runlevels, and when booting into single user mode,
+only the scripts in /etc/rcS.d/ are executed before the init process
+enters the single user state.  When switching to runlevel 1, the state
+is in fact not ending in runlevel 1, but it passes through runlevel 1
+and end up in the single user mode (see /etc/rc1.d/S03single, which
+runs &quot;init -t1 S&quot; to switch to single user mode at the end of runlevel
+1.  It is confusing that the &#39;S&#39; (single user) init mode is not the
+mode enabled by /etc/rcS.d/ (which is more like the initial boot
+mode).&lt;/p&gt;
+
+&lt;p&gt;This summary might make it clearer.  When booting for the first
+time into single user mode, the following commands are executed:
+&quot;&lt;tt&gt;/etc/init.d/rc S; /sbin/sulogin&lt;/tt&gt;&quot;.  When booting into
+runlevel 1, the following commands are executed: &quot;&lt;tt&gt;/etc/init.d/rc
+S; /etc/init.d/rc 1; /sbin/sulogin&lt;/tt&gt;&quot;.  A problem show up when
+trying to continue after visiting single user mode.  Not all services
+are started again as they should, causing the machine to end up in an
+unpredicatble state.  This is why Debian admins recommend rebooting
+after visiting single user mode.&lt;/p&gt;
+
+&lt;p&gt;A similar problem with runlevel 1 is caused by the amount of
+scripts executed from /etc/rcS.d/.  When switching from say runlevel 2
+to runlevel 1, the services started from /etc/rcS.d/ are not properly
+stopped when passing through the scripts in /etc/rc1.d/, and not
+started again when switching away from runlevel 1 to the runlevels
+2-5.  I believe the problem is best fixed by moving all the scripts
+out of /etc/rcS.d/ that are not &lt;strong&gt;required&lt;/strong&gt; to get a
+functioning single user mode during boot.&lt;/p&gt;
+
+&lt;p&gt;I have spent several years investigating the Debian boot system,
+and discovered this problem a few years ago.  I suspect it originates
+from when sysvinit was introduced into Debian, a long time ago.&lt;/p&gt;
+</description>
+       </item>
+       
        <item>
                <title>Fint at militæret ikke ble aktivisert 22. juli</title>
                <link>http://people.skolelinux.org/pere/blog/Fint_at_milit__ret_ikke_ble_aktivisert_22__juli.html</link>
@@ -440,24 +508,5 @@ utviklingstimer for å en norsk portal på plass.&lt;/p&gt;
 </description>
        </item>
        
-       <item>
-               <title>Free Software vs. proprietary softare...</title>
-               <link>http://people.skolelinux.org/pere/blog/Free_Software_vs__proprietary_softare___.html</link>
-               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Free_Software_vs__proprietary_softare___.html</guid>
-                <pubDate>Mon, 20 Jun 2011 12:50:00 +0200</pubDate>
-               <description>
-&lt;p&gt;Reading
-&lt;a href=&quot;http://blog.thingiverse.com/2011/06/20/open-source-vs-closed-source-eulas/&quot;&gt;the
-thingiverse blog&lt;/a&gt;, I came across two highlights of interesting
-parts of the
-&lt;a href=&quot;http://wiki.blender.org/index.php/Autodesk_EULA&quot;&gt;Autodesk&lt;/a&gt;
-and
-&lt;a href=&quot;http://blog.makezine.com/archive/2011/06/things-you-cant-do-with-the-microsoft-kinect-sdk.html&quot;&gt;Microsoft
-Kinect&lt;/a&gt; End User License Agreements (EULAs), which illustrates
-quite well why I stay away from software with EULAs.  Whenever I take
-the time to read their content, the terms are simply unacceptable.&lt;/p&gt;
-</description>
-       </item>
-       
         </channel>
 </rss>