Gentoo Archives: gentoo-catalyst

From: Amit Dor-Shifer <amitds@××××××.com>
To: gentoo-catalyst@l.g.o
Subject: [gentoo-catalyst] How did package XYZ get into the liveCD?
Date: Sun, 14 Sep 2008 11:30:09
Message-Id: 48CCF5B5.2090203@oversi.com
1 Hi all.
2 After finishing stage2, looking at the image file, I see that it
3 includes /sbin/sfdisk:
4
5 disk_replace ~ # mount|grep image.squashfs
6 /var/tmp/catalyst/builds/replace_disk/livecd-stage2-i686-101/image.squashfs
7 on /mnt/cdrom type squashfs (ro,loop=/dev/loop0)
8 disk_replace ~ # ls -la /mnt/cdrom/sbin/sfdisk
9 -rwxr-xr-x 1 root root 51684 Jun 15 16:28 /mnt/cdrom/sbin/sfdisk
10
11
12 which AFAIK belongs to util-linux (so my root FS says).
13
14 disk_replace ~ # equery b /sbin/sfdisk
15 [ Searching for file(s) /sbin/sfdisk in *... ]
16 sys-apps/util-linux-2.13.1.1 (/sbin/sfdisk)
17
18 I didn't specify util-linux in livecd/packages, nor did I see it merged
19 in stage1's output. In fact, the binary that resides in my sqashfs image
20 is the same one from the initial stage3 I downloaded from gentoo:
21
22 disk_replace bla # tar xvjf
23 /var/tmp/catalyst/builds/stage3-x86-2008.0.tar.bz2 ./sbin/sfdisk
24 ./sbin/sfdisk
25 disk_replace bla # ls
26 sbin
27 disk_replace bla # cd sbin/
28 disk_replace sbin # md5sum sfdisk
29 68f84ca6f42380cb8594051dc7fd6e13 sfdisk
30 disk_replace sbin # md5sum /mnt/cdrom/sbin/sfdisk
31 68f84ca6f42380cb8594051dc7fd6e13 /mnt/cdrom/sbin/sfdisk
32
33 So, I'm confused. Which parts of the liveCD get built and which are just
34 copied from the initial stage3 tarball?
35
36 Thanks,
37 Amit

Replies

Subject Author
Re: [gentoo-catalyst] How did package XYZ get into the liveCD? Andrew Gaffney <agaffney@g.o>