git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
appliance: Document pipe fds.
[libguestfs.git]
/
ruby
/
examples
/
inspect_vm.rb
diff --git
a/ruby/examples/inspect_vm.rb
b/ruby/examples/inspect_vm.rb
index
032dec4
..
abf2279
100644
(file)
--- a/
ruby/examples/inspect_vm.rb
+++ b/
ruby/examples/inspect_vm.rb
@@
-41,7
+41,11
@@
for root in roots do
mps = g.inspect_get_mountpoints(root)
mps = mps.sort {|a,b| a[0].length <=> b[0].length}
for mp in mps do
mps = g.inspect_get_mountpoints(root)
mps = mps.sort {|a,b| a[0].length <=> b[0].length}
for mp in mps do
- g.mount_ro(mp[1], mp[0])
+ begin
+ g.mount_ro(mp[1], mp[0])
+ rescue Guestfs::Error => msg
+ printf("%s (ignored)\n", msg)
+ end
end
# If /etc/issue.net file exists, print up to 3 lines.
end
# If /etc/issue.net file exists, print up to 3 lines.