[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: install the deb with chroot env,error?



Hello,

2010/5/17 tangke <mumutouv@gmail.com>:
> We've written a small installer, which will extract a base system
> archive, and then install additional debs in a chroot environment.

Out of curiosity, who is we? Is it posible to have a look to such
installer code?
Have you tried multistrap? [1]

> How to avoid stoping/starting a service while installing a service
> package? How does debian installer take care of it?

I do believe running post install scripts is mandatory nowadays in
order to have a well configured Debian rootfs. While doing (first
stage) cross debootstrap [2] of a Debian rootfs it is not posible to
run those scripts (iirc, start-stop-daemon gets renamed to
start-stop-daemon.REAL and the former it is just a dummy script which
prints some text), then on the target device you need to run post
install scripts via second-stage. While debian-installer relais on
debootstrap I am unsure which way they use, but they also use udeb.

Being able to have a configured rootfs without running post install
scripts is under investigation via Baked [3], but it is not
upgradeable. You probably can see how useful are post install scripts
in upgrades while useless for trully embedded systems.

[1] http://wiki.debian.org/Multistrap
[2] http://wiki.debian.org/EmDebian/CrossDebootstrap
[3] http://www.emdebian.org/baked/

Cheers,
-- 
 Héctor Orón

"Our Sun unleashes tremendous flares expelling hot gas into the Solar
System, which one day will disconnect us."


Reply to: