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

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.

Stirling Westrup
Programmer, Entrepreneur.

Reply to: