Sorry I haven't gotten back to you until now.
On Tue, Apr 01, 2008 at 07:53:44AM EST, maximilian attems wrote:
> On Wed, 27 Feb 2008, Luke Yelavich wrote:
> > Attached is a patch to improve the way update-initramfs handles the
> > generating of new or updated initramfs images for kernels. It puts in
> > place a few measures to ensure that if there is not enough disk space on
> > /boot, a previous initramfs is still in tact, to allow the booting of
> > that kernel. The patch applies against current git head. See the Ubuntu
> > specification found at the following URL for more information:
> > https://wiki.ubuntu.com/HardyInitramfsErrorHandling
> i still don't understands belows patch.
Gah the patch is the wrong way around. here is a corrected patch, along with another change we've introduced since I originally filed the bug.
This patch does the following:
* When generating a new initramfs, instead of copying the old initramfs to a backup file, it hard links it instead, so no more space is used than necessary. it only copies to the backup file in the event that the filesystem on /boot doesn't support hard links, eg FAT32 partitions.
* A new file is used to generate the initramfs. If the generation succeeds, it is moved to the original initramfs's location, ready to use. If it fails, the original initramfs is not affected, allowing it to be used at boot.
Hope this makes sense now.