FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Laptop

 
 
LinkBack Thread Tools
 
Old 04-06-2011, 08:13 PM
Chris Lumens
 
Default Add a /bin/login shim for use only in the installation environment.

---
src/pylorax/installtree.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/pylorax/installtree.py b/src/pylorax/installtree.py
index 0b32522..3b1f0dd 100644
--- a/src/pylorax/installtree.py
+++ b/src/pylorax/installtree.py
@@ -358,6 +358,14 @@ class LoraxInstallTree(BaseLoraxClass):
# create resolv.conf
touch(joinpaths(self.root, "etc", "resolv.conf"))

+ # create a basic /bin/login script that'll automatically start up
+ # bash as a login shell. This is needed because we can't pass bash
+ # arguments from the agetty command line, and there's not really a
+ # better way to autologin root.
+ with open(joinpaths(self.root, "bin/login"), "w") as fobj:
+ fobj.write("#!/bin/bash
")
+ fobj.write("exec -l /bin/bash
")
+
def get_config_files(self, src_dir):
# anaconda needs to change a couple of the default gconf entries
gconf = joinpaths(self.root, "etc", "gconf", "gconf.xml.defaults")
--
1.7.4.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 03:42 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org