[Bug 863886] [NEW] compcache is not working if COMPCACHE_SIZE contains whitespaces

Eugene San eugenesan at gmail.com
Sat Oct 1 08:16:12 UTC 2011


Public bug reported:

Since initramfs-tools-0.99ubuntu5 is working out of the box, but:
compcache is not working if COMPCACHE_SIZE, in /etc/initramfs-tools/initramfs.conf contains whitespaces.
While instructions in same file instructs to do exactly that.

Elimination whitespaces solves the problem.
I recommend updating as following:
--- a/initramfs.conf
+++b/initramfs.conf
@@ -28,15 +28,15 @@
 BUSYBOX=y
.
 #
-# COMPCACHE_SIZE: [ "x K" | "x M" | "x G" | "x %" ]
+# COMPCACHE_SIZE: [ "xK" | "xM" | "xG" | "x%" ]
 #
 # Amount of RAM to use for RAM-based compressed swap space.
 #
 # An empty value - compcache isn't used, or added to the initramfs at all.
-# An integer and K (e.g. 65536 K) - use a number of kilobytes.
-# An integer and M (e.g. 256 M) - use a number of megabytes.
-# An integer and G (e.g. 1 G) - use a number of gigabytes.
-# An integer and % (e.g. 50 %) - use a percentage of the amount of RAM.
+# An integer and K (e.g. 65536K) - use a number of kilobytes.
+# An integer and M (e.g. 256M) - use a number of megabytes.
+# An integer and G (e.g. 1G) - use a number of gigabytes.
+# An integer and % (e.g. 50%) - use a percentage of the amount of RAM.
 #
 # You can optionally install the compcache package to configure this setting
 # via debconf and have userspace scripts to load and unload compcache.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: initramfs-tools 0.99ubuntu5
ProcVersionSignature: Ubuntu 3.0.0-12.19-generic-pae 3.0.4
Uname: Linux 3.0.0-12-generic-pae i686
ApportVersion: 1.23-0ubuntu2
Architecture: i386
Date: Sat Oct  1 11:06:26 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110901)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: initramfs-tools
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.initramfs.tools.initramfs.conf: 2011-10-01T10:05:18.371059

** Affects: initramfs-tools (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 oneiric running-unity

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/863886

Title:
  compcache is not working if COMPCACHE_SIZE contains whitespaces

Status in “initramfs-tools” package in Ubuntu:
  New

Bug description:
  Since initramfs-tools-0.99ubuntu5 is working out of the box, but:
  compcache is not working if COMPCACHE_SIZE, in /etc/initramfs-tools/initramfs.conf contains whitespaces.
  While instructions in same file instructs to do exactly that.

  Elimination whitespaces solves the problem.
  I recommend updating as following:
  --- a/initramfs.conf
  +++b/initramfs.conf
  @@ -28,15 +28,15 @@
   BUSYBOX=y
  .
   #
  -# COMPCACHE_SIZE: [ "x K" | "x M" | "x G" | "x %" ]
  +# COMPCACHE_SIZE: [ "xK" | "xM" | "xG" | "x%" ]
   #
   # Amount of RAM to use for RAM-based compressed swap space.
   #
   # An empty value - compcache isn't used, or added to the initramfs at all.
  -# An integer and K (e.g. 65536 K) - use a number of kilobytes.
  -# An integer and M (e.g. 256 M) - use a number of megabytes.
  -# An integer and G (e.g. 1 G) - use a number of gigabytes.
  -# An integer and % (e.g. 50 %) - use a percentage of the amount of RAM.
  +# An integer and K (e.g. 65536K) - use a number of kilobytes.
  +# An integer and M (e.g. 256M) - use a number of megabytes.
  +# An integer and G (e.g. 1G) - use a number of gigabytes.
  +# An integer and % (e.g. 50%) - use a percentage of the amount of RAM.
   #
   # You can optionally install the compcache package to configure this setting
   # via debconf and have userspace scripts to load and unload compcache.

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: initramfs-tools 0.99ubuntu5
  ProcVersionSignature: Ubuntu 3.0.0-12.19-generic-pae 3.0.4
  Uname: Linux 3.0.0-12-generic-pae i686
  ApportVersion: 1.23-0ubuntu2
  Architecture: i386
  Date: Sat Oct  1 11:06:26 2011
  EcryptfsInUse: Yes
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110901)
  PackageArchitecture: all
  ProcEnviron:
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: initramfs-tools
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.initramfs.tools.initramfs.conf: 2011-10-01T10:05:18.371059

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/863886/+subscriptions




More information about the foundations-bugs mailing list