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

Bug#440176: closed by maximilian attems <max@stro.at> (Re: Bug#440176: mkinitramfs: does not work properly with symlinked config files)



On Fri, Sep 07, 2007 at 11:16:38AM +0200, Sascha Silbe wrote:
> 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.

check your allegations before coming back.
 
> 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.

afais your box is broken, easily reprucible with:
echo "cp -a /etc/alternatives $DESTDIR/etc/" >> /usr/share/initramfs-tools/hooks/udev

update-initramfs -u
update-initramfs: Generating /boot/initrd.img-2.6.23-rc4-amd64
cpio: ./etc/alternatives/lvm-default: Cannot stat: No such file or directory

ls -l /etc/alternatives/lvm-default 
lrwxrwxrwx 1 root root 12 2007-08-30 19:05 /etc/alternatives/lvm-default
-> /lib/lvm-200
ls -l /lib/lvm-200
ls: /lib/lvm-200: No such file or directory

mkdir /tmp/bla && cd /tmp/bla
gunzip -c -9 /boot/initrd.img-2.6.23-rc4-amd64 \
  | cpio -i -d -H newc --no-absolute-filenames
ls -l etc/alternatives/ | head 
total 25862
-rwxr-xr-x 1 max max  338480 2007-09-07 12:00 awk
-rw-r--r-- 1 max max   25106 2007-09-07 12:00 awk.1.gz
-rwxr-xr-x 1 max max    1125 2007-09-07 12:00 btcompletedir
-rw-r--r-- 1 max max    1028 2007-09-07 12:00 btcompletedir.1.gz
-rwxr-xr-x 1 max max    8024 2007-09-07 12:00 btdownloadcurses
-rw-r--r-- 1 max max    2074 2007-09-07 12:00 btdownloadcurses.1.gz
-rwxr-xr-x 1 max max    4780 2007-09-07 12:00 btdownloadheadless
-rw-r--r-- 1 max max    2074 2007-09-07 12:00 btdownloadheadless.1.gz
-rwxr-xr-x 1 max max    9157 2007-09-07 12:00 btlaunchmany

so everything is there and don't start telling me that
/etc/alternatives is not symlink infested :P

-- 
maks



Reply to: