Bug#440176: closed by maximilian attems <[EMAIL PROTECTED]> (Re: Bug#440176: mkinitramfs: does not work properly with symlinked config files)

2007-09-07 Thread Sascha Silbe
On Wed, Sep 05, 2007 at 10:47:57PM +, Debian Bug Tracking System 
wrote:



[EMAIL PROTECTED]:~# 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

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
As you can see above this is NOT the case (/etc/udev/../infra/whatever = 
/etc/infra/whatever). I have also verified this again on the system 
itself.


Even though symlinking config files might be unusual, I did not find 
anything in the policy or any documentation about this being discouraged 
or unsupported. It worked quite fine in the past, both with Debian and 
with other distributions like Gentoo.
If you tell me which file to examine to find the bug, I'll try to 
provide a patch. This "feature" is quite critical to me.


CU Sascha

--
http://sascha.silbe.org/



pgpyWG69VxAdM.pgp
Description: PGP signature


Bug#440176: mkinitramfs: does not work properly with symlinked config files

2007-08-30 Thread Sascha Silbe
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:

[EMAIL PROTECTED]:~# 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
[EMAIL PROTECTED]:~# 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
[EMAIL PROTECTED]:~# 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 
aes28160  4 
dm_crypt   10888  1 
nfs   202828  0 
nfsd  197936  17 
exportfs5600  1 nfsd
lockd  54344  3 nfs,nfsd
nfs_acl 3584  2 nfs,nfsd
sunrpc138812  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_limit2752  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 
tun10336  0 
ext2   59048  2 
loop   15048  0 
snd_via82xx26008  0 
gameport   14632  1 snd_via82xx
snd_ac97_codec 83104  1 snd_via82xx
snd_ac97_bus2400  1 snd_ac97_codec
snd_pcm68676  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_rawmidi22560  1 snd_mpu401_uart
snd_seq_device  7820  1 snd_rawmidi
pcmcia 34140  0 
firmware_class  9600  1 pcmcia
snd47012  7 
snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
evdev   9088  0 
via82cxxx_audio24296  0 
uart40111172  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 
parport33256  1 parport_pc
pcspkr  3072  0 
yenta_socket   24460  1 
rsrc_nonstatic 11840  1 yenta_socket
rtc12372  0 
hisax_fcpcipnp 11392  0 
hisax_isac  8116  1 hisax_fcpcipnp
hisax 413248  2 hisax_fcpcipnp,hisax_isac
psmouse35016  0 
serio_raw   6660  0 
isdn  120608  1 hisax
slhc6528  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_hotplug28704  1 shpchp
via_agp 9664  1 
agpgart29896  1 via_agp
pcmcia_core36852  3 pcmcia,yenta_socket,rsrc_nonstatic
ext3  119240  10 
jbd52456  1 ext3
mbcache 8356  2 ext2,ext3
dm_mirror  19152  0 
dm_snapshot15552  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