diff options
-rw-r--r-- | febootstrap.pod | 22 | ||||
-rwxr-xr-x | febootstrap.sh | 2 |
2 files changed, 19 insertions, 5 deletions
diff --git a/febootstrap.pod b/febootstrap.pod index de10a58..1e4d9ff 100644 --- a/febootstrap.pod +++ b/febootstrap.pod @@ -148,10 +148,24 @@ C<--foreign> installs - see previous point). =head1 OTHER RESTRICTIONS AND BUGS -C</sbin/ldconfig> and C</usr/sbin/glibc_post_upgrade> are not run -during C<%post> scriptlets (because they are statically linked, and -fakechroot cannot run statically linked programs). If you wish, you -can run them the first time you boot into the new machine. +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</sbin/ldconfig> (from many packages) + +=item C</usr/sbin/glibc_post_upgrade> (from C<glibc>) + +=item C</usr/sbin/build-locale-archive> (from C<glibc-common>) + +=item C</usr/sbin/libgcc_post_upgrade> (from C<libgcc>) + +=back + +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 diff --git a/febootstrap.sh b/febootstrap.sh index b08e3c0..5386b2c 100755 --- a/febootstrap.sh +++ b/febootstrap.sh @@ -127,7 +127,7 @@ export FAKECHROOT_EXCLUDE_PATH=/proc # Substitute some statically-linked commands. This is only supported # in fakechroot > 2.9. For previous versions of fakechroot it is # ignored. -export FAKECHROOT_CMD_SUBST=/sbin/ldconfig=/bin/true:/usr/sbin/glibc_post_upgrade.i686=/bin/true:/usr/sbin/glibc_post_upgrade.x86_64=/bin/true +export FAKECHROOT_CMD_SUBST=/sbin/ldconfig=/bin/true:/usr/sbin/glibc_post_upgrade.i686=/bin/true:/usr/sbin/glibc_post_upgrade.x86_64=/bin/true:/usr/sbin/build-locale-archive=/bin/true:/usr/sbin/libgcc_post_upgrade=/bin/true # Make the device nodes inside the fake chroot. # (Copied from mock/backend.py) Why isn't there a base package which |