package mdadm doesn't respect /usr/sbin/policy-rc.d on installation

Bug #801552 reported by Mirko Dölle on 2011-06-24
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mdadm (Ubuntu)

Bug Description

Tested with:
  Ubuntu 10.10, Ubuntu 10.04 LTS (all updates installed)

  mdadm daemon starts after package installation regardless of the return value from /usr/sbin/policy-rc.d

How to reproduce (indention added):
  mkdir /some/dir
  debootstrap --arch i386 maverick /some/dir
  mkdir -p /some/dir/dev /some/dir/proc /some/dir/sys
  mount --bind /dev squashfs/dev
  mount -t proc proc squashfs/proc
  mount -t sysfs sysfs squashfs/sys
  cat > squashfs/usr/sbin/policy-rc.d << EOF
  exit 101
  chroot squashfs apt-get -y install mdadm

Expected behaviour:
  With return value 101 of /usr/sbin/policy-rc.d, mdadm should not be started at all

Why this is a problem:
  Prevents clean bootstraps of ubuntu including mdadm, extra care has to be taken that the daemon ceases bevor building the distro and leaves unwanted log entries that have to be cleaned afterwards.

Mirko Dölle (mirko-a) wrote :

... sorry, "squashfs/" should have been replaced by "/some/dir" everywhere.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers