mkdir proxmox-old proxmox-new pve-kernel
mount -o loop ../proxmox-ve_3.1-93bf03d4-8.iso proxmox-old
rsync -aPHAX proxmox-old/* proxmox-new/
cd pve-kernel
ar p ../../pve-kernel-2.6.32-27-pve_2.6.32-116_amd64.deb data.tar.gz | tar zx
cd ../proxmox-new/lib/modules
rm -rf 2.6.32-26-pve
mv ../../../pve-kernel/lib/modules/2.6.32-27-pve .
cd ../../boot
rm config-2.6.32-26-pve System.map-2.6.32-26-pve vmlinuz-2.6.32-26-pve
cp ../../pve-kernel/boot/* .
cd isolinux
cp ../vmlinuz-2.6.32-27-pve linux26
cd ../../proxmox/packages
rm pve-kernel-2.6.32-26-pve_2.6.32-114_amd64.deb
cp ../../../../pve-kernel-2.6.32-27-pve_2.6.32-116_amd64.deb .
sed -i 's/pve-kernel-2.6.32-26-pve_2.6.32-114_amd64.deb/pve-kernel-2.6.32-27-pve_2.6.32-116_amd64.deb/' Packages
sed -i 's/pve-kernel-2.6.32-26-pve/pve-kernel-2.6.32-27-pve/' Packages
sed -i 's/^Version: 2.6.32-114/Version: 2.6.32-116/' Packages
sed -i 's/^Size: 33065480/Size: 33071232/' Packages
sed -i 's/^MD5sum: bf1df2436d9dd4ef42b2007c2a81b720/MD5sum: 2ea4c25ad2877fdcd021edd123faa57e/' Packages
sed -i 's/^SHA1: 033ff4ce98a41307176d6867fc774ea8cd8267e6/SHA1: d891dfb80409d4e0318766b1ec6fbfe22ab2c9cd/' Packages
sed -i 's/^SHA256: c79e087aeede2476c96040d527206507b2b6ff3ef9a2eb565e4f205ecd86a399/SHA256: 50ce8fdab1fec132b34559d5a797b58e2eec8c7bb3b505cf12842c6ec846aef3/' Packages
cd ../..
geteltorito ../../proxmox-ve_3.1-93bf03d4-8.iso > proxmox-boot.img
Booting catalog starts at sector: 3359
Manufacturer of CD:
Image architecture: x86
Boot media type is: no emulation
El Torito image starts at sector 3360 and has 4 sector(s) of 512 Bytes
Image has been written to stdout ....
mkzftree -z9 proxmox-new proxmox-new-cmp
cd proxmox-new-cmp
mkisofs -no-emul-boot -boot-load-size 4 -boot-info-table -b proxmox-boot.img -o ../proxmox.iso .
...
Size of boot image is 4 sectors -> No emulation
...
Total translation table size: 2048
Total rockridge attributes bytes: 0
Total directory bytes: 4504780
Path table size(bytes): 27336
Max brk space used d99000
232717 extents written (454 MB)