Bug 31015

Summary: update-initramfs -k all -c fails after update
Product: Z_Univention Corporate Client (UCC) Reporter: Felix Botner <botner>
Component: GeneralAssignee: Felix Botner <botner>
Status: CLOSED FIXED QA Contact: Erik Damrose <damrose>
Severity: normal    
Priority: P5 CC: walkenhorst
Version: unspecified   
Target Milestone: UCC 1.0-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: --- What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:

Description Felix Botner univentionstaff 2013-04-10 11:44:24 CEST
After the update to ucc-errata and the ubuntu updates, an 

 update-initramfs -k all -c

fails because /boot has not enough free space.

-> df -h /boot
Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
/dev/vda2        92M     71M   17M   82% /boot

Maybe we can modify update-initramfs so that it uses a different temporary directory and only moves new initramfs files to /boot.
Comment 1 Felix Botner univentionstaff 2013-04-10 15:19:55 CEST
Imported initramfs-tools from precise-updates to ucc-errata 3.1 and patched source package.

 * do not backup old initramfs files
 * create new initramfs files in temporary directory (not in /boot)
 * temporary directory is /tmp or /ucc_root (the dir with more 
   free space, default /tmp)

YAML: 2013-04-10-initramfs-tools.yaml

-> df -h /boot/
Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
/dev/vda2        92M     77M   12M   88% /boot

-> rm /boot/initrd.img-3.2.0-*

-> update-initramfs -k all -c
-> ls -la /boot/initrd.img-3.2.0-*
-rw-r--r-- 1 root root 25516373 Apr  6 06:04 /boot/initrd.img-3.2.0-31-generic
-rw-r--r-- 1 root root 25555382 Apr  6 06:04 /boot/initrd.img-3.2.0-40-generic

-> update-initramfs -k all -u
-> ls -la /boot/initrd.img-3.2.0-*
-rw-r--r-- 1 root root 25516175 Apr  6 06:05 /boot/initrd.img-3.2.0-31-generic
-rw-r--r-- 1 root root 25556032 Apr  6 06:05 /boot/initrd.img-3.2.0-40-generic
Comment 2 Erik Damrose univentionstaff 2013-04-11 15:36:50 CEST
Bugfix: 
- update-initramfs is still possible, does not use space on /boot during build OK
- does work with currently planned ucc updates

YAML: OK
Comment 3 Janek Walkenhorst univentionstaff 2013-04-24 17:26:26 CEST
http://errata.univention.de/ucc/1.0/8.html