X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=febootstrap.pod;h=b2d7470aa56062880637f4f8484cf5599d3906f7;hb=79d6fc6bba2e279baf59f27b8dd8fd728ed65de1;hp=dfc93fc52930588c37ef2533b765b16e1f3e9822;hpb=b5e1aa25a0755d9175e21371365879c2b6585560;p=febootstrap.git diff --git a/febootstrap.pod b/febootstrap.pod index dfc93fc..b2d7470 100644 --- a/febootstrap.pod +++ b/febootstrap.pod @@ -75,27 +75,46 @@ L (If necessary replace C with your architecture, but it seems unlikely that this list will change based on architecture). -=head1 FAKEROOT LOGFILE +=head1 RUNNING EXTRA COMMANDS IN THE ROOT FILESYSTEM + +If you want to run further commands inside the root filesystem, for +example additional C installs, then use C. See +the L manual page for more details. + +You have to be careful about modifying files in the root filesystem +directly (without using C). It's easy to confuse +fakeroot and end up with the wrong permissions on files (see FAKEROOT +LOGFILE below). + +C runs the command inside the root filesystem, which +means it won't normally have access to files outside the root. You +can use C environment variable (see +L) or copy files into the root first. + +=head2 FAKEROOT LOGFILE When febootstrap is run as non-root (the normal case) we use fakeroot so that yum thinks it is running as root. Fakeroot keeps track of "real" file permissions in a log file which is saved into the target directory as C/fakeroot.log>. -You can use the fakeroot logfile in a number of ways: +This logfile is indexed by inode number, which makes certain +operations safe and other operations unsafe. For example, deleting +files is usually safe. Files should be replaced only by doing: -=over 4 + echo updated-content > old-file -=item * +(since that preserves the original inode). In most cases it's usually +safest to use C. -Run +You can use the fakeroot logfile in a number of ways: - fakeroot -i fakeroot.log command +=over 4 -in order to run a command with the faked file permissions. If the -command will make updates, then do: +=item * - fakeroot -i fakeroot.log -s fakeroot.log command +Use L to run a command with the faked file +permissions. =item * @@ -109,7 +128,12 @@ tool C (requires root). =back -=head1 COMPARISON TO debootstrap +=head1 RUNNING FEBOOTSTRAP AS ROOT + +There is some rudimentary support for running C as root. +However it is not well-tested and generally not recommended. + +=head1 COMPARISON TO DEBOOTSTRAP febootstrap cannot do cross-architecture installs (C). The reason is that C<%pre> and C<%post> scripts cannot @@ -153,6 +177,7 @@ L L, L, +L, L, L, L,