git.annexia.org
/
febootstrap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pull in febootstrap-supermin-helper (C version) from libguestfs.
[febootstrap.git]
/
febootstrap-run.pod
diff --git
a/febootstrap-run.pod
b/febootstrap-run.pod
index
9072f5a
..
0e5d1f3
100644
(file)
--- a/
febootstrap-run.pod
+++ b/
febootstrap-run.pod
@@
-39,20
+39,11
@@
contents still happen).
=head1 EXAMPLES
=head1 EXAMPLES
-One way to create a new file with specific ownership and permissions
-from a script is to create new content for a file as C<root/file.new>:
+Remove a directory subtree safely:
- #!/bin/bash
-
- echo blah > root/file.new
-
-then "install" it with the correct ownership and permissions.
-
- febootstrap-run root -- install -m 0644 -o root -g root /file.new /file
- rm root/file.new
+ febootstrap-run initramfs -- rm -r /etc
-(This requires that the C</usr/bin/install> command from coreutils
-exists inside the root.)
+(This requires that you have a compatible 'rm' command in the root).
Another way to do complex operations from a script is to export a
function:
Another way to do complex operations from a script is to export a
function:
@@
-76,6
+67,7
@@
particular you may want to set:
=head1 SEE ALSO
L<febootstrap(8)>,
=head1 SEE ALSO
L<febootstrap(8)>,
+L<febootstrap-install(8)>,
L<fakeroot(1)>,
L<fakechroot(1)>.
L<fakeroot(1)>,
L<fakechroot(1)>.
@@
-86,7
+78,7
@@
Richard W.M. Jones <rjones @ redhat . com>
=head1 COPYRIGHT
(C) Copyright 2009 Red Hat Inc.,
=head1 COPYRIGHT
(C) Copyright 2009 Red Hat Inc.,
-L<http://
et
.redhat.com/~rjones/febootstrap>.
+L<http://
people
.redhat.com/~rjones/febootstrap>.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by