X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=febootstrap-run.pod;h=0e5d1f3018f75b1a6ccf0dac2587f9991f45c1e1;hb=89e336ee166be538e376d288fb2b3fbbffd66d4c;hp=9072f5a4d9f0a6213261679e0b9bf295aeb9fb9e;hpb=2aecd64fe51659409760a2c1e15145325f09b7e6;p=febootstrap.git diff --git a/febootstrap-run.pod b/febootstrap-run.pod index 9072f5a..0e5d1f3 100644 --- a/febootstrap-run.pod +++ b/febootstrap-run.pod @@ -39,20 +39,11 @@ contents still happen). =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: +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 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: @@ -76,6 +67,7 @@ particular you may want to set: =head1 SEE ALSO L, +L, L, L. @@ -86,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