X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=febootstrap.pod;h=a8f73ffceee80f78f9c6684fc302c72406a6e32d;hb=467d77a9af3dbb1a4bcfbb9c7f97c8e300d6dca0;hp=b2d7470aa56062880637f4f8484cf5599d3906f7;hpb=9cf3beefb865ea3e1a4bbe570d632649540788cc;p=febootstrap.git diff --git a/febootstrap.pod b/febootstrap.pod index b2d7470..a8f73ff 100644 --- a/febootstrap.pod +++ b/febootstrap.pod @@ -104,8 +104,16 @@ files is usually safe. Files should be replaced only by doing: echo updated-content > old-file -(since that preserves the original inode). In most cases it's usually -safest to use C. +(since that preserves the original inode). + +Deleting files and then creating new ones (even with a different name) +is usually unsafe, because the new files might reuse inodes claimed by +the old files, and so appear with peculiar permissions +(eg. unreadable, or as a symbolic link). (XXX We need an +C utility to automate installing new files safely +into a filesystem). + +In most cases it's usually safest to use C. You can use the fakeroot logfile in a number of ways: @@ -148,22 +156,24 @@ C<--foreign> installs - see previous point). =head1 OTHER RESTRICTIONS AND BUGS -Some C<%post> scripts do not run correctly. The most common case is -C. Since this binary is statically linked, fakeroot -and fakechroot's LD_PRELOAD hack does not work, so effectively -ldconfig tries to update the system cache. You will see the following -error: +The following programs are not run during C<%post> scriptlets (because +they are all statically linked, and fakechroot cannot run statically +linked programs). + +=over 4 + +=item C (from many packages) + +=item C (from C) - /sbin/ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied +=item C (from C) -This error is mostly harmless. Just run C the first -time you boot into the newly created Fedora system. +=item C (from C) + +=back -Another error you will see is with C -which is caused for the same reason - this binary is statically -linked. We have examined what this binary does, and it is not really -necessary for installs. If it makes you happier, you can run it the -first time you boot the new system. +If you wish, you can run them the first time you boot into the new +machine. febootstrap recreates the repository anew each time, and this causes yum to download all the RPMs every time. This is very wasteful, and