X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=febootstrap-run.pod;h=0e5d1f3018f75b1a6ccf0dac2587f9991f45c1e1;hb=89e336ee166be538e376d288fb2b3fbbffd66d4c;hp=c5e713c045530e64613151cc1b32932e5c920567;hpb=9cf3beefb865ea3e1a4bbe570d632649540788cc;p=febootstrap.git diff --git a/febootstrap-run.pod b/febootstrap-run.pod index c5e713c..0e5d1f3 100644 --- a/febootstrap-run.pod +++ b/febootstrap-run.pod @@ -37,6 +37,26 @@ contents still happen). =back +=head1 EXAMPLES + +Remove a directory subtree safely: + + febootstrap-run initramfs -- rm -r /etc + +(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: + + #!/bin/bash + + do_stuff () + { + # complex operations inside the root + } + export -f do_stuff + febootstrap-run root -- bash -c do_stuff + =head1 ENVIRONMENT VARIABLES Some L environment variables are applicable. In @@ -47,6 +67,7 @@ particular you may want to set: =head1 SEE ALSO L, +L, L, L. @@ -57,7 +78,7 @@ Richard W.M. Jones =head1 COPYRIGHT (C) Copyright 2009 Red Hat Inc., -L. +L. 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