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

Bug#440176: marked as done (mkinitramfs: does not work properly with symlinked config files)



Your message dated Wed, 5 Sep 2007 23:44:20 +0200
with message-id <20070905214420.GA11230@stro.at>
and subject line Bug#440176: mkinitramfs: does not work properly with symlinked config files
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: initramfs-tools
Version: 0.85h
Severity: important

mkinitramfs (called by update-initramfs, called in postinst) does not work 
properly if the config files to be included in the initramfs are symlinks:

root@oolong:~# mkinitramfs -o /boot/initrd.img-2.6.18-5-686 2.6.18-5-686
cpio: ./etc/udev/links.conf: No such file or directory
cpio: ./etc/udev/udev.conf: No such file or directory
cpio: ./etc/modprobe.d/arch/i386: No such file or directory
cpio: ./etc/modprobe.d/blacklist: No such file or directory
cpio: ./etc/modprobe.d/pnp-hotplug: No such file or directory
cpio: ./etc/modprobe.d/aliases: No such file or directory
cpio: ./etc/modprobe.d/display_class: No such file or directory
cpio: ./etc/modprobe.d/arch-aliases: No such file or directory
root@oolong:~# ls -l /etc/udev/links.conf
lrwxrwxrwx 1 root root 35 2007-08-30 14:25 /etc/udev/links.conf -> ../infra/system-1.0/udev/links.conf
root@oolong:~# ls -l /etc/infra/system-1.0/udev/links.conf
-rw-r--r-- 1 root root 430 2007-03-23 16:30 /etc/infra/system-1.0/udev/links.conf


strace shows that cpio is already called with --dereference. Since I didn't 
find anything about udev in /usr/sbin/mkinitramfs, I don't know how to
proceed further to fix this bug.


-- Package-specific info:
-- /proc/cmdline
root=/dev/md2 ro console=ttyS0,115200 TERM=vt100 

-- /proc/filesystems
	cramfs
	ext3
	ext2

-- lsmod
Module                  Size  Used by
sha256                 11104  0 
aes                    28160  4 
dm_crypt               10888  1 
nfs                   202828  0 
nfsd                  197936  17 
exportfs                5600  1 nfsd
lockd                  54344  3 nfs,nfsd
nfs_acl                 3584  2 nfs,nfsd
sunrpc                138812  13 nfs,nfsd,lockd,nfs_acl
button                  6672  0 
ac                      5188  0 
battery                 9636  0 
iptable_mangle          2880  0 
ipt_MASQUERADE          3712  1 
iptable_nat             7044  1 
ip_nat                 16876  2 ipt_MASQUERADE,iptable_nat
ip_conntrack           49088  3 ipt_MASQUERADE,iptable_nat,ip_nat
nfnetlink               6680  2 ip_nat,ip_conntrack
ipt_LOG                 6112  1 
xt_limit                2752  1 
ipt_REJECT              5248  2 
ipt_TCPMSS              4096  1 
xt_tcpudp               3136  18 
iptable_filter          3104  1 
ip_tables              13028  3 iptable_mangle,iptable_nat,iptable_filter
x_tables               13316  8 ipt_MASQUERADE,iptable_nat,ipt_LOG,xt_limit,ipt_REJECT,ipt_TCPMSS,xt_tcpudp,ip_tables
ipv6                  226016  26 
bridge                 49404  0 
tun                    10336  0 
ext2                   59048  2 
loop                   15048  0 
snd_via82xx            26008  0 
gameport               14632  1 snd_via82xx
snd_ac97_codec         83104  1 snd_via82xx
snd_ac97_bus            2400  1 snd_ac97_codec
snd_pcm                68676  2 snd_via82xx,snd_ac97_codec
snd_timer              20996  1 snd_pcm
snd_page_alloc          9640  2 snd_via82xx,snd_pcm
snd_mpu401_uart         8064  1 snd_via82xx
snd_rawmidi            22560  1 snd_mpu401_uart
snd_seq_device          7820  1 snd_rawmidi
pcmcia                 34140  0 
firmware_class          9600  1 pcmcia
snd                    47012  7 snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
evdev                   9088  0 
via82cxxx_audio        24296  0 
uart401                11172  1 via82cxxx_audio
sound                  69768  2 via82cxxx_audio,uart401
soundcore               9248  3 snd,via82cxxx_audio,sound
ac97_codec             17196  1 via82cxxx_audio
parport_pc             32132  0 
floppy                 53156  0 
parport                33256  1 parport_pc
pcspkr                  3072  0 
yenta_socket           24460  1 
rsrc_nonstatic         11840  1 yenta_socket
rtc                    12372  0 
hisax_fcpcipnp         11392  0 
hisax_isac              8116  1 hisax_fcpcipnp
hisax                 413248  2 hisax_fcpcipnp,hisax_isac
psmouse                35016  0 
serio_raw               6660  0 
isdn                  120608  1 hisax
slhc                    6528  1 isdn
via_ircc               23188  0 
irda                  162588  1 via_ircc
crc_ccitt               2240  2 hisax,irda
i2c_viapro              8244  0 
i2c_core               19680  1 i2c_viapro
shpchp                 33024  0 
pci_hotplug            28704  1 shpchp
via_agp                 9664  1 
agpgart                29896  1 via_agp
pcmcia_core            36852  3 pcmcia,yenta_socket,rsrc_nonstatic
ext3                  119240  10 
jbd                    52456  1 ext3
mbcache                 8356  2 ext2,ext3
dm_mirror              19152  0 
dm_snapshot            15552  0 
dm_mod                 50232  31 dm_crypt,dm_mirror,dm_snapshot
raid1                  21056  4 
md_mod                 70388  5 raid1
ide_generic             1408  0 [permanent]
ide_cd                 36064  0 
cdrom                  32544  1 ide_cd
ide_disk               14848  5 
generic                 5476  0 [permanent]
sd_mod                 19040  6 
via82cxxx               8388  0 [permanent]
ide_core              110504  5 ide_generic,ide_cd,ide_disk,generic,via82cxxx
via_rhine              22664  0 
mii                     5344  1 via_rhine
ehci_hcd               28136  0 
uhci_hcd               21164  0 
sata_sil               11464  5 
usbcore               112644  3 ehci_hcd,uhci_hcd
libata                 89396  1 sata_sil
scsi_mod              124168  2 sd_mod,libata
thermal                13608  0 
processor              28840  1 thermal
fan                     4804  0 

-- 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


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages initramfs-tools depends on:
ii  busybox                       1:1.1.3-4  Tiny utilities for small and embed
ii  cpio                          2.6-17     GNU cpio -- a program to manage ar
ii  klibc-utils                   1.4.34-1   small statically-linked utilities 
ii  module-init-tools             3.3-pre4-2 tools for managing Linux kernel mo
ii  udev                          0.105-4    /dev/ and hotplug management daemo

initramfs-tools recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
On Thu, 30 Aug 2007, Sascha Silbe wrote:

> mkinitramfs (called by update-initramfs, called in postinst) does not work 
> properly if the config files to be included in the initramfs are symlinks:
> 
> root@oolong:~# mkinitramfs -o /boot/initrd.img-2.6.18-5-686 2.6.18-5-686
> cpio: ./etc/udev/links.conf: No such file or directory
> cpio: ./etc/udev/udev.conf: No such file or directory
> cpio: ./etc/modprobe.d/arch/i386: No such file or directory
> cpio: ./etc/modprobe.d/blacklist: No such file or directory
> cpio: ./etc/modprobe.d/pnp-hotplug: No such file or directory
> cpio: ./etc/modprobe.d/aliases: No such file or directory
> cpio: ./etc/modprobe.d/display_class: No such file or directory
> cpio: ./etc/modprobe.d/arch-aliases: No such file or directory
> root@oolong:~# ls -l /etc/udev/links.conf
> lrwxrwxrwx 1 root root 35 2007-08-30 14:25 /etc/udev/links.conf -> ../infra/system-1.0/udev/links.conf
> root@oolong:~# ls -l /etc/infra/system-1.0/udev/links.conf
> -rw-r--r-- 1 root root 430 2007-03-23 16:30 /etc/infra/system-1.0/udev/links.conf

i retried to reproduce your bug and could easily
with broken symlinks.
it seems pretty evident that your /etc/udev/links.conf
is pointing to /infra/system-1.0/udev/links.conf and not
/etc/infra/system-1.0/udev/links.conf

thus closing

-- 
maks

--- End Message ---

Reply to: