Control: tags -1 patch Control: retitle -1 blkdeactive hardcodes wrong path to sort
On Mon, Dec 16, 2019 at 04:38:45PM -0800, Rob Leslie wrote: > On systems upgraded from stretch and without the usrmerge package installed, > /sbin/blkdeactivate (ExecStop= of blk-availability.service) gives the > following error during system shutdown: > > blkdeactivate[12003]: /sbin/blkdeactivate: line 345: /bin/sort: No such > file or directory It seems blkdeactive hardcodes /bin/sort as path to sort, while the correct path to sort is /usr/bin/sort (which is different on non-usrmerged systems). Obvious patch to fix this attached. Cheers, Ivo
diff -Nur lvm2_2.03.11-2/scripts/blkdeactivate.sh.in lvm2_2.03.11-2i/scripts/blkdeactivate.sh.in --- lvm2_2.03.11-2/scripts/blkdeactivate.sh.in 2021-01-08 09:10:11.000000000 +0000 +++ lvm2_2.03.11-2i/scripts/blkdeactivate.sh.in 2021-02-05 23:54:56.249130804 +0000 @@ -60,7 +60,7 @@ LSBLK="/bin/lsblk -r --noheadings -o TYPE,KNAME,NAME,MOUNTPOINT" LSBLK_VARS="local devtype local kname local name local mnt" LSBLK_READ="read -r devtype kname name mnt" -SORT_MNT="/bin/sort -r -u -k 4" +SORT_MNT="/usr/bin/sort -r -u -k 4" # Do not show tool errors by default (only done/skipping summary # message provided by this script) and no verbose mode by default.