Bug#624702: initramfs-tools: mkinitramfs doesn't honor setting of BOOTDIR when searching for config-... files

2011-05-02 Thread Stirling Westrup
On Sat, Apr 30, 2011 at 6:38 PM, maximilian attems m...@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.
https://www.linkedin.com/e/fpf/77228
http://www.linkedin.com/in/swestrup
http://technaut.livejournal.com
http://sourceforge.net/users/stirlingwestrup



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#624702: initramfs-tools: mkinitramfs doesn't honor setting of BOOTDIR when searching for config-... files

2011-05-02 Thread maximilian attems
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-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#624702: initramfs-tools: mkinitramfs doesn't honor setting of BOOTDIR when searching for config-... files

2011-05-02 Thread Stirling Westrup
On Mon, May 2, 2011 at 9:01 AM, maximilian attems m...@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?

-- 
Stirling Westrup
Programmer, Entrepreneur.
https://www.linkedin.com/e/fpf/77228
http://www.linkedin.com/in/swestrup
http://technaut.livejournal.com
http://sourceforge.net/users/stirlingwestrup



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#624702: initramfs-tools: mkinitramfs doesn't honor setting of BOOTDIR when searching for config-... files

2011-05-02 Thread maximilian attems
On Mon, May 02, 2011 at 09:07:41AM -0400, Stirling Westrup wrote:
 On Mon, May 2, 2011 at 9:01 AM, maximilian attems m...@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-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#624702: initramfs-tools: mkinitramfs doesn't honor setting of BOOTDIR when searching for config-... files

2011-04-30 Thread Stirling Westrup
Package: initramfs-tools
Version: 0.98.8
Severity: normal



-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 4548542 Apr 22 10:19 
/boot/OS/00_Debian/initrd.img-2.6.34-zen1
-rw-r--r-- 1 root root 3655239 Apr 22 10:19 /boot/OS/00_Debian/initrd.img-2.6.36
-rw-r--r-- 1 root root 3378621 Apr 22 10:19 
/boot/OS/00_Debian/initrd.img-2.6.36-zen2-sti-02
-rw-r--r-- 1 root root 3244997 Apr 30 13:46 
/boot/OS/00_Debian/initrd.img-2.6.36-zen2-sti-03
-- /proc/cmdline
BOOT_IMAGE=/OS/00_Debian/vmlinuz-2.6.36-zen2-sti-03 root=LABEL=Debian-Root ro 
video=vesafb:ywrap,mtrr:2 fbcon=scrollback:128 vga=0x318

-- resume
RESUME=/dev/hdb3
-- /proc/filesystems
reiserfs
ext3
ext2
ext4
vfat
msdos
iso9660
udf
jfs
xfs
ocfs2
gfs2
gfs2meta
fuseblk

-- lsmod
Module  Size  Used by
nvidia  10277077  38 
vboxnetadp  5420  0 
vboxnetflt 14681  0 
bluetooth  56557  2 
ipv6  263078  50 
bridge 62594  0 
stp 1887  1 bridge
llc 4645  2 bridge,stp
i2c_i8017723  0 
ioatdma37622  0 
dca 6122  1 ioatdma
vhba7829  2 
coretemp4614  0 
hwmon_vid   2891  0 
fuse   66720  1 
vboxdrv  1790232  2 vboxnetadp,vboxnetflt

-- /etc/initramfs-tools/modules

-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no

-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
COMPRESS=gzip
BOOT=local
DEVICE=
NFSROOT=auto

-- /etc/initramfs-tools/update-initramfs.conf
update_initramfs=yes
backup_initramfs=no
BOOTDIR=/boot/OS/00_Debian

-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:

/usr/share/initramfs-tools/hooks:
busybox
dmraid
dmsetup
keymap
klibc
lvm2
thermal
udev
v86d


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (600, 'unstable'), (550, 'experimental'), (500, 'oldstable'), 
(500, 'testing')
Architecture: amd64 (x86_64)

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-1programmable completion for the ba

-- Configuration Files:
/etc/initramfs-tools/update-initramfs.conf changed:
update_initramfs=yes
backup_initramfs=no
BOOTDIR=/boot/OS/00_Debian


-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#624702: initramfs-tools: mkinitramfs doesn't honor setting of BOOTDIR when searching for config-... files

2011-04-30 Thread maximilian attems
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.
 
 -rw-r--r-- 1 root root 4548542 Apr 22 10:19 
 /boot/OS/00_Debian/initrd.img-2.6.34-zen1
 -rw-r--r-- 1 root root 3655239 Apr 22 10:19 
 /boot/OS/00_Debian/initrd.img-2.6.36
 -rw-r--r-- 1 root root 3378621 Apr 22 10:19 
 /boot/OS/00_Debian/initrd.img-2.6.36-zen2-sti-02
 -rw-r--r-- 1 root root 3244997 Apr 30 13:46 
 /boot/OS/00_Debian/initrd.img-2.6.36-zen2-sti-03

oh here I see something.

 -- /etc/initramfs-tools/update-initramfs.conf
 update_initramfs=yes
 backup_initramfs=no
 BOOTDIR=/boot/OS/00_Debian

ah and here too.
 

thank you, regards


-- 
maks



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org