[Bug 505140] Re: No more autologin in live CD

2010-01-12 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/casper

-- 
No more autologin in live CD
https://bugs.launchpad.net/bugs/505140
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 505140] Re: No more autologin in live CD

2010-01-12 Thread Launchpad Bug Tracker
This bug was fixed in the package casper - 1.214

---
casper (1.214) lucid; urgency=low

  * 15autologin: simplify the code with escape character evaluation
(LP: #505140)
 -- Didier Roche didro...@ubuntu.com   Tue, 12 Jan 2010 08:57:05 +0100

** Changed in: casper (Ubuntu)
   Status: Triaged = Fix Released

-- 
No more autologin in live CD
https://bugs.launchpad.net/bugs/505140
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 505140] Re: No more autologin in live CD

2010-01-11 Thread Didier Roche
Colin, I'll rather propose that (simplifying the code):

 # Prevent from updating if parameters already present (persistent usb key)
 if ! `grep -qs 'AutomaticLoginEnable' $GDMCustomFile` ; then
if ! `grep -qs '\[daemon\]' $GDMCustomFile` ; then
printf '[daemon]'  $GDMCustomFile
fi
sed -i s/\[daemon\]/\[daemon\]\n$AutologinParameters/ $GDMCustomFile
 fi

With that, we handle every cases:
- no GDMCustomFile, create the autologin part with [daemon]
- GDMCustomFile already exists with  [daemon] section but without the autologin 
part (case of ubutu derivatives): add it
- GDMCustomFile exists without [daemon] section: add all the autologin stuff 
and the section (don't know if that can happen with current GDM implementation, 
but it'll surely later)
- GDMCustomFile exists with  [daemon] section and autologin stuff in place 
(case of persistent usb key): don't do anything

And we get our \n interpreted by sed :)
This new proposal is in my linked branch.

** Changed in: casper (Ubuntu)
   Importance: Undecided = High

-- 
No more autologin in live CD
https://bugs.launchpad.net/bugs/505140
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 505140] Re: No more autologin in live CD

2010-01-11 Thread Evan Dandrea
For what it's worth, I uploaded a changed casper that fixes the
immediate issue, before being made aware of this discussion.  It's
casper 1.213.

My sincerest apologies for missing this.

-- 
No more autologin in live CD
https://bugs.launchpad.net/bugs/505140
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 505140] Re: No more autologin in live CD

2010-01-09 Thread Colin Watson
From IRC:

Sorry about the breakage. However, I *really* don't like using echo -e;
it has a habit of producing weird side-effects later when things are run
under a shell you didn't expect. How about this trick to ensure that the
same syntax is acceptable in either case?

  sed -i \$s/\$/\n$AutologinParameters/  $GDMCustomFile

-- 
No more autologin in live CD
https://bugs.launchpad.net/bugs/505140
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs