Univention Bugzilla – Bug 31942
Use ramdisk for /var/cache/apt
Last modified: 2014-06-12 09:19:47 CEST
We require 2 GB minimum storage size for thin client hardware. The standard size of the thin client image is 1.2, we should evaluate whether we can raise the size (some overlay is needed for image updates/initrd/kernel). This would allow more room for customised images.
This was needed in ticket#: 2013062621000976 to use the fglrx driver.
Daniel had a good hint at http://wiki.univention.de/index.php?title=Small_Image_for_XennApp During image-generation and package updates much temporary space is needed, for example in /var/cache/apt. It might be helpfull use a ramdisk for those data.
A new option -e/--external-cache has been added: apt cache directories will be added as tmpfs during image build, to reduce the required image size. r49259 ucc-image-toolkit 2.0.0-12.156.201404101724 r49260 changelog
(In reply to Erik Damrose from comment #3) > A new option -e/--external-cache has been added: apt cache directories will > be added as tmpfs during image build, to reduce the required image size. > > r49259 ucc-image-toolkit 2.0.0-12.156.201404101724 > r49260 changelog I removed the -e option, instead we no longer install the system in the mounted image but in an ordinary directory (bootstrap). After the system is successfully installed the image is mounted and the system is copied to the image.
The cleanup in case of a build error has to be improved. Right now, if the build fails, - _copy_system_to_image() does not honor the cleanup option -C - services are not stopped in _cleanup(), only in _copy_system_to_image() - proc is not unmounted in _cleanup(), only in _copy_system_to_image(). This way, i cannot easily remove the bootstrap dir: "rm: Entfernen von „/tmp/tmp539d7e/bootstrap/proc/30059/sessionid“ nicht möglich: Keine Berechtigung"
(In reply to Erik Damrose from comment #5) > The cleanup in case of a build error has to be improved. Right now, if the > build fails, > - _copy_system_to_image() does not honor the cleanup option -C If -C is used _copy_system_to_image() copies (cp -a) the system (instead of moving the files with "mv"). > - services are not stopped in _cleanup(), only in _copy_system_to_image() > - proc is not unmounted in _cleanup(), only in _copy_system_to_image(). This > way, i cannot easily remove the bootstrap dir: "rm: Entfernen von > „/tmp/tmp539d7e/bootstrap/proc/30059/sessionid“ nicht möglich: Keine > Berechtigung" "umount" and "process_kill" are now done in _copy_system_to_image() and _cleanup() Also, added mount of sysfs in the bootstrap dir to make udev happy
Ok, works fine. Verified
UCC 2.0 has been released: http://docs.univention.de/release-notes-ucc-2.0.html If this error occurs again, please use "Clone This Bug".