# Ubuntu's ddrutility, rebuilt with x86's ddru_diskutility fix # (06-pmagic-diskutility.patch, the same file; x86 notes/packages.md, # 2026-11-06). Its ATA Identify declared no transfer length, so the kernel # refused it and -I and every ATA or SCSI read stopped there on SATA # drives; it also copied the device's name into a 20-byte buffer, so # /dev/disk/by-id paths failed. Only ddru_diskutility changes; the other # tools are Ubuntu's as built. cd /work apt-get update -q apt-get source -q ddrutility cd "$(find . -maxdepth 1 -mindepth 1 -type d -name 'ddrutility-*' | head -1)" base=$(dpkg-parsechangelog -S Version) want=$(cat /src/BASE_VERSION) if [ "$base" != "$want" ]; then echo "Ubuntu's ddrutility is $base; the patch was checked against $want." >&2 exit 1 fi apt-get build-dep -y -q ./ cp /src/06-pmagic-diskutility.patch debian/patches/ echo 06-pmagic-diskutility.patch >> debian/patches/series quilt --quiltrc=- push -a quilt --quiltrc=- pop -a dch -v "${base}+pmagic1" -D resolute \ "ddru_diskutility: give ATA Identify a transfer length, and follow links to the device." DEB_BUILD_OPTIONS="nocheck parallel=$JOBS" dpkg-buildpackage -b -uc -us cp ../*.deb /out/