diff options
author | Richard Jones <rjones@redhat.com> | 2009-04-26 12:09:06 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-04-26 12:09:06 +0100 |
commit | edd99a3f7903f6f80d3f73643cd6ee114dbdd553 (patch) | |
tree | 97ab6927aa6b071f847b6828d6e92a54226adccb /recipes | |
parent | 9501ab7792e50e464dc65e9190a0e1d84b5dd423 (diff) | |
download | libguestfs-edd99a3f7903f6f80d3f73643cd6ee114dbdd553.tar.gz libguestfs-edd99a3f7903f6f80d3f73643cd6ee114dbdd553.tar.xz libguestfs-edd99a3f7903f6f80d3f73643cd6ee114dbdd553.zip |
Added the --ro option (readonly) to guestfish.
Diffstat (limited to 'recipes')
-rwxr-xr-x | recipes/export2tar.sh | 2 | ||||
-rwxr-xr-x | recipes/iso2tar.sh | 2 | ||||
-rwxr-xr-x | recipes/rpmqa.sh | 7 |
3 files changed, 3 insertions, 8 deletions
diff --git a/recipes/export2tar.sh b/recipes/export2tar.sh index 43860bd0..41816daf 100755 --- a/recipes/export2tar.sh +++ b/recipes/export2tar.sh @@ -1,3 +1,3 @@ #!/bin/sh - -guestfish -a "$1" -m "$2" tgz-out "$3" "$4" +guestfish -a "$1" --ro -m "$2" tgz-out "$3" "$4" diff --git a/recipes/iso2tar.sh b/recipes/iso2tar.sh index 78203941..b3de8db6 100755 --- a/recipes/iso2tar.sh +++ b/recipes/iso2tar.sh @@ -1,3 +1,3 @@ #!/bin/sh - -guestfish -a "$1" -m /dev/sda tgz-out / "$2" +guestfish -a "$1" --ro -m /dev/sda tgz-out / "$2" diff --git a/recipes/rpmqa.sh b/recipes/rpmqa.sh index ed759532..8d93f6d5 100755 --- a/recipes/rpmqa.sh +++ b/recipes/rpmqa.sh @@ -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" |