diff options
Diffstat (limited to 'ruby/examples/inspect_vm.rb')
-rw-r--r-- | ruby/examples/inspect_vm.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ruby/examples/inspect_vm.rb b/ruby/examples/inspect_vm.rb index 032dec4f..abf22790 100644 --- 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 - 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. |