Re: Creating rootfs using multistrap from local repository

Neil Williams <[email protected]>
Newsgroups gmane.linux.debian.devel.embedded
Message-ID <[email protected]>
On Sat, 22 Mar 2014 23:37:50 -0700 (PDT)
KianVine Chin <[email protected]> wrote:

> Hello All,
> 
> I have studied multistrap for sometime now but I don't see this
> question being asked.  Maybe it is invalid but I don't see why.
> 
> I made an initial rootfs
> using source=http://ftp.uk.debian.org/emdebian/grip and save the
> source packages in a separate directory using 'retainsources'
> keyword.  Is it possible to create the same rootfs using packages
> saved in the 'retainsources' directory?  This would avoid downloading
> from the remote server again.

retainsources downloads the *source* packages, not the binaries which
get installed. You would have to rebuild all the packages from the
sources downloaded. retainsources is primarily for licence compliance,
not caching.

> I see some mentions of "copy://" and "file://" but not sure if it is
> use for this purpose.  If it is, how exactly do I used it?

A directory is simply a flat file archive.
https://wiki.debian.org/Multistrap/FlatFileArchives

What you actually want is a local partial mirror.
https://wiki.debian.org/Multistrap/PartialMirrors

That would contain the binaries downloaded from Debian (and can
optionally contain the sources too as it will be more efficient for the
mirror to retain these than to use the retainsources option of
multistrap).

-- 


Neil Williams
=============
http://www.linux.codehelp.co.uk/
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBCAAGBQJTLrPEAAoJEPFn5DyBQ7aCRDAQAI4jcWfdt3m1XY2eo7rIrN0n
BUiJAHkriC9VG+o+kJ2xNJOalICFZV2C0Ou4OSAWm8f7vqdERXD+Y1TcnK5jhRoY
NiaOjTn+aUFJk5OVk+jbQ9wGiMTid1RLd9PjMHYPeBToYMxmElE0g87pi+jh7kst
K/CU0IWjKNCYfXhIWJZl7tuuWwzVDukGfN7tIu3RalOOXqcmUlCURfQGQxGn5NJy
AwjySA7L413oPWZl+OHUizeYVibi5i/xpGtTVxck8FLHW64xs/O+1QqhKZyrVnMN
4WOfGUaU8t3hhRk7vD+6PcqmvVa6jnMQFl2xz2nFH4FV97q2aQm6qThEzpBIKV3G
urafeXdbHSYyAPYuoVf7k1GSTfJuegPmiORCnTObIdiounJUyqvXRwikeOE+he/Y
Gen7jTFnkO+l0pGzX5klItJUsZ2DrO9MqPVqYfWShp7S7rWwBYo3fM6QSL/nFJLL
j4qMYzrk5mNC61RXNFAs9MIvDIxESC0nbleMq2ywwuxKhX0Jx00LHfVhndQ2KOGO
qsilmiI7+oy9KbcygnPa5sAsEyxZHSHkanQqArbJhocfc0pAGRTCVPcxclN+QDh/
UF9DYQEBaEtIjnl5N+Bpa7VWaRrMEWOQ4eQM8cHeyvCULMvGB7Hk4EMBIx1djh1C
vXGbRfqPJMnNq9Z7Jzu2
=0neZ
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.