Gentoo Archives: gentoo-catalyst

From: "Åsmund Grammeltvedt" <asmundg@××××.tv>
To: gentoo-catalyst@l.g.o
Subject: Re: [gentoo-catalyst] Zero-sized busybox binaries in livecd stage2
Date: Mon, 08 Oct 2007 09:02:13
Message-Id: 200710081051.07448.asmundg@snap.tv
In Reply to: Re: [gentoo-catalyst] Zero-sized busybox binaries in livecd stage2 by "Åsmund Grammeltvedt"
1 On Thursday 04 October 2007 14:01:57 Åsmund Grammeltvedt wrote:
2 > On Wednesday 03 October 2007 14:05:15 Andrew Gaffney wrote:
3 > > You should try using _pre3, because
4 > > we always need testing :) Also, most of those 0-length files are
5 > > supposed to be symlinks to /bin/busybox. Do you have a /bin/bb?
6
7 I added some debug lines to the end of append_busybox in gen_initramfs.sh:
8
9 --- genkernel.orig/gen_initramfs.sh 2007-10-04 10:30:39.679681270 +0200
10 +++ genkernel/gen_initramfs.sh 2007-10-08 10:42:40.916698573 +0200
11 @@ -55,7 +55,9 @@
12 done
13
14 cd "${TEMP}/initramfs-busybox-temp/"
15 + find . -ls
16 find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}"
17 + cat "${CPIO}" | cpio --verbose -t
18 rm -rf "${TEMP}/initramfs-busybox-temp" > /dev/null
19 }
20
21 This gives the following result. Looks like something strange is happening with the hardlinks. Any ideas?
22
23 1611203150 0 drwxr-xr-x 3 root root 16 Oct 5 15:34 .
24 1879409654 0 drwxr-xr-x 2 root root 63 Oct 5 15:34 ./bin
25 1879409655 4 -rwxr-xr-x 1 root root 396 Oct 5 15:34 ./bin/udhcpc.scripts
26 1879409656 456 -rw-r--r-- 1 root root 462914 Oct 5 15:34 ./bin/busybox.tar.bz2
27 1879409657 900 -rwxr-xr-x 8 root root 921344 Oct 3 16:02 ./bin/busybox
28 1879409657 900 -rwxr-xr-x 8 root root 921344 Oct 3 16:02 ./bin/[
29 1879409657 900 -rwxr-xr-x 8 root root 921344 Oct 3 16:02 ./bin/ash
30 1879409657 900 -rwxr-xr-x 8 root root 921344 Oct 3 16:02 ./bin/sh
31 1879409657 900 -rwxr-xr-x 8 root root 921344 Oct 3 16:02 ./bin/mount
32 1879409657 900 -rwxr-xr-x 8 root root 921344 Oct 3 16:02 ./bin/uname
33 1879409657 900 -rwxr-xr-x 8 root root 921344 Oct 3 16:02 ./bin/echo
34 1879409657 900 -rwxr-xr-x 8 root root 921344 Oct 3 16:02 ./bin/cut
35
36 drwxr-xr-x 11 root root 0 Oct 5 15:34 .
37 drwxr-xr-x 2 root root 0 Oct 5 15:34 dev
38 crw-rw---- 1 root root 5, 1 Oct 5 15:34 dev/console
39 crw-rw---- 1 root root 1, 3 Oct 5 15:34 dev/null
40 crw------- 1 root root 4, 1 Oct 5 15:34 dev/tty1
41 drwxr-xr-x 2 root root 0 Oct 5 15:34 bin
42 drwxr-xr-x 2 root root 0 Oct 5 15:34 etc
43 -rw-r--r-- 1 root root 97 Oct 5 15:34 etc/fstab
44 drwxr-xr-x 4 root root 0 Oct 5 15:34 usr
45 drwxr-xr-x 2 root root 0 Oct 5 15:34 usr/bin
46 drwxr-xr-x 2 root root 0 Oct 5 15:34 usr/sbin
47 drwxr-xr-x 2 root root 0 Oct 5 15:34 proc
48 drwxr-xr-x 2 root root 0 Oct 5 15:34 temp
49 drwxr-xr-x 2 root root 0 Oct 5 15:34 sys
50 drwxr-xr-x 3 root root 0 Oct 5 15:34 var
51 drwxr-xr-x 3 root root 0 Oct 5 15:34 var/lock
52 drwxr-xr-x 2 root root 0 Oct 5 15:34 var/lock/dmraid
53 drwxr-xr-x 2 root root 0 Oct 5 15:34 sbin
54 lrwxrwxrwx 1 root root 3 Oct 5 15:34 lib64 -> lib
55 drwxr-xr-x 5 root root 0 Oct 5 15:34 .
56 drwxr-xr-x 2 root root 0 Oct 5 15:34 etc
57 -rwxr-xr-x 1 root root 21679 Oct 5 15:34 etc/initrd.scripts
58 -rwxr-xr-x 1 root root 1705 Oct 5 15:34 etc/initrd.defaults
59 drwxr-xr-x 2 root root 0 Oct 5 15:34 sbin
60 -rwxr-xr-x 1 root root 2300 Oct 5 15:34 sbin/modprobe
61 lrwxrwxrwx 1 root root 7 Oct 5 15:34 sbin/init -> ../init
62 -rwxr-xr-x 1 root root 19245 Oct 5 15:34 init
63 lrwxrwxrwx 1 root root 4 Oct 5 15:34 linuxrc -> init
64 drwxr-xr-x 3 root root 0 Oct 5 15:34 lib
65 drwxr-xr-x 2 root root 0 Oct 5 15:34 lib/keymaps
66 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/1.map
67 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/azerty.map
68 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/2.map
69 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/be.map
70 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/3.map
71 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/bg.map
72 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/4.map
73 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/br-a.map
74 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/5.map
75 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/br-l.map
76 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/6.map
77 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/by.map
78 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/7.map
79 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/cf.map
80 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/8.map
81 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/croat.map
82 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/9.map
83 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/cz.map
84 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/10.map
85 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/de.map
86 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/11.map
87 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/dk.map
88 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/12.map
89 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/dvorak.map
90 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/13.map
91 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/es.map
92 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/14.map
93 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/et.map
94 -rwxr-xr-x 2 505 users 0 Mar 25 2003 lib/keymaps/15.map
95 -rwxr-xr-x 2 505 users 2823 Mar 25 2003 lib/keymaps/fi.map
96 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/16.map
97 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/fr.map
98 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/17.map
99 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/gr.map
100 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/18.map
101 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/hu.map
102 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/19.map
103 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/il.map
104 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/20.map
105 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/is.map
106 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/21.map
107 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/it.map
108 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/22.map
109 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/jp.map
110 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/23.map
111 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/la.map
112 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/24.map
113 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/lt.map
114 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/25.map
115 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/mk.map
116 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/26.map
117 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/nl.map
118 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/27.map
119 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/no.map
120 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/28.map
121 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/pl.map
122 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/29.map
123 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/pt.map
124 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/30.map
125 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/ro.map
126 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/31.map
127 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/ru.map
128 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/32.map
129 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/se.map
130 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/33.map
131 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/sg.map
132 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/34.map
133 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/sk-y.map
134 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/35.map
135 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/sk-z.map
136 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/36.map
137 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/slovene.map
138 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/37.map
139 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/trf.map
140 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/38.map
141 -rwxr-xr-x 2 505 users 7389 May 12 2001 lib/keymaps/trq.map
142 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/39.map
143 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/ua.map
144 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/40.map
145 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/uk.map
146 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/41.map
147 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/us.map
148 -rwxr-xr-x 2 505 users 0 May 12 2001 lib/keymaps/42.map
149 -rwxr-xr-x 2 505 users 2823 May 12 2001 lib/keymaps/wangbe.map
150 -rwxr-xr-x 1 1000 wheel 593 Sep 13067 blocks
151 0 2003 lib/keymaps/keymapList
152 drwxr-xr-x 3 root root 0 Oct 5 15:34 .
153 drwxr-xr-x 2 root root 0 Oct 5 15:34 bin
154 -rwxr-xr-x 1 root root 396 Oct 5 15:34 bin/udhcpc.scripts
155 -rw-r--r-- 1 root root 462914 Oct 5 15:34 bin/busybox.tar.bz2
156 -rwxr-xr-x 8 root root 0 Oct 3 16:02 bin/echo
157 -rwxr-xr-x 8 root root 0 Oct 3 16:02 bin/uname
158 -rwxr-xr-x 8 root root 0 Oct 3 16:02 bin/mount
159 -rwxr-xr-x 8 root root 0 Oct 3 16:02 bin/sh
160 -rwxr-xr-x 8 root root 0 Oct 3 16:02 bin/ash
161 -rwxr-xr-x 8 root root 0 Oct 3 16:02 bin/[
162 -rwxr-xr-x 8 root root 0 Oct 3 16:02 bin/busybox
163 -rwxr-xr-x 8 root root 921344 Oct 3 16:02 bin/cut
164
165 --
166 Åsmund Grammeltvedt
167 Snap TV

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-catalyst] Zero-sized busybox binaries in livecd stage2 "Åsmund Grammeltvedt" <asmundg@××××.tv>