Added the --ro option (readonly) to guestfish.
[libguestfs.git] / recipes / rpmqa.sh
index ed75953..8d93f6d 100755 (executable)
@@ -1,8 +1,3 @@
 #!/bin/sh -
 
-guestfish <<EOF
-add "$1"
-run
-mount-ro "$2" /
-command "rpm -qa"
-EOF
+guestfish -a "$1" --ro -m "$2" command "rpm -qa"