- dynamically construct reference image on the target machine in a %post
authorMark Huang <mlhuang@cs.princeton.edu>
Mon, 11 Oct 2004 04:24:42 +0000 (04:24 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Mon, 11 Oct 2004 04:24:42 +0000 (04:24 +0000)
commit56d33e381ce1e3ca55de06f1f1637db39e296503
tree2bb256f710cd04896f3e8b62a9c9978d77fd0d3c
parent34c50eb43300121f3d4b8f9af3250c9934442296
- dynamically construct reference image on the target machine in a %post
  scriplet, instead of building it on the build machine. This solves a
  couple of problems:

  1. RPM databases constructed on a RH9 machine could be corrupt on a
     FC2 machine because of the LD_ASSUME_KERNEL rpm/glibc NPTL bug.
  2. vserver-reference is no longer a 50 MB download. The reference
     image can be installed from the localhost yum cache most of the
     time.

  But introduces a couple of problems:

  1. If the %post scriplet fails, the whole installation fails
     with a warning, but without an error. Not having a complete
     vserver-reference build is a bad thing.
  2. Must zap RPM and YUM locks while installing.
vserver-reference.spec