1 more addition to this

I realized that when you boot as a liveCD it uses a different initrd
than the one in the squashfs (/boot/initrd ..), that file
25configure-init was inside an initrd that was located on the main CD's
file system in the /casper/ directory, I just used cpio to extract it
and then edited the file then re packaged it using cpio - originally I
changed it to write the files as normal getty strings instead of the
"exec /bin/login -f ...", but there seems to be something wrong with
doing that - so I ended up just removing the -f $user, and it seems to
work "ok".

hopefully this helps someone in the future :)

--Greg


On Tue, 2008-01-22 at 16:15 -0700, Greg R. Smith wrote:
> Sorry, habit.
> 
> also to note, this didn't seem to work anyways but it surely seems to be
> very close to what is causing my woes. 
> 
> Does anyone know the actual answer?
> 
> --Greg
> 
> 
> On Tue, 2008-01-22 at 16:13 -0700, Gustin Johnson wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > Just a heads up, when you reply to a message and then change the
> > subject, there are some headers that remain that cause my email client
> > to thread your message into the Firefox audio thread.
> > 
> > 
> > Greg R. Smith wrote:
> > | Hey,
> > |
> > | I was typing out a question here, and ended up realizing something - I
> > | did a little extra googling and found the answer before sending, but
> > | just to contribute I will still send the question and attach the
> > | answer.. because its sort of weird.
> > |
> > | QUESTION:
> > |
> > | I am building a LiveCD (trying to convert some of the SoShal stuff over
> > | to Ubuntu from Gentoo for sake of managing it better), anyways - I've
> > | got everything pretty much set up except when I boot, "something" seems
> > | to over write the original /etc/event.d/ttyX files from the squashfs
> > | that is on the LiveCD.
> > |
> > | Does anyone know what mechanism this is, and how to override it?
> > |
> > | I've done some googling and I think it has something to do with the way
> > | casper sets up the system?
> > |
> > | ANSWER:
> > |
> > | It does have to do with the way casper sets up the system
> > |
> > | I found this:
> > |
> > | sed -i -e "s|^exec.*|exec /bin/login -f $USERNAME </dev/$(basename $f)
> > |> /dev/$(basename $f) 2>\&1|" $f
> > |
> > | in
> > |
> > | /usr/share/initramfs-tools/scripts/casper-bottom/25configure_init
> > |
> > | I haven't actually tested out the theory yet, but I am going to disable
> > | that script from running and if that doesn't work, I will get it to
> > | write the actual proper config for the file.
> > |
> > | --Greg
> > |
> > |
> > | _______________________________________________
> > | clug-talk mailing list
> > | [email protected]
> > | http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> > | Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> > | **Please remove these lines when replying
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.6 (GNU/Linux)
> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> > 
> > iD8DBQFHlniTwRXgH3rKGfMRAgfZAJ9CXKbSnjt3i6jQGHpmbPyVMJvoBgCffa+P
> > 89Mcq43zQSZx9vQfHo7xVTA=
> > =CMqD
> > -----END PGP SIGNATURE-----
> > 
> > _______________________________________________
> > clug-talk mailing list
> > [email protected]
> > http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> > Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> > **Please remove these lines when replying
> 
> 
> _______________________________________________
> clug-talk mailing list
> [email protected]
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> **Please remove these lines when replying


_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to