[elbe-devel] installing in finetuning with cdrom source

John Ogness jogness at linutronix.de
Sat Oct 26 10:08:06 CEST 2013


Hi,

If you are using install.iso as your apt source (elbe setcdrom) and you
want to install packages during finetuning, you need to have /sys
mounted in the target root. Here is an example installing bc.

<finetuning>
<command>apt-get -y install bc</command>
<command>mount -t sysfs none sys</command>
<command>chroot . apt-get -y install bc</command>
<command>umount sys</command>
</finetuning>

Here is an explanation of the above commands.

apt-get -y install bc

First we install bc to the host image. We need to install it to the host
image because the install.iso generated later uses the dpkg repository
from the host image and we want bc to be part of the next install.iso.

mount -t sysfs none sys

Next we mount sysfs to the target root. This is necessary because apt
uses sysfs to automount the source cdrom.

chroot . apt-get -y install bc

Next we install bc to the target root using chroot.

umount sys

Finally we unmount sysfs in the target root.


Obviously I could just add bc to the pkg-list and it would also install
without all this. However, there are packages (for example klogd) where
it is necessary to install them during finetuning because they will not
install if only part of the pkg-list.


Some possible suggestions for changes to elbe:

1. Take the apt-repositories from the target for install.iso instead of
   the apt-repositories from the host.

2. Automatically mount /target/sys for the finetuning phase.


I do not mind working with elbe the way it is now. Using finetuning it
is possible to install from cdrom in finetuning and have them show up in
install.iso. My suggestions may have other unwanted side-effects in
elbe. I will leave it as an excercise for the elbe designers to decide
if the suggestions are more useful than harmful.

John Ogness




More information about the elbe-devel mailing list