Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

98.10. mdadm-4.6

Linux software RAID management

4.6-1 · GPL-2.0-or-later · 0.3 SBU · 1.3 MiB, 12 files · 41_system, 391 of 1047 · ports/core/disk/mdadm

Homepage: https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/disk.txt:

Linux software RAID. Without it an existing array is neither assembled at boot nor readable afterwards, which is a disk that looks empty.

Depends on: eudev.

Required by (3): gparted, kpmcore, libblockdev.

Sources: mdadm-4.6.tar.gz (610.9 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install mdadm'

build.sh:

MDADM_MAKE=(BINDIR=/usr/sbin COROSYNC=-DNO_COROSYNC DLM=-DNO_DLM CXFLAGS="$CFLAGS -Wno-error")
make "${MDADM_MAKE[@]}"
make DESTDIR=$PKG "${MDADM_MAKE[@]}" install

install -d "$PKG/etc"
cat > "$PKG/etc/mdadm.conf" <<'EOF'
# Arrays are found by scanning rather than by being listed here: a machine
# whose disks moved is a machine whose listed device paths are wrong, and the
# superblock on each member already carries the array's identity.
DEVICE partitions
EOF

Programs: mdadm, mdmon.

Directories: /usr/share/licenses/mdadm.