Re: foreign rootfs without root priviliges with multistrap, fakeroot, fakechroot and qemu user emulation

Marcus Osdoba <[email protected]>
Newsgroups gmane.linux.debian.devel.embedded
Message-ID <[email protected]>
Am 22.06.2011 11:15, schrieb Johannes Schauer:
> I was inspired by that and my script allows a similar mechanism. But the
> usage of it is just optional and one can always default to specifying
> packages in the multistrap.conf (which is more simple in my taste) or by
> commandline argument.
Hi Johannes, I have started a similar script with the goal to create a 
Debian rootfs tarball, ubimage and ext2image with some basic 
pre-configuration:
http://gitorious.org/dockstar/emdebian-multistrap
and announced it here as "multistrapwrapper".

At the beginning I used standard shell syntax, too:
http://gitorious.org/dockstar/emdebian-multistrap/trees/v0.1
The first task was a Debian based NAS-software for my seagate dockstar 
(kirkwood) with readonly ability. The configuration of the armel rootfs 
is done on the "build" host (amd64 in my case).

The script(s) lacked some flexibility, so I started to use Makefiles.
http://gitorious.org/dockstar/emdebian-multistrap/blobs/v0.2/doc/CHANGELOG

One problem was the testing of the rootfs, which I solved with 
qemu-targets. So one is able to test the configuration locally on an 
amd64 host.
http://gitorious.org/dockstar/emdebian-multistrap/trees/v0.2/configs

>>> maybe those are useful for someone.
>> If the code gets unified and it is possible to easily customize lists
>> of packages at least it'll be useful for you and me.
> The code was unified and there is a way to easily customize lists of
> packages :)
More or less, my Makefile project serves exactly the same purpose than 
your single-script, but provides a bit more flexibility - currently I'm 
working on a rootfs for powerpc on my Wii.

I'm also interested in avoiding root-rights. So I put your solution on 
my TODO-list:
http://gitorious.org/dockstar/emdebian-multistrap/blobs/master/doc/TODO#line4
(Currently, my scripts rely on sudo)

I've spotted one more point I like to "borrow" from your approach:
Use debconfseed.txt for configuring tzdata etc. (I do it manually: 
http://gitorious.org/dockstar/emdebian-multistrap/blobs/master/includes/common.mk#line166)

> Suggestions very welcome!
I have "invented" a very (very!) similar approach compared to your skript.
I dont't like to invent things twice. Do you see some chance of 
co-operation or even merging both together?

Greetings,
Marcus
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.