Hi,

i tried to build an image on a clean oscar install.
the image build failed, claiming that it was aborted by the user (it was 
not).

the following was printed to the console (running oscar_wizard with --
verbose):
--> The home directory for user root is /root
chmod: cannot access `/root/.ssh/authorized_keys*': No such file or 
directory
ERROR: Impossible to execute chmod 600 /root/.ssh/authorized_keys* at 
/usr/bin/ssh_install line 227.
ERROR: Couldn't generate ssh keys (/usr/bin/ssh_install 
/var/lib/systemimager/images/oscarimage) at /usr/bin/post_rpm_install line 
94.
ERROR: Impossible to execute /usr/bin/post_rpm_install oscarimage eth0 --
verbose at /usr/lib/systeminstaller/SystemInstaller/Tk/Image.pm line 791
ERROR: Impossible to do post binary package install at 
/usr/lib/systeminstaller/SystemInstaller/Tk/Image.pm line 791
ERROR: Impossible to run postimagebuild at 
/usr/lib/systeminstaller/SystemInstaller/Tk/Image.pm line 791
ERROR: Impossible to create the image at 
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Tk.pm line 247


this could be prevented by opening a new console, which then would have 
the /etc/profile.d/ssh-oscar.sh script generate the 
/root/.ssh/authorized_keys* files.

i hadn't run this script yet.
either ssh_install should make sure these files are created (preferred 
solution) or it should not bail out, if these files do not exists. the 
following patch does the latter.
Index: ssh_install
===================================================================
--- ssh_install (revision 8665)
+++ ssh_install (working copy)
@@ -222,7 +222,7 @@
         }
     }

-    $cmd = "chmod 600 $home/.ssh/authorized_keys*";
+    $cmd = "chmod -f 600 $home/.ssh/authorized_keys*";
     if (system ($cmd)) {
         die "ERROR: Impossible to execute $cmd";
     }


also, oscar_wizard should not claim that it ended due to a user abort, 
when in fact the process of creating an image failed.

thanks
kind regards
Thilo

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Oscar-users mailing list
Oscar-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-users

Reply via email to