<div dir="ltr">I was missing inifiles .. how supermin works, but returns an error:<br><br><i>> supermin -v --names bash                                                                                                          supermin 4.1.1<br>
selected package handler: zypp-rpm<br>+ unset LANG LC_COLLATE<br>+ tmpdir=/tmp/supermin547e0fe6bded584f8986e84e3cda32ec.tmp<br>+ cache_dir=/tmp/supermin547e0fe6bded584f8986e84e3cda32ec.tmp/cache-dir<br>+ pkg_cache_dir=/tmp/supermin547e0fe6bded584f8986e84e3cda32ec.tmp/pkg_cache_dir<br>
+ zypper --verbose --verbose --root /tmp/supermin547e0fe6bded584f8986e84e3cda32ec.tmp/root --reposd-dir /etc/zypp/repos.d --cache-dir /tmp/supermin547e0fe6bded584f8986e84e3cda32ec.tmp/cache-dir --pkg-cache-dir /tmp/supermin547e0fe6bded584f8986e84e3cda32ec.tmp/pkg_cache_dir --gpg-auto-import-keys --no-gpg-checks --non-interactive install --auto-agree-with-licenses --download-only bash<br>
Verbosity: 2<br>Entering non-interactive mode.<br>Entering 'no-gpg-checks' mode.<br>Warning: Turning on '--gpg-auto-import-keys'. New repository signing keys will be automatically imported!<br>Non-option program arguments: 'bash'<br>
Initializing Target<br>Failed to mount [server]:/vol/vol2/sles_images/repository/suse/SLES11/SP2/ia32e on /var/tmp/AP_0x8DLPyL: Mounting media failed (mount: only root can do that)<br><br>Abort, retry, ignore? [a/r/i/?] (a): a<br>
Repository 'SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234' is out-of-date. You can run 'zypper refresh' as root to update it.<br>Loading repository data...<br>Retrieving repository 'SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234' data...<br>
Checking whether to refresh metadata for SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234<br>Retrieving repository 'SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234' metadata [\]<br>Failed to mount [server]:/vol/vol2/sles_images/repository/suse/SLES11/SP2/ia32e on /var/tmp/AP_0x40mPGL: Mounting media failed (mount: only root can do that)<br>
<br>Abort, retry, ignore? [a/r/i/?] (a): a<br>Retrieving repository 'SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234' metadata [error]<br>Repository 'SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234' is invalid.<br>
[|] Valid metadata not found at specified URL(s)<br>History:<br> - Failed to mount [server]:/vol/vol2/sles_images/repository/suse/SLES11/SP2/ia32e on /var/tmp/AP_0x40mPGL: Mounting media failed (mount: only root can do that)<br>
<br> - Can't provide /media.1/media<br><br>Please check if the URIs defined for this repository are pointing to a valid repository.<br>Problem loading data from 'SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234'<br>
Resolvables from 'SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234' not loaded because of error.<br>Reading installed packages...<br>Force resolution: No<br>'bash' not found in package names. Trying capabilities.<br>
No provider of 'bash' found.<br><br>real    0m0.091s<br>user    0m0.052s<br>sys     0m0.016s<br>supermin: external shell program failed, see earlier error messages<br></i><br></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Thu, Jul 11, 2013 at 11:18 AM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, Jul 11, 2013 at 10:50:01AM +0300, Or Goshen wrote:<br>
> Now, I installed supermin from git. During configuration it discovered<br>
> zypper:<br>
><br>
</div>> *checking for zypper... zypper<br>
<div class="im">> checking for yum... no<br>
> checking for rpm... rpm<br>
> checking for yumdownloader... no<br>
> checking for aptitude... no<br>
> checking for apt-cache... apt-cache<br>
> checking for dpkg... no<br>
> checking if apt-cache depends --recurse is broken... yes<br>
</div>> checking for pacman... no*<br>
<div class="im">><br>
> I have the following file:<br>
><br>
</div>> *> cat /etc/SuSE-release<br>
<div class="im">> SUSE Linux Enterprise Server 11 (x86_64)<br>
> VERSION = 11<br>
</div>> PATCHLEVEL = 2*<br>
<div class="im">><br>
> What am I missing here ?<br>
> Why do I get this error ?<br>
<br>
</div>First, let's see if your copy of supermin works at all.<br>
<br>
Try:<br>
<br>
  /path/to/your/supermin -v --names bash<br>
<br>
Does that work?  If not, what's the precise error message?<br>
<br>
Secondly, is libguestfs using your compiled-from-git supermin or some<br>
other supermin that you happen to have installed?<br>
<br>
Thirdly, take a look at the zypper module in supermin sources<br>
(supermin/src/<a href="http://supermin_zypp_rpm.ml" target="_blank">supermin_zypp_rpm.ml</a>) and examine how OS detection<br>
works.<br>
<br>
Rich.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" target="_blank">http://people.redhat.com/~rjones</a><br>
libguestfs lets you edit virtual machines.  Supports shell scripting,<br>
bindings from many languages.  <a href="http://libguestfs.org" target="_blank">http://libguestfs.org</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">   Or Goshen<br>   CTO<br>   Cerbercomm<br>   Mob: 972-50-9182418</div>
</div>