3 febootstrap-run - Run extra commands in febootstrap root filesystem
7 febootstrap-run [--options] DIR [--] [CMD ...]
11 This can be used to run extra commands in the febootstrap root
12 filesystem. It is just a simple wrapper around the standard
13 C<fakeroot> and C<fakechroot> commands.
15 If given, the C<CMD ...> is run inside the root filesystem. The
16 command acts as if it was run as root and chrooted into the root
19 If the command is omitted, then we start a shell.
21 If C<CMD ...> could contain anything starting with a C<-> character
22 then use C<--> to separate C<febootstrap-run> parameters from the
25 febootstrap-run ./f10 -- ls -l
33 Usually any changes to permissions made by the command are recorded in
34 the C<fakeroot.log> file. However if C<--ro> flag is given, then
35 changes to permissions are not recorded. (Note: changes to file
36 contents still happen).
42 Remove a directory subtree safely:
44 febootstrap-run initramfs -- rm -r /etc
46 (This requires that you have a compatible 'rm' command in the root).
48 Another way to do complex operations from a script is to export a
55 # complex operations inside the root
58 febootstrap-run root -- bash -c do_stuff
60 =head1 ENVIRONMENT VARIABLES
62 Some L<fakechroot(1)> environment variables are applicable. In
63 particular you may want to set:
65 export FAKECHROOT_EXCLUDE_PATH=/proc
70 L<febootstrap-install(8)>,
76 Richard W.M. Jones <rjones @ redhat . com>
80 (C) Copyright 2009 Red Hat Inc.,
81 L<http://people.redhat.com/~rjones/febootstrap>.
83 This program is free software; you can redistribute it and/or modify
84 it under the terms of the GNU General Public License as published by
85 the Free Software Foundation; either version 2 of the License, or
86 (at your option) any later version.
88 This program is distributed in the hope that it will be useful,
89 but WITHOUT ANY WARRANTY; without even the implied warranty of
90 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
91 GNU General Public License for more details.
93 You should have received a copy of the GNU General Public License
94 along with this program; if not, write to the Free Software
95 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.