re-emerging gives : n22 /etc/modprobe.d # ll total 20 -rw-r--r-- 1 root root 1028 Dec 15 14:51 alsa -rw-r--r-- 1 root root 870 Apr 8 16:19 blacklist -rw-r--r-- 1 root root 854 May 11 13:46 blacklist.conf -rw-r--r-- 1 root root 537 May 11 13:46 pnp-aliases.conf -rw-r--r-- 1 root root 299 Oct 10 2008 ppp n22 /etc/modprobe.d # diff blacklist blacklist.conf 18c18 < blacklist pcspkr --- > #blacklist pcspkr 27,28d26 < blacklist ath5k < n22 /etc/modprobe.d # etc-update Scanning Configuration files... Exiting: Nothing left to do; exiting. :) I had manually to merge my local changes by this : n22 /etc/modprobe.d # rm blacklist.conf n22 /etc/modprobe.d # mv blacklist blacklist.conf Reproducible: Always
So what do you suggest? We could add this code to pkg_preinst: oldf=$ROOT/etc/modprobe.d/blacklist newf=$ROOT/etc/modprobe.d/blacklist.conf if [[ -f $oldf && ! -f $newf ]]; then elog "Renaming file $oldf to blacklist.conf" mv "$oldf" "$newf" fi
looks good IMHO
Commited to udev-124-r2 and udev-141. Btw. you need not modify the existing file blacklist.conf, you also can add new files with your blacklist entries.