Debian Bug report logs - #592519
initramfs-tools: COMPRESS option should be more flexible

version graph

Package: initramfs-tools; Maintainer for initramfs-tools is Debian kernel team <debian-kernel@lists.debian.org>; Source for initramfs-tools is src:initramfs-tools.

Reported by: sergio <mailbox@sergio.spb.ru>

Date: Tue, 10 Aug 2010 18:09:01 UTC

Severity: wishlist

Found in version initramfs-tools/0.98

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#592519; Package initramfs-tools. (Tue, 10 Aug 2010 18:09:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to sergio <mailbox@sergio.spb.ru>:
New Bug report received and forwarded. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>. (Tue, 10 Aug 2010 18:09:04 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: sergio <mailbox@sergio.spb.ru>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: initramfs-tools: COMPRESS option should be more flexible
Date: Tue, 10 Aug 2010 21:27:56 +0400
Package: initramfs-tools
Version: 0.98
Severity: wishlist

Option COMPRESS shouldn't specify predefined compression method, but should set
program to use. This allows to use arguments (--best or --fast for example),
and other versions and implementation of compressors.
If initramfs-tools wants to know type of compression, one more option
(COMPRESS_TYPE for example) should be added.

If initramfs-tools uses libraries (and doesn't call external program for
compression) may be all this is superfluous, but in this case should be
possible to specify compression level.



-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 6.2M Aug  9 15:30 /boot/initrd.img-2.6.32-5-686
-rw-r--r-- 1 root root 6.2M Aug  9 15:32 /boot/initrd.img-2.6.32-5-amd64
-rw-r--r-- 1 root root 6.5M Jul 11 20:08 /boot/initrd.img-2.6.34-1-686
-rw-r--r-- 1 root root 6.4M Aug  9 15:34 /boot/initrd.img-2.6.34-1-amd64
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-2.6.34-1-amd64 root=UUID=a2932eb6-f687-4334-9a86-f466c65232f8 ro acpi_enforce_resources=lax

-- /proc/filesystems
	ext4
	fuseblk
	ext2
	ext3
	reiserfs
	xfs
	jfs
	msdos
	vfat
	ntfs
	minix
	hfs
	hfsplus
	qnx4
	ufs
	btrfs

-- lsmod
Module                  Size  Used by
pl2303                 13744  0 
usbserial              26927  1 pl2303
btrfs                 381227  0 
zlib_deflate           17762  1 btrfs
crc32c                  2568  1 
libcrc32c               1050  1 btrfs
ufs                    58627  0 
qnx4                    6666  0 
hfsplus                65214  0 
hfs                    37431  0 
minix                  21189  0 
ntfs                  163615  0 
vfat                    7892  0 
msdos                   5922  0 
fat                    40064  2 vfat,msdos
jfs                   139859  0 
xfs                   736330  0 
exportfs                3146  1 xfs
reiserfs              194955  0 
ext3                  106534  0 
jbd                    37413  1 ext3
ext2                   53478  0 
usbhid                 33619  0 
iptable_nat             3667  1 
nf_nat                 13588  1 iptable_nat
nf_conntrack_ipv4       9697  3 iptable_nat,nf_nat
nf_conntrack           47348  3 iptable_nat,nf_nat,nf_conntrack_ipv4
nf_defrag_ipv4          1211  1 nf_conntrack_ipv4
ip_tables              13874  1 iptable_nat
x_tables               13185  2 iptable_nat,ip_tables
aes_x86_64              7348  3 
aes_generic            25722  1 aes_x86_64
tun                    12120  2 
radeon                613330  2 
ttm                    39677  1 radeon
drm_kms_helper         19993  1 radeon
drm                   144452  5 radeon,ttm,drm_kms_helper
i2c_algo_bit            4265  1 radeon
hidp                   11336  1 
hid                    63661  2 usbhid,hidp
sco                     7492  2 
bridge                 53396  0 
stp                     1448  1 bridge
bnep                    9634  2 
rfcomm                 29951  8 
l2cap                  25527  21 hidp,bnep,rfcomm
vboxnetadp              4193  0 
vboxnetflt             12287  0 
vboxdrv              1723566  2 vboxnetadp,vboxnetflt
kvm_amd                32438  0 
kvm                   223894  1 kvm_amd
fuse                   50206  1 
powernow_k8            11018  1 
it87                   22007  0 
hwmon_vid               1836  1 it87
loop                   11686  0 
dm_crypt               10704  0 
dm_mod                 54982  1 dm_crypt
snd_hda_codec_atihdmi     2275  1 
arc4                    1282  2 
snd_hda_codec_realtek   251256  1 
ecb                     1849  2 
snd_hda_intel          19699  0 
snd_hda_codec          64180  3 snd_hda_codec_atihdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               5244  1 snd_hda_codec
snd_pcm                61303  2 snd_hda_intel,snd_hda_codec
snd_seq                41567  0 
snd_timer              15645  2 snd_pcm,snd_seq
snd_seq_device          4501  1 snd_seq
ath5k                 115940  0 
i2c_piix4               8384  0 
snd                    46594  8 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_seq,snd_timer,snd_seq_device
mac80211              149675  1 ath5k
ath                     8394  1 ath5k
shpchp                 25503  0 
edac_core              29141  0 
pcspkr                  1707  0 
pci_hotplug            19931  1 shpchp
button                  4706  0 
i2c_core               15406  5 radeon,drm_kms_helper,drm,i2c_algo_bit,i2c_piix4
processor              28793  1 powernow_k8
edac_mce_amd            6513  0 
soundcore               4742  1 snd
btusb                   9793  4 
cfg80211              116306  3 ath5k,mac80211,ath
led_class               2187  1 ath5k
tpm_tis                 7344  0 
tpm                     9533  1 tpm_tis
snd_page_alloc          6273  2 snd_hda_intel,snd_pcm
k8temp                  3147  0 
tpm_bios                4497  1 tpm
evdev                   7432  9 
bluetooth              42435  10 hidp,sco,bnep,rfcomm,l2cap,btusb
rfkill                 13420  3 cfg80211,bluetooth
ext4                  274966  1 
mbcache                 5058  3 ext3,ext2,ext4
jbd2                   62596  1 ext4
crc16                   1327  2 l2cap,ext4
sd_mod                 30557  2 
crc_t10dif              1284  1 sd_mod
ata_generic             2911  0 
usb_storage            39257  1 
ahci                   34272  0 
ohci_hcd               19268  0 
fan                     3274  0 
pata_atiixp             3601  0 
libata                134273  3 ata_generic,ahci,pata_atiixp
r8169                  29739  0 
mii                     3218  1 r8169
thermal                11945  0 
thermal_sys            12006  3 processor,fan,thermal
ehci_hcd               31463  0 
scsi_mod              123845  3 sd_mod,usb_storage,libata
usbcore               127124  8 pl2303,usbserial,usbhid,btusb,usb_storage,ohci_hcd,ehci_hcd
nls_base                6353  7 hfsplus,hfs,ntfs,vfat,fat,jfs,usbcore

-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
do_bootloader = no
do_initrd = yes
link_in_boot = no

-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
COMPRESS=lzma
BOOT=local
DEVICE=
NFSROOT=auto

-- /etc/initramfs-tools/update-initramfs.conf
update_initramfs=yes
backup_initramfs=no

-- /etc/crypttab
# <target name>	<source device>		<key file>	<options>

-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:

/usr/share/initramfs-tools/hooks:
busybox
cryptgnupg
cryptopenct
cryptopensc
cryptpassdev
cryptroot
dmsetup
keymap
klibc
thermal
udev
v86d


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.34-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages initramfs-tools depends on:
ii  cpio                          2.11-4     GNU cpio -- a program to manage ar
ii  findutils                     4.4.2-1    utilities for finding files--find,
ii  klibc-utils                   1.5.18-1   small utilities built with klibc f
ii  module-init-tools             3.12-1     tools for managing Linux kernel mo
ii  udev                          160-1      /dev/ and hotplug management daemo

Versions of packages initramfs-tools recommends:
ii  busybox                       1:1.17.1-2 Tiny utilities for small and embed

Versions of packages initramfs-tools suggests:
pn  bash-completion               <none>     (no description available)

-- Configuration Files:
/etc/initramfs-tools/initramfs.conf changed [not included]

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Debian kernel team <debian-kernel@lists.debian.org>:
Bug#592519; Package initramfs-tools. (Tue, 24 May 2011 16:42:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Colin Watson <cjwatson@ubuntu.com>:
Extra info received and forwarded to list. Copy sent to Debian kernel team <debian-kernel@lists.debian.org>. (Tue, 24 May 2011 16:42:03 GMT) Full text and rfc822 format available.

Message #10 received at 592519@bugs.debian.org (full text, mbox):

From: Colin Watson <cjwatson@ubuntu.com>
To: intrigeri <intrigeri+debian-live@boum.org>
Cc: 627677@bugs.debian.org, 592519@bugs.debian.org
Subject: Re: Bug#627677: alternative initramfs compressor
Date: Tue, 24 May 2011 17:38:51 +0100
On Tue, May 24, 2011 at 05:41:44PM +0200, intrigeri wrote:
> Colin Watson wrote (23 May 2011 14:47:18 GMT) :
> > +		# We probably ought to use COMPRESS= in a temporary file in
> > +		# /etc/initramfs-tools/conf.d/ instead, but it's hard to
> > +		# pass options that way.
> 
> If this is your only reason to decompress / recompress the ramdisks
> (implicitly depending on those being compressed using gzip in the
> first place), wouldn't it be better to make initramfs-tools support a
> COMPRESS_OPTIONS option + indeed use its conf.d/ to set COMPRESS=,
> rather than adding the same options to live-build?

It probably would, which is why I added a comment; but live-build will
need it at least for a while anyway, to support older distributions.
(And there isn't much difference in code size.)

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=592519 has been filed
for a while requesting the change you suggest.  I've CCed that bug to
indicate the link.

-- 
Colin Watson                                       [cjwatson@ubuntu.com]




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 22:14:27 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.