Bug#389821: live-package: make-live fails when mdadm is included
reassign 389821 mdadm
thanks
srdjan wrote:
> LIVE_PACKAGES="mdadm lvm2"
> Setting up mdadm (2.5.3.git200608202239-6) ...
> dpkg: error processing mdadm (--configure):
> subprocess post-installation script returned error exit status 1
> Errors were encountered while processing:
> mdadm
> E: Sub-process /usr/bin/dpkg returned an error code (1)
mdadm is know to be broken when installing in a chroot without having
/proc mounted, maintainer should check for /proc in the maintainer
scripts (and don't do anything if /proc isn't there, hence reassigning
to mdadm).
temporary workaround: install mdadm when you've booted the live system,
then it works.
and yes, mounting /proc in the chroot is not a solution, because:
* there are cases where it is not possible to unmount a mounted /proc
in a chroot if certain (unkillable) processes access it. since only
rebooting the whole system helps, we do not mount /proc in the
chroot.
* mdadm maintainer scripts do read out /proc to scan for raid devices.
if your host system has a raid, you end up with a preconfigured
mdadm in your live-system, which is not (or not always
intentionally) what you want.
Regards,
Daniel
--
Address: Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email: daniel.baumann@panthera-systems.net
Internet: http://people.panthera-systems.net/~daniel-baumann/
Reply to: