Print this page
Bring back LX zones.

@@ -2189,12 +2189,22 @@
                 }
 
                 /*
                  * In failsafe mode, we don't use login(1), so don't try
                  * setting up a utmpx entry.
+                 *
+                 * A branded zone may have very different utmpx semantics.
+                 * At the moment, we only have two brand types:
+                 * Solaris-like (native, sn1) and Linux.  In the Solaris
+                 * case, we know exactly how to do the necessary utmpx
+                 * setup.  Fortunately for us, the Linux /bin/login is
+                 * prepared to deal with a non-initialized utmpx entry, so
+                 * we can simply skip it.  If future brands don't fall into
+                 * either category, we'll have to add a per-brand utmpx
+                 * setup hook.
                  */
-                if (!failsafe)
+                if (!failsafe && (strcmp(zonebrand, "lx") != 0))
                         if (setup_utmpx(slaveshortname) == -1)
                                 return (1);
 
                 /*
                  * The child needs to run as root to