Changeset 1105 in ProjectBuilder for devel/pb/bin/pb


Ignore:
Timestamp:
Nov 14, 2010, 3:09:23 AM (13 years ago)
Author:
Bruno Cornec
Message:
  • No error message if chcon fails in setupvm
  • Add support for RHEL6 setupvm and improve Fedora as well
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1102 r1105  
    519519    pb_log(0, "Please ensure that sshd is running in your VM by default\n");
    520520    pb_log(0, "and that it allows remote root login (PermitRootLogin yes in /etc/ssh/sshd_config)\n");
    521     pb_log(0, "Also ensure that network is up, firewalling correctly configured, and perl and scp/ssh installed\n");
     521    pb_log(0, "Also ensure that network is up, firewalling correctly configured\n");
     522    pb_log(0, "and perl, sudo, ntpdate and scp/ssh installed\n");
    522523    pb_log(0, "You should then be able to login with ssh -p VMPORT root\@localhost (if VM started with pb)\n");
    523524} elsif ($action =~ /^setupve$/) {
     
    23572358        $key = "\Q$zero1";
    23582359
    2359         pb_system("cat $keyfile.pub | ssh -q -o UserKnownHostsFile=/dev/null -p $nport -i $keyfile root\@$vmhost->{$ENV{'PBPROJ'}} \"mkdir -p .ssh ; chmod 700 .ssh ; cat >> .ssh/authorized_keys ; chmod 600 .ssh/authorized_keys ; if [ -x /usr/bin/chcon ]; then /usr/bin/chcon -Rt home_ssh_t .ssh 2> /dev/null; fi\"","Copying local keys to $vtype. This may require the root password");
     2360        # We call true to avoid problems if SELinux is not activated, but chcon is present and returns in that case 1
     2361        pb_system("cat $keyfile.pub | ssh -q -o UserKnownHostsFile=/dev/null -p $nport -i $keyfile root\@$vmhost->{$ENV{'PBPROJ'}} \"mkdir -p .ssh ; chmod 700 .ssh ; cat >> .ssh/authorized_keys ; chmod 600 .ssh/authorized_keys ; if [ -x /usr/bin/chcon ]; then /usr/bin/chcon -Rt home_ssh_t .ssh 2> /dev/null; /bin/true; fi\"","Copying local keys to $vtype. This may require the root password");
    23602362        # once this is done, we can do what we want on the VM remotely
    23612363    } elsif ($vtype eq "ve") {
Note: See TracChangeset for help on using the changeset viewer.