X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=febootstrap-run.pod;h=d6440ca88062c07676123dcbd7c0e46d0649bd4f;hb=d52fcf7521b8f9b1ec7bbeaaf93840af37d363cf;hp=9072f5a4d9f0a6213261679e0b9bf295aeb9fb9e;hpb=e8d2809e31c5f4c937dc98239118855b2d1d006e;p=febootstrap.git diff --git a/febootstrap-run.pod b/febootstrap-run.pod index 9072f5a..d6440ca 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.