X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=febootstrap-run.pod;h=d6440ca88062c07676123dcbd7c0e46d0649bd4f;hb=107e65aca6411c2d1a9efb25c1f08e52d5a3dec3;hp=c5e713c045530e64613151cc1b32932e5c920567;hpb=9cf3beefb865ea3e1a4bbe570d632649540788cc;p=febootstrap.git diff --git a/febootstrap-run.pod b/febootstrap-run.pod index c5e713c..d6440ca 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.