I'm trying to use guestmount to install some kernel modules in a guest: [mbooth@mbooth linux-2.6 (amit)]$ make modules_install INSTALL_MOD_PATH=~/etch ln: creating symbolic link `/home/mbooth/etch/lib/modules/2.6.32-rc6/source': No such file or directory make: *** [_modinst_] Error 1 I think something's screwy with symlinks. In the following, /tmp/source is a symlink, and I have previously attempted to create a source symlink in the current directory: [mbooth@mbooth 2.6.32-rc6]$ rm source rm: cannot remove `source': No such file or directory [mbooth@mbooth 2.6.32-rc6]$ mv /tmp/source . mv: cannot create symbolic link `./source': File exists [mbooth@mbooth 2.6.32-rc6]$ ln -s /tmp foo ln: creating symbolic link `foo': No such file or directory [mbooth@mbooth 2.6.32-rc6]$ mv /tmp/source foo mv: cannot create symbolic link `foo': File exists [mbooth@mbooth 2.6.32-rc6]$ ls kernel Booting the guest shows that the symlinks haven't been created. So it looks like there are 2 possibly related issues here: 1. Symlink creation doesn't seem to work 2. Something subsequently believes the symlink exists I can create a BZ later. Matt -- Matthew Booth, RHCA, RHCSS Red Hat Engineering, Virtualisation Team M: +44 (0)7977 267231 GPG ID: D33C3490 GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490
On Fri, Nov 13, 2009 at 09:35:17AM +0000, Matthew Booth wrote:
I think something's screwy with symlinks. In the following, /tmp/source is a symlink, and I have previously attempted to create a source symlink in the current directory: [...] 1. Symlink creation doesn't seem to work 2. Something subsequently believes the symlink exists
You're probably the first person to try the symlink syscall via guestmount ... Best thing is to try tracing what calls it's making: http://libguestfs.org/guestmount.1.html#examples ie: guestmount [-a ... -m ...] --trace /mnt Most likely is that I have reversed the parameters to the symlink call somewhere along the line. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
participants (2)
-
Matthew Booth -
Richard W.M. Jones