Opened 6 years ago

Closed 6 years ago

#40 closed defect (fixed)

debirf install-kernel plugin has issues when running under fakechroot

Reported by: jrollins Owned by: dkg
Priority: major Component: debirf
Keywords: Cc:
Sensitive:

Description

It looks like there are a couple of different things that might be going wrong here:

...
run-parts: executing ./rescue/plugins/install-kernel
Selecting previously deselected package linux-image-2.6.22-2-686.
(Reading database ... 9079 files and directories currently installed.)
Unpacking linux-image-2.6.22-2-686 (from .../linux-image-2.6.22-2-686_2.6.22-4_i386.deb) ...
Could not find mkinitramfs-kpkg mkinitrd.yaird. at /srv/debirf/root/var/lib/dpkg/tmp.ci/preinst line 240, <STDIN> line 9.
Done.
dpkg: dependency problems prevent configuration of linux-image-2.6.22-2-686:
 linux-image-2.6.22-2-686 depends on initramfs-tools (>= 0.55) | yaird (>= 0.0.12-8) | linux-initramfs-tool; however:
  Package initramfs-tools is not installed.
  Package yaird is not installed.
  Package linux-initramfs-tool is not installed.
dpkg: error processing linux-image-2.6.22-2-686 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-2.6.22-2-686
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  busybox initramfs-tools klibc-utils libklibc libvolume-id0 udev
The following NEW packages will be installed:
  busybox initramfs-tools klibc-utils libklibc libvolume-id0 udev
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 907kB of archives.
After unpacking 2384kB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://debian.lcs.mit.edu lenny/main libklibc 1.5-4 [43.3kB]
Get:2 http://debian.lcs.mit.edu lenny/main klibc-utils 1.5-4 [161kB]
Get:3 http://debian.lcs.mit.edu lenny/main busybox 1:1.1.3-5 [287kB]
Get:4 http://debian.lcs.mit.edu lenny/main libvolume-id0 0.114-2 [68.9kB]
Get:5 http://debian.lcs.mit.edu lenny/main udev 0.114-2 [279kB]
Get:6 http://debian.lcs.mit.edu lenny/main initramfs-tools 0.90a [68.2kB]
Fetched 907kB in 6s (150kB/s)                                                     
dpkg-preconfigure: unable to re-open stdin: 
Selecting previously deselected package libklibc.
(Reading database ... 11387 files and directories currently installed.)
Unpacking libklibc (from .../libklibc_1.5-4_i386.deb) ...
Selecting previously deselected package klibc-utils.
Unpacking klibc-utils (from .../klibc-utils_1.5-4_i386.deb) ...
Selecting previously deselected package busybox.
Unpacking busybox (from .../busybox_1%3a1.1.3-5_i386.deb) ...
Selecting previously deselected package libvolume-id0.
Unpacking libvolume-id0 (from .../libvolume-id0_0.114-2_i386.deb) ...
Selecting previously deselected package udev.
Unpacking udev (from .../archives/udev_0.114-2_i386.deb) ...
Selecting previously deselected package initramfs-tools.
Unpacking initramfs-tools (from .../initramfs-tools_0.90a_all.deb) ...
Setting up libklibc (1.5-4) ...
Setting up klibc-utils (1.5-4) ...
Setting up busybox (1:1.1.3-5) ...
Setting up libvolume-id0 (0.114-2) ...

Warning: Fake ldconfig called, doing nothing
Setting up udev (0.114-2) ...
/sys/class/net/ is not available, persistent interface names not saved.
A chroot environment has been detected, udev not started.
Setting up initramfs-tools (0.90a) ...
Setting up linux-image-2.6.22-2-686 (2.6.22-4) ...
Running depmod.
Finding valid ramdisk creators.
Using mkinitramfs-kpkg to build the ramdisk.
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
W: mdadm: no arrays defined in configuration file.
W: mdadm: falling back to emergency procedure in initramfs.
*** glibc detected *** pwd: munmap_chunk(): invalid pointer: 0x0804d048 ***
======= Backtrace: =========
/srv/debirf/root/lib/libc.so.6(cfree+0x1bc)[0xb7e43a1c]
pwd[0x8049087]
/srv/debirf/root/lib/libc.so.6(__libc_start_main+0xe0)[0xb7dec050]
pwd[0x8048c71]
======= Memory map: ========
08048000-0804c000 r-xp 00000000 fd:06 246019     /srv/debirf/root/bin/pwd
0804c000-0804d000 rw-p 00003000 fd:06 246019     /srv/debirf/root/bin/pwd
0804d000-0806e000 rw-p 0804d000 00:00 0          [heap]
b7dc5000-b7dcf000 r-xp 00000000 fd:06 246904     /srv/debirf/root/lib/libgcc_s.so.1
b7dcf000-b7dd0000 rw-p 00009000 fd:06 246904     /srv/debirf/root/lib/libgcc_s.so.1
b7dd0000-b7dd2000 rw-p b7dd0000 00:00 0 
b7dd2000-b7dd4000 r-xp 00000000 fd:06 249717     /srv/debirf/root/lib/libdl-2.6.1.so
b7dd4000-b7dd6000 rw-p 00001000 fd:06 249717     /srv/debirf/root/lib/libdl-2.6.1.so
b7dd6000-b7f18000 r-xp 00000000 fd:06 249714     /srv/debirf/root/lib/libc-2.6.1.so
b7f18000-b7f19000 r--p 00142000 fd:06 249714     /srv/debirf/root/lib/libc-2.6.1.so
b7f19000-b7f1b000 rw-p 00143000 fd:06 249714     /srv/debirf/root/lib/libc-2.6.1.so
b7f1b000-b7f1e000 rw-p b7f1b000 00:00 0 
b7f1e000-b7f24000 r-xp 00000000 fd:02 229393     /usr/lib/libfakeroot/libfakeroot-sysv.so
b7f24000-b7f25000 rw-p 00006000 fd:02 229393     /usr/lib/libfakeroot/libfakeroot-sysv.so
b7f25000-b7f26000 rw-p b7f25000 00:00 0 
b7f26000-b7f2e000 r-xp 00000000 fd:02 560602     /usr/lib/fakechroot/libfakechroot.so
b7f2e000-b7f2f000 rw-p 00007000 fd:02 560602     /usr/lib/fakechroot/libfakechroot.so
b7f2f000-b7f31000 rw-p b7f2f000 00:00 0 
b7f31000-b7f4d000 r-xp 00000000 fd:01 32471      /lib/ld-2.6.1.so
b7f4d000-b7f4f000 rw-p 0001b000 fd:01 32471      /lib/ld-2.6.1.so
bfcfb000-bfd12000 rw-p bfcfb000 00:00 0          [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]
*** glibc detected *** pwd: munmap_chunk(): invalid pointer: 0x0804d048 ***
======= Backtrace: =========
/srv/debirf/root/lib/libc.so.6(cfree+0x1bc)[0xb7e71a1c]
pwd[0x8049087]
/srv/debirf/root/lib/libc.so.6(__libc_start_main+0xe0)[0xb7e1a050]
pwd[0x8048c71]
======= Memory map: ========
08048000-0804c000 r-xp 00000000 fd:06 246019     /srv/debirf/root/bin/pwd
0804c000-0804d000 rw-p 00003000 fd:06 246019     /srv/debirf/root/bin/pwd
0804d000-0806e000 rw-p 0804d000 00:00 0          [heap]
b7df3000-b7dfd000 r-xp 00000000 fd:06 246904     /srv/debirf/root/lib/libgcc_s.so.1
b7dfd000-b7dfe000 rw-p 00009000 fd:06 246904     /srv/debirf/root/lib/libgcc_s.so.1
b7dfe000-b7e00000 rw-p b7dfe000 00:00 0 
b7e00000-b7e02000 r-xp 00000000 fd:06 249717     /srv/debirf/root/lib/libdl-2.6.1.so
b7e02000-b7e04000 rw-p 00001000 fd:06 249717     /srv/debirf/root/lib/libdl-2.6.1.so
b7e04000-b7f46000 r-xp 00000000 fd:06 249714     /srv/debirf/root/lib/libc-2.6.1.so
b7f46000-b7f47000 r--p 00142000 fd:06 249714     /srv/debirf/root/lib/libc-2.6.1.so
b7f47000-b7f49000 rw-p 00143000 fd:06 249714     /srv/debirf/root/lib/libc-2.6.1.so
b7f49000-b7f4c000 rw-p b7f49000 00:00 0 
b7f4c000-b7f52000 r-xp 00000000 fd:02 229393     /usr/lib/libfakeroot/libfakeroot-sysv.so
b7f52000-b7f53000 rw-p 00006000 fd:02 229393     /usr/lib/libfakeroot/libfakeroot-sysv.so
b7f53000-b7f54000 rw-p b7f53000 00:00 0 
b7f54000-b7f5c000 r-xp 00000000 fd:02 560602     /usr/lib/fakechroot/libfakechroot.so
b7f5c000-b7f5d000 rw-p 00007000 fd:02 560602     /usr/lib/fakechroot/libfakechroot.so
b7f5d000-b7f5f000 rw-p b7f5d000 00:00 0 
b7f5f000-b7f7b000 r-xp 00000000 fd:01 32471      /lib/ld-2.6.1.so
b7f7b000-b7f7d000 rw-p 0001b000 fd:01 32471      /lib/ld-2.6.1.so
bf8e1000-bf8f8000 rw-p bf8e1000 00:00 0          [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]
rm: cannot remove `/srv/debirf/root/vmlinuz': No such file or directory
rm: cannot remove `/srv/debirf/root/initrd.img': No such file or directory
run-parts: executing ./rescue/plugins/interfaces
...

Change History (2)

comment:1 Changed 6 years ago by jrollins

I should add that it appears that the kernel is being installed, although I haven't had a chance to test it yet.

comment:2 Changed 6 years ago by jrollins

  • Resolution set to fixed
  • Status changed from new to closed

This problem seems to have been fixed after /etc/hosts was properly created (see ticket #39).

Note: See TracTickets for help on using tickets.