[Pkg-libvirt-commits] [libguestfs] 130/146: p2v: Set root password of virt-p2v ISO to 'p2v'.

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 17:01:21 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch master
in repository libguestfs.

commit 59190fe423b3f91051511a7fcd1e2052d0a91f2f
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Fri Jan 23 12:16:31 2015 +0000

    p2v: Set root password of virt-p2v ISO to 'p2v'.
    
    It is documented as 'p2v', but in fact this was not implemented
    so there is no way to log in as root on the console.
    
    On RHEL we also have to add the 'passwd' package, else you get:
    
      Error creating Live CD : Unable to set unencrypted password due to lack of /usr/bin/passwd
    
    (cherry picked from commit 9638b13ba00aa088e2bd56143b145fe689c99bef)
---
 p2v/p2v.ks.in | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/p2v/p2v.ks.in b/p2v/p2v.ks.in
index 26bb925..f00734f 100644
--- a/p2v/p2v.ks.in
+++ b/p2v/p2v.ks.in
@@ -21,6 +21,8 @@ lang en_US.UTF-8
 keyboard us
 timezone --utc GMT
 
+rootpw --plaintext p2v
+
 selinux --enforcing
 firewall --enabled
 
@@ -51,6 +53,9 @@ rpm
 # Note you must have a kernel, else the boot menu won't work:
 kernel
 
+# This is required in order for RHEL to set the root password.
+passwd
+
 # Required to run firewall --enabled kickstart command:
 firewalld
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list