-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 26 Mar 2014 09:15:57 +0000
Gordan Bobic <gordan(a)bobich.net> wrote:
On 2014-03-26 07:38, Peter TB Brett wrote:
> I'd like to build a new armv7hl image that includes the latest
> packages from updates-stable, so that I can directly create an SD
> card that can boot
> our various Pandaboards.
>
> I tried searching around the Fedora wiki and with Google, but I
> didn't find
> anything that looked like a HOWTO for this. Maybe I'm not looking
> for the
> right search terms. Can you please point me in the direction of
> some docs
> that'll help me with this?
You can do two things:
1) Starting with an existing image, do the following:
mount /path/to/existing.img /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt
Then create a .repo file in /etc/yum.repos.d/ for the repository you
want to include if it isn't already there, and do
yum update
yum install <extra packages you want to install>
Please don't do this. by default the fedora images have the updates
repo installed and enabled so you do not need to create a .repo file.
it is just plain ugly and the instructions are incomplete anyway.
2) Starting from scratch, you can do:
yum --installroot=/path/to/new/rootfs/subdirectory \
glibc filesystem coreutils initscripts \
<plus any other packages you want in your image>
This is the completely wrong way to go about doing things
you should use appliance-creator which is part of the appliance-tools
package and a kickstart file. you can work with what is in
spin-kickstarts package as a great starting point.
Dennis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iQIcBAEBAgAGBQJTMtyiAAoJEH7ltONmPFDRxQQP/ipyP6zmfijdynFhO4ulGHXb
7dqpQ39JRCzO+dotGC53EmoZdsqDK5H/gFC56ayk6pgXYh9wlvwZvUnV0/H5N2Py
P3d+4NPSTQykYXQx/OgIZF0trZhKaTsBXKej+ergFptinMD/VESy08nZ1XtEFTlF
cCRcq8ylbcdxL/EHBfb2MTctnf4tDP4W7eIM4VufDe3UKVkacFDkaybfsxIsMI0Q
Hs2m8zCeNfQ8D9wZ/jfIgxkUsE+wa4sBPQeIy7zhjhMPbuDVv9eh/YojVzq7BvpW
hEuO/1ZpMr+HElMXku90uUB3kw+1Dn6+Hq495rHjPC7RFKh1kiQBphs/vribBr4t
F8hQ2VVw/2It3prjIDN1IVReUNrfjyR3YvMjOzBINnOAOaYfkK2YrmQuWCbwc59n
32nuZBlR3kkdSrXI5hNNCoKdCSMZQzHyVaIx4q+vMaQuw+nlDowd+/C1wJkYZB3x
KWExPdKMhw5kPbpDpJ8o73nCl2iMps+ZTb2bTxFUY9d10agy6ukHZfCa2nHS3sXf
Wp5oINBKhp56JZOZWjuRuxhjXfVdL1zLChroM9tQUh75HlyElddSvLv3u2mu7aO3
aiSwfxtK0uWJPLR5s1xOL1DpglRhn1LXFePYFsBsClL7hYQG1lWB48Zgy0MOAxxQ
ii6JfUnSrR6e7aAgc4Bl
=BdS0
-----END PGP SIGNATURE-----