Kernel: Linux 2.6.36-zen2-sti-03 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_CA.utf8, LC_CTYPE=en_CA.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages initramfs-tools depends on:
ii cpio 2.11-7 GNU cpio -- a program to manage ar
ii findutils 4.4.2-1+b1 utilities for finding files--find,
ii klibc-utils 1.5.21-1 small utilities built with klibc f
ii module-init-tools 3.12-1 tools for managing Linux kernel mo
ii udev 168-1 /dev/ and hotplug management daemo
Versions of packages initramfs-tools recommends:
ii busybox 1:1.18.4-2 Tiny utilities for small and embed
Versions of packages initramfs-tools suggests:
ii bash-completion 1:1.3-1 programmable completion for the ba
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110430184114.19133.43126.reportbug@localhost">ht tp://lists.debian.org/20110430184114.19133.43126.reportbug@localhost
04-30-2011, 10:38 PM
maximilian attems
Bug#624702: initramfs-tools: mkinitramfs doesn't honor setting of BOOTDIR when searching for config-... files
tags 624702 moreinfo
stop
On Sat, Apr 30, 2011 at 02:41:14PM -0400, Stirling Westrup wrote:
> Package: initramfs-tools
> Version: 0.98.8
> Severity: normal
>
>
care to post your usage of BOOTDIR?
not sure it this variable is even documented or well working at all.
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110430223839.GJ12372@vostochny.stro.at">http://lists.debian.org/20110430223839.GJ12372@vostochny.stro.at
05-02-2011, 11:00 AM
Stirling Westrup
Bug#624702: initramfs-tools: mkinitramfs doesn't honor setting of BOOTDIR when searching for config-... files
On Sat, Apr 30, 2011 at 6:38 PM, maximilian attems <max@stro.at> wrote:
> tags 624702 moreinfo
> stop
>
> On Sat, Apr 30, 2011 at 02:41:14PM -0400, Stirling Westrup wrote:
>> Package: initramfs-tools
>> Version: 0.98.8
>> Severity: normal
>>
>>
>
> care to post your usage of BOOTDIR?
> not sure it this variable is even documented or well working at all.
BOOTDIR is a variable used in update-initramfs and controls where the
script expects to find initrd.img files. By default it is set to
'/boot' but can be overridden with a setting in update-initramfs.conf
or by passing the -b option to update-initramfs.
This seems to work quite well, but the problem comes when
update-initramfs calls mkinitramfs. mkinitramfs has no equivalent
variable or command line argument and so always searches in /boot for
kernel config files.
I'm willing to submit a patch to fix this, as its really quite trivial
to fix, but I'm unsure how the maintainers will agree with my fix
which is:
1) expose an internal variable in mkinitramfs.conf so one can set a
default location to look for kernel config files.
2) give mkinitramfs a new command-line option for setting where it
looks for kernel config files. ('-s' for 'search' maybe, as all the
obvious contenders are already in use.), and which overrides the
internal variable mentioned above.
3) have update-initramfs pass the new option to mkinitramfs whenever
it is invoked with its -b option.
The above assumes that one will always want to place the kernel config
files in the same directory as the kernel images themselves. If that's
a bad assumption, then a more complex fix would be required.
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: BANLkTik1p+fELOyz3vNLBXdSRfnQf8CQEA@mail.gmail.com ">http://lists.debian.org/BANLkTik1p+fELOyz3vNLBXdSRfnQf8CQEA@mail.gmail.com
05-02-2011, 01:01 PM
maximilian attems
Bug#624702: initramfs-tools: mkinitramfs doesn't honor setting of BOOTDIR when searching for config-... files
On Mon, May 02, 2011 at 07:00:46AM -0400, Stirling Westrup wrote:
>
> BOOTDIR is a variable used in update-initramfs and controls where the
> script expects to find initrd.img files. By default it is set to
> '/boot' but can be overridden with a setting in update-initramfs.conf
> or by passing the -b option to update-initramfs.
right mkinitramfs does it only at one place and it is a bug.
I'd prefer to have it no knownledge of bootdir and not do such funky things.
usually blocking those, there i overlooked.
thanks
--
maks
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110502130134.GK12372@vostochny.stro.at">http://lists.debian.org/20110502130134.GK12372@vostochny.stro.at
05-02-2011, 01:07 PM
Stirling Westrup
Bug#624702: initramfs-tools: mkinitramfs doesn't honor setting of BOOTDIR when searching for config-... files
On Mon, May 2, 2011 at 9:01 AM, maximilian attems <max@stro.at> wrote:
> On Mon, May 02, 2011 at 07:00:46AM -0400, Stirling Westrup wrote:
>>
>> BOOTDIR is a variable used in update-initramfs and controls where the
>> script expects to find initrd.img files. By default it is set to
>> '/boot' but can be overridden with a setting in update-initramfs.conf
>> or by passing the -b option to update-initramfs.
>
> right mkinitramfs does it only at one place and it is a bug.
> I'd prefer to have it no knownledge of bootdir and not do such funky things.
> usually blocking those, there i overlooked.
>
Okay, but how will it handle the case of grepping config files if it
can't find them?
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: BANLkTik12PGw_eyiG1j8XYyH_54wE6XpYw@mail.gmail.com ">http://lists.debian.org/BANLkTik12PGw_eyiG1j8XYyH_54wE6XpYw@mail.gmail.com
05-02-2011, 04:13 PM
maximilian attems
Bug#624702: initramfs-tools: mkinitramfs doesn't honor setting of BOOTDIR when searching for config-... files
On Mon, May 02, 2011 at 09:07:41AM -0400, Stirling Westrup wrote:
> On Mon, May 2, 2011 at 9:01 AM, maximilian attems <max@stro.at> wrote:
> > On Mon, May 02, 2011 at 07:00:46AM -0400, Stirling Westrup wrote:
> >>
> >> BOOTDIR is a variable used in update-initramfs and controls where the
> >> script expects to find initrd.img files. By default it is set to
> >> '/boot' but can be overridden with a setting in update-initramfs.conf
> >> or by passing the -b option to update-initramfs.
> >
> > right mkinitramfs does it only at one place and it is a bug.
> > I'd prefer to have it no knownledge of bootdir and not do such funky things.
> > usually blocking those, there i overlooked.
> >
>
> Okay, but how will it handle the case of grepping config files if it
> can't find them?
well the grepping is wrong.
it should only do version comparison for XZ and LZO with appropriate cut off.
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110502161327.GA32449@vostochny.stro.at">http://lists.debian.org/20110502161327.GA32449@vostochny.stro.at