Postinst script invokes nonexistent /dev/MAKEDEV (was /sbin/MAKEDEV intended?)

Bug #382535 reported by Daniel Richard G. on 2009-06-01
This bug affects 6 people
Affects Status Importance Assigned to Milestone
mdadm (Ubuntu)

Bug Description

Binary package hint: mdadm

This concerns mdadm in Ubuntu Jaunty.

In the course of installing mdadm, I see

Setting up mdadm ( ...
Generating array device nodes... /var/lib/dpkg/info/mdadm.postinst: 170: /dev/MAKEDEV: not found
Generating mdadm.conf... done.

# grep -n MAKEDEV /var/lib/dpkg/info/mdadm.postinst
27: if /dev/MAKEDEV md >&2 >/dev/null; then
# which MAKEDEV

I believe this MAKEDEV program may have been relocated without the mdadm.postinst script being updated accordingly.

IorGie (bertroelofsen) wrote :

sudo ln -s /sbin/MAKEDEV /dev/MAKEDEV before installing mdadm seems to stop this bug.
Ubuntu 8.10 2.6.28-server

This also affects Ubuntu 9.10 (x86_64).

It appears that this bug breaks the entire Linux Software RAID system, as none of the /dev/md* devices exist.


$ sudo ln -s /sbin/MAKEDEV /dev/MAKEDEV
$ sudo apt-get --no-install-recommends install mdadm
<<< SNIP --- installer doesn't complain about /dev/MAKEDEV >>>

$ sudo mdadm --add /dev/md0 /dev/sda3
mdadm: error opening /dev/md0: No such file or directory
stefanl@gondor:~$ ls -l /dev/md*
ls: cannot access /dev/md*: No such file or directory


Shouldn't the /dev/md* devices be created when the mdadm installer invokes /dev/MAKEDEV?

Jean-Baptiste Lallement (jibel) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 368986, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Please continue to report any other bugs you may find.

Changed in mdadm (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers