diff -up powerpc-utils-1.3.9/scripts/bootlist.me powerpc-utils-1.3.9/scripts/bootlist --- powerpc-utils-1.3.9/scripts/bootlist.me 2022-02-08 10:55:22.056006203 +0100 +++ powerpc-utils-1.3.9/scripts/bootlist 2022-02-08 10:55:57.400202890 +0100 @@ -270,14 +270,14 @@ dm_to_part() done - kpartx -p $delim -l $dmmapper | while read kp ; do + kpartx -p "$delim" -l $dmmapper | while read kp ; do kpname=${kp%% *} tmajor=$(stat -L --format="%t" /dev/mapper/$kpname 2>/dev/null) tminor=$(stat -L --format="%T" /dev/mapper/$kpname 2>/dev/null) tmajmin=$(printf "%d:%d" 0x$tmajor 0x$tminor) if [[ "$tmajmin" = "$dmpmajmin" ]]; then partstart=${kp##* } - for part in `ls -1d /sys/block/$sddev/$sddev*`; do + for part in `ls -1d /sys/block/$sddev/$sddev* 2>/dev/null`; do pstart=$(cat $part/start 2>/dev/null) if [[ "$pstart" -eq "$partstart" ]] ; then echo "${part##*/}"