git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New API: write for creating files with fixed content (RHBZ#501889).
[libguestfs.git]
/
fish
/
guestfish.pod
diff --git
a/fish/guestfish.pod
b/fish/guestfish.pod
index
7260caf
..
274f1d4
100644
(file)
--- a/
fish/guestfish.pod
+++ b/
fish/guestfish.pod
@@
-41,7
+41,7
@@
Create a new C</etc/motd> file in a guest:
add disk.img
run
mount /dev/vg_guest/lv_root /
add disk.img
run
mount /dev/vg_guest/lv_root /
- write
_file /etc/motd "Welcome, new users" 0
+ write
/etc/motd "Welcome, new users"
_EOF_
List the LVM logical volumes in a guest:
_EOF_
List the LVM logical volumes in a guest:
@@
-57,7
+57,7
@@
Update C</etc/resolv.conf> in a guest:
guestfish \
add disk.img : run : mount /dev/vg_guest/lv_root / : \
guestfish \
add disk.img : run : mount /dev/vg_guest/lv_root / : \
- write
-file /etc/resolv.conf "nameserver 1.2.3.4" 0
+ write
/etc/resolv.conf "nameserver 1.2.3.4"
Edit C</boot/grub/grub.conf> interactively:
Edit C</boot/grub/grub.conf> interactively: