Description of problem: If you install a Fedora 18 guest using the new anaconda, then /etc/sysconfig/network is not always created. I don't know why this doesn't happen -- possibly because the text based installer doesn't set the hostname? Anyway, this breaks virt-sysprep: # virt-sysprep -d F18Alpha sysprep operation failed: exception: Guestfs.Error("read_lines: fopen: /etc/sysconfig/network: No such file or directory") Version-Release number of selected component (if applicable): libguestfs 1.18, also probably occurs in development branch How reproducible: 100% Steps to Reproduce: 1. Install Fedora 18 alpha using text installer. 2. Run virt-sysprep on it. Actual results: Fails as above.
Fixed upstream: https://github.com/libguestfs/libguestfs/commit/88c406feba1390f830c20bfb4c11989a4e877b91
Reopening. It turns out this is broken because of: https://fedorahosted.org/fesco/ticket/963 (read that ticket and weep). I'm going to fix this by setting /etc/hostname if the version of Fedora detected is >= 18.
Fixed upstream: https://github.com/libguestfs/libguestfs/commit/f5ae46dca79511cf2d4762ca4ef07b59bd647309