Supermin appliance.
[febootstrap.git] / febootstrap-run.pod
index c5e713c..d6440ca 100644 (file)
@@ -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<fakechroot(1)> environment variables are applicable.  In
@@ -47,6 +67,7 @@ particular you may want to set:
 =head1 SEE ALSO
 
 L<febootstrap(8)>,
+L<febootstrap-install(8)>,
 L<fakeroot(1)>,
 L<fakechroot(1)>.