Adjust username in /etc/inittab.grml, issue 436
authorMichael Prokop <devnull@localhost>
Thu, 8 May 2008 13:31:37 +0000 (15:31 +0200)
committerMichael Prokop <devnull@localhost>
Thu, 8 May 2008 13:31:37 +0000 (15:31 +0200)
debian/changelog
etc/grml/fai/config/scripts/GRMLBASE/21-usersetup

index a501d35..037c098 100644 (file)
@@ -16,6 +16,9 @@ grml-live (0.7) unstable; urgency=low
   * buildd: use RELEASE-class in all build scripts
   * Mention noquick bootoption in bootsplash and cheatcode file.
   * Fix typo in bootsplash f3, thanks to Daniel Martin for reporting.
+  * Make sure username is adjusted in /etc/inittab.grml if username
+    not being "grml". Thanks for reporting, Thomas Lehmann.
+    [Testing: issue436]
 
  -- Michael Prokop <mika@grml.org>  Wed, 26 Mar 2008 22:56:31 +0100
 
index 3214511..47d1525 100755 (executable)
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2 or any later version.
-# Latest change: Thu Nov 15 09:42:42 CET 2007 [mika]
+# Latest change: Thu May 08 15:30:20 CEST 2008 [mika]
 ################################################################################
 
 set -u
@@ -68,6 +68,12 @@ add_user_to_group voice
 sed -i 's/^root::/root:*:/'            $target/etc/shadow
 sed -i "s/^$USERNAME:!:/$USERNAME:*:/" $target/etc/shadow
 
+# make sure users can log in on consoles 4, 5 and 6 if username != grml:
+if [ "$USERNAME" != "grml" ] ; then
+   sed -i "s/-u grml -g grml --autologin grml/-u ${USERNAME} -g ${USERNAME} --autologin ${USERNAME}/" \
+   $target/etc/inittab.grml
+fi
+
 if [ -r $target/bin/zsh ] ; then
    $ROOTCMD chsh -s /bin/zsh root
    $ROOTCMD chsh -s /bin/zsh $USERNAME