[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#505440: initramfs-tools: leaks environment



Package: initramfs-tools
Version: 0.92l
Severity: important

A lot of the environment is leaked into into creating problems in other init
scripts. I'm not sure whether the severity is right, but some other init
scripts do not work as expected because of some of the environment they
inherit.

Here's a list created by adding env >"$(mktemp -t foobar.env.XXXXXXXX)" to the
boot process:

CONSOLE=/dev/console
SELINUX_INIT=YES
break=
TERM=linux
rootmnt=/root
INIT_VERSION=sysvinit-2.86
init=/sbin/init
panic=
PATH=/sbin:/usr/sbin:/bin:/usr/bin
_=/usr/bin/env
RUNLEVEL=S
runlevel=S
PWD=/
resume=/dev/hda5
ROOTFSTYPE=
VERBOSE=no
MODPROBE_OPTIONS=-qb
resume_offset=
PREVLEVEL=N
previous=N
ROOT=/dev/disk/by-uuid/cc016eb2-5e03-476c-936f-b2195a49b46f
quiet=n
ROOTFLAGS=
SHLVL=2
ROOTDELAY=
HOME=/
BOOT_IMAGE=/boot/vmlinuz-2.6.26-1-686
DPKG_ARCH=i386
blacklist=
readonly=y

Michael

-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-2.6.26-1-amd64 root=UUID=7f264e00-a4ae-45a5-88c4-aa077b575515 ro

-- /proc/filesystems
	ext3
	fuseblk
	iso9660
	vfat

-- lsmod
Module                  Size  Used by
nls_utf8                6272  0 
nls_cp437              11136  0 
vfat                   14976  0 
fat                    51128  1 vfat
isofs                  35880  0 
nls_base               12932  5 nls_utf8,nls_cp437,vfat,fat,isofs
zlib_inflate           18944  1 isofs
iwl3945                92916  0 
mac80211              162864  1 iwl3945
nfs                   251696  0 
lockd                  68560  1 nfs
nfs_acl                 7552  1 nfs
sunrpc                197480  5 nfs,lockd,nfs_acl
i915                   35072  1 
drm                    91488  2 i915
rfcomm                 38176  1 
l2cap                  23936  5 rfcomm
bluetooth              57124  4 rfcomm,l2cap
tun                    14084  1 
vboxdrv              1658800  1 
ppdev                  11656  0 
lp                     14724  0 
autofs4                24200  2 
acpi_cpufreq           11792  0 
cpufreq_powersave       6400  0 
cpufreq_stats           9120  0 
cpufreq_ondemand       11792  2 
freq_table              9344  3 acpi_cpufreq,cpufreq_stats,cpufreq_ondemand
cpufreq_conservative    11784  0 
cpufreq_userspace       8452  0 
ipv6                  288328  14 
bridge                 53544  0 
quota_v2               12800  2 
fuse                   53184  1 
aes_x86_64             12416  1 
aes_generic            32552  1 aes_x86_64
cbc                     7936  1 
dm_crypt               17032  1 
dm_mod                 58864  3 dm_crypt
loop                   19468  0 
arc4                    6272  2 
ecb                     7296  2 
crypto_blkcipher       21636  4 cbc,dm_crypt,ecb
snd_hda_intel         434776  1 
snd_pcm                81672  1 snd_hda_intel
snd_seq                54304  0 
parport_pc             31016  1 
led_class               8968  1 iwl3945
yenta_socket           27916  1 
snd_timer              25744  2 snd_pcm,snd_seq
snd_seq_device         11668  1 snd_seq
rng_core                8968  0 
rsrc_nonstatic         14080  1 yenta_socket
snd                    63688  7 snd_hda_intel,snd_pcm,snd_seq,snd_timer,snd_seq_device
parport                41776  3 ppdev,lp,parport_pc
psmouse                42268  0 
pcspkr                  7040  0 
serio_raw               9860  0 
iTCO_wdt               15696  0 
cfg80211               30224  2 iwl3945,mac80211
container               8320  0 
ac                      9352  0 
video                  24084  0 
output                  7808  1 video
wmi                    11712  0 
battery                16904  0 
soundcore              12064  1 snd
snd_page_alloc         13072  2 snd_hda_intel,snd_pcm
intel_agp              31728  1 
button                 11680  0 
evdev                  14208  11 
ext3                  124944  5 
jbd                    51240  1 ext3
mbcache                12804  1 ext3
ide_cd_mod             36360  0 
cdrom                  37928  1 ide_cd_mod
ata_generic            10116  0 
sd_mod                 29376  7 
usbhid                 45792  0 
hid                    41792  1 usbhid
ff_memless              9224  1 usbhid
b44                    29968  0 
piix                   12424  0 [permanent]
ahci                   32520  6 
libata                165472  2 ata_generic,ahci
scsi_mod              160760  2 sd_mod,libata
ssb                    43140  1 b44
pcmcia                 38680  1 ssb
pcmcia_core            41508  4 yenta_socket,rsrc_nonstatic,ssb,pcmcia
firmware_class         12544  2 iwl3945,pcmcia
mii                     9856  1 b44
dock                   14112  1 libata
ohci1394               32564  0 
ide_pci_generic         9220  0 [permanent]
ide_core              128284  3 ide_cd_mod,piix,ide_pci_generic
ieee1394               93816  1 ohci1394
ehci_hcd               36108  0 
uhci_hcd               25760  0 
thermal                22688  0 
processor              42304  4 acpi_cpufreq,thermal
fan                     9352  0 
thermal_sys            17728  4 video,thermal,processor,fan

-- /etc/kernel-img.conf
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = update-grub
postrm_hook   = update-grub

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

-- /etc/crypttab
# <target name>	<source device>		<key file>	<options>
crypto  /dev/sda6 none timeout=10



-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (x86_64)

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

Versions of packages initramfs-tools depends on:
ii  cpio                          2.9-14     GNU cpio -- a program to manage ar
ii  findutils                     4.4.0-2    utilities for finding files--find,
ii  klibc-utils                   1.5.12-2   small utilities built with klibc f
ii  module-init-tools             3.4-1      tools for managing Linux kernel mo
ii  udev                          0.125-7    /dev/ and hotplug management daemo

Versions of packages initramfs-tools recommends:
pn  busybox | busybox-initramfs   <none>     (no description available)

initramfs-tools suggests no packages.

-- no debconf information



Reply to: