Config fails in low memory machine (64MB)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-restricted-modules-2.6.24 (Ubuntu) |
Won't Fix
|
Medium
|
Unassigned | ||
Bug Description
Binary package hint: linux-restricte
Xubuntu 7.10 is installed on an old PC with 64MB.
When I install linux-restricte
"ld_static: final link failed no space left on device"
The problem occurs when the postinst script try to load modules in the folder /lib/modules/
This folder is a "tmpfs" mount point and its default size is half of the memory (source: `man mount`).
When I do a `df -tBM`, the reported size of 'lrm' mount point is 30 MB.
The overall size of modules to be loaded in the folder is 34 MB. It does not fit the available space.
The script that performs the mount and that copy the modules in memory is /sbin/lrm-manager.
Currently there's no way to send parameters to the 'lrm-manager' script in order to specify a larger mount size.
Changed in linux-restricted-modules-2.6.24: | |
assignee: | nobody → ubuntu-kernel-team |
importance: | Undecided → Medium |
status: | Incomplete → Triaged |
The workaround solution is to create a mount point with required size (more than 34m).
In this case the 'lrm-manager' script will let the mount point as-is.
The script in /etc/default/ folder is called when running /sbin/lrm-manager.
It seems the best place to add the workaround.
After, you have to reboot the system or run `dpkg-reconfigure linux-restricte d-modules- 2.6.22- 14-generic` .
--- /etc/default/ linux-restricte d-modules- common. old 2007-11-02 02:13:29.000000000 +0100 linux-restricte d-modules- common 2007-12-15 16:38:38.000000000 +0100
+++ /etc/default/
@@ -16,3 +16,10 @@
# You can also name each module individually, if you prefer a subset.
DISABLED_ MODULES= "" "$KVER" /volatile/ .mounted ]; then "$KVER" /volatile/ size="$ LRM_SIZE" tmpfs /lib/modules/ "$KVER" /volatile/ "$KVER" /volatile/ .mounted
+LRM_SIZE=64m
+
+if [ ! -f /lib/modules/
+ mkdir -p /lib/modules/
+ mount -t tmpfs -o mode=0755,
+ touch /lib/modules/
+fi