Bug 31015 - update-initramfs -k all -c fails after update
update-initramfs -k all -c fails after update
Status: CLOSED FIXED
Product: Z_Univention Corporate Client (UCC)
Classification: Unclassified
Component: General
unspecified
Other Linux
: P5 normal
: UCC 1.0-errata
Assigned To: Felix Botner
Erik Damrose
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-10 11:44 CEST by Felix Botner
Modified: 2013-04-24 17:26 CEST (History)
1 user (show)

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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