Hi, During compilation of guestfs I get the following error: *supermin -v -o supermin.d --names augeas-libs btrfs-progs cryptsetup cryptsetup-luks e2fsprogs e4fsprogs genisoimage gfs-utils gfs2-utils grub hfsplus-tools hivex iproute iputils kernel libcap libldm MAKEDEV nilfs-utils ntfsprogs ntfs-3g openssh-clients pcre reiserfs-utils libselinux syslinux-extlinux systemd vim-minimal xz yajl zfs-fuse acl attr bash binutils bzip2 coreutils cpio diffutils dosfstools file findutils gawk gdisk grep gzip jfsutils kmod less libxml2 lsof lsscsi lvm2 lzop mdadm module-init-tools parted procps procps-ng psmisc rsync scrub sed strace syslinux tar udev util-linux util-linux-ng xfsprogs zerofree --exclude ^perl --exclude ^python --exclude ^plymouth --exclude ^linux-firmware --exclude ^kbd-misc --exclude ^kernel --exclude ^fedora-logos --exclude ^redhat-logos --exclude ^dracut supermin 4.1.1 supermin: could not detect package manager used by this system or distro. If this is a new Linux distro, or not Linux, or a Linux distro that uses an unusual packaging format then you may need to port supermin. If you are expecting that supermin should work on this system or distro then it may be that the package detection code is not working. make[2]: *** [stamp-supermin] Error 1* Now, I installed supermin from git. During configuration it discovered zypper: *checking for zypper... zypper checking for yum... no checking for rpm... rpm checking for yumdownloader... no checking for aptitude... no checking for apt-cache... apt-cache checking for dpkg... no checking if apt-cache depends --recurse is broken... yes checking for pacman... no* I have the following file: *> cat /etc/SuSE-release SUSE Linux Enterprise Server 11 (x86_64) VERSION = 11 PATCHLEVEL = 2* What am I missing here ? Why do I get this error ? Thanks, Or -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libguestfs/attachments/20130711/0b82c97d/attachment.htm>
On Thu, 11 Jul 2013 10:50:01 +0300, Or Goshen wrote:> Hi, > > During compilation of guestfs I get the following error:> supermin: could not detect package manager used by this system or distro. > > If this is a new Linux distro, or not Linux, or a Linux distro that uses > an unusual packaging format then you may need to port supermin. If > you are expecting that supermin should work on this system or distro > then it may be that the package detection code is not working. > make[2]: *** [stamp-supermin] Error 1* > > Now, I installed supermin from git. During configuration it discovered > zypper: > > *checking for zypper... zypper > checking for yum... no > checking for rpm... rpm > checking for yumdownloader... no > checking for aptitude... no > checking for apt-cache... apt-cache > checking for dpkg... no > checking if apt-cache depends --recurse is broken... yes > checking for pacman... no*The zypper plugin requires the inifiles OCaml library; make sure configure detects that.
On Thu, Jul 11, 2013 at 10:50:01AM +0300, Or Goshen wrote:> Now, I installed supermin from git. During configuration it discovered > zypper: > > *checking for zypper... zypper > checking for yum... no > checking for rpm... rpm > checking for yumdownloader... no > checking for aptitude... no > checking for apt-cache... apt-cache > checking for dpkg... no > checking if apt-cache depends --recurse is broken... yes > checking for pacman... no* > > I have the following file: > > *> cat /etc/SuSE-release > SUSE Linux Enterprise Server 11 (x86_64) > VERSION = 11 > PATCHLEVEL = 2* > > What am I missing here ? > Why do I get this error ?First, let's see if your copy of supermin works at all. Try: /path/to/your/supermin -v --names bash Does that work? If not, what's the precise error message? Secondly, is libguestfs using your compiled-from-git supermin or some other supermin that you happen to have installed? Thirdly, take a look at the zypper module in supermin sources (supermin/src/supermin_zypp_rpm.ml) and examine how OS detection works. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
On Thu, Jul 11, Or Goshen wrote:> What am I missing here ? > Why do I get this error ?Only the master branch in supermin.git has some changes to support zypper. libguestfs.git has almost no support yet to make use of this new zypper code, for example the list of package names can not be used as is. The just release SLES11 SP3 includes libguestfs, if you want something that has received some testing. Olaf
I was missing inifiles .. how supermin works, but returns an error: *> supermin -v --names bash supermin 4.1.1 selected package handler: zypp-rpm + unset LANG LC_COLLATE + tmpdir=/tmp/supermin547e0fe6bded584f8986e84e3cda32ec.tmp + cache_dir=/tmp/supermin547e0fe6bded584f8986e84e3cda32ec.tmp/cache-dir + pkg_cache_dir=/tmp/supermin547e0fe6bded584f8986e84e3cda32ec.tmp/pkg_cache_dir + 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 Verbosity: 2 Entering non-interactive mode. Entering 'no-gpg-checks' mode. Warning: Turning on '--gpg-auto-import-keys'. New repository signing keys will be automatically imported! Non-option program arguments: 'bash' Initializing Target 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) Abort, retry, ignore? [a/r/i/?] (a): a 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. Loading repository data... Retrieving repository 'SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234' data... Checking whether to refresh metadata for SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234 Retrieving repository 'SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234' metadata [\] 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) Abort, retry, ignore? [a/r/i/?] (a): a Retrieving repository 'SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234' metadata [error] Repository 'SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234' is invalid. [|] Valid metadata not found at specified URL(s) History: - 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) - Can't provide /media.1/media Please check if the URIs defined for this repository are pointing to a valid repository. Problem loading data from 'SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234' Resolvables from 'SUSE-Linux-Enterprise-Server-11-SP2 11.2.2-1.234' not loaded because of error. Reading installed packages... Force resolution: No 'bash' not found in package names. Trying capabilities. No provider of 'bash' found. real 0m0.091s user 0m0.052s sys 0m0.016s supermin: external shell program failed, see earlier error messages * On Thu, Jul 11, 2013 at 11:18 AM, Richard W.M. Jones <rjones@redhat.com>wrote:> On Thu, Jul 11, 2013 at 10:50:01AM +0300, Or Goshen wrote: > > Now, I installed supermin from git. During configuration it discovered > > zypper: > > > > *checking for zypper... zypper > > checking for yum... no > > checking for rpm... rpm > > checking for yumdownloader... no > > checking for aptitude... no > > checking for apt-cache... apt-cache > > checking for dpkg... no > > checking if apt-cache depends --recurse is broken... yes > > checking for pacman... no* > > > > I have the following file: > > > > *> cat /etc/SuSE-release > > SUSE Linux Enterprise Server 11 (x86_64) > > VERSION = 11 > > PATCHLEVEL = 2* > > > > What am I missing here ? > > Why do I get this error ? > > First, let's see if your copy of supermin works at all. > > Try: > > /path/to/your/supermin -v --names bash > > Does that work? If not, what's the precise error message? > > Secondly, is libguestfs using your compiled-from-git supermin or some > other supermin that you happen to have installed? > > Thirdly, take a look at the zypper module in supermin sources > (supermin/src/supermin_zypp_rpm.ml) and examine how OS detection > works. > > Rich. > > -- > Richard Jones, Virtualization Group, Red Hat > http://people.redhat.com/~rjones > libguestfs lets you edit virtual machines. Supports shell scripting, > bindings from many languages. http://libguestfs.org >-- Or Goshen CTO Cerbercomm Mob: 972-50-9182418