Ultimi & popolari
Aiuti & Utilities
Dave Jones: An annoying kernel packaging bug.
The kernel rpm package creates an initramfs file that gets dropped in /boot at install time. Creation of this file is the responsibility of dracut (or mkinitrd in older releases), called from the kernels %post script. Because we want removal of a kernel to also remove its associated initrd file (or else /boot would fill up), we used to list the initramfs file in rpms database as a %ghost file owned by the kernel.
For a long time, this hasn’t been a problem. Now that dracut creates more feature-heavy initramfs files, people were noticing that they were running out of space in /boot during the installation of the kernel rpm. People were asking “why doesn’t rpm check for sufficient diskspace before it tries to install ?” Well, it does. The problem is that for %ghost files, it has no way of knowing how big they are going to be.
So for Fedora 12, we ended up with an ugly hack. Instead of listing the file as a ghost, we create a 20MB empty file, owned by the kernel, which gets overwritten during %post by dracut with the real initramfs.
The big problem with this, is that it destroys the possibility for deltarpms to work. (It also guarantees that signature verification using rpm’s database will fail)
Something better needs to happen, but at this stage, I’m not entirely sure what that will be.
An annoying kernel packaging bug. is a post from: codemonkey.org.uk
Related posts:Fedora kernel packaging changes We recently made a change in Fedora kernel packaging, to...Dracut status I figured I’d drop a quick ‘howto’ to get up...Password hygiene After seeing a hack attempt on bugzilla.kernel.org’s password file, I...
ZioBudda.net sta crescendo sempre di più, ma mi serve una mano per portare avanti i progetti e per rendere il sito sempre più bello e pieno di informazioni.