FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 04-30-2011, 06:41 PM
Stirling Westrup
 
Default Bug#624702: initramfs-tools: mkinitramfs doesn't honor setting of BOOTDIR when searching for config-... files

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_i801 7723 0
ioatdma 37622 0
dca 6122 1 ioatdma
vhba 7829 2
coretemp 4614 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-1 programmable 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-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
 
Old 04-30-2011, 10:38 PM
maximilian attems
 
Default 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.

> -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-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
 
Old 05-02-2011, 11:00 AM
Stirling Westrup
 
Default 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.
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-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
 
Old 05-02-2011, 01:01 PM
maximilian attems
 
Default 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
 
Old 05-02-2011, 01:07 PM
Stirling Westrup
 
Default 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?

--
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-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
 
Old 05-02-2011, 04:13 PM
maximilian attems
 
Default 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
 

Thread Tools




All times are GMT. The time now is 02:46 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org