Additionally the firstlogin script probably shouldn't run as root,  it
should instead run as the login user.

I made some modifications to write the file to /home/$USER/.firstboot.sh
for the user specified with --user (or the default).  It's created with
permissions 0777 so that it can be removed by the user (since it's a one
time script for the first login of the default user).  I also changed
the firstloginrc template to simply test for the existance of
$HOME/.firstboot.sh run it if it exists, and remove the file if it exits
successfully.

** Attachment added: "firstlogin.patch"
   http://launchpadlibrarian.net/29506845/firstlogin.patch

-- 
firstlogin script can't be executed because the permission of /root directory 
is 0700 in the virtual machine created by python-vm-builder 
https://bugs.launchpad.net/bugs/378639
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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

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

Reply via email to