Package: live-build
Version: 2.0.9-1
Severity: normal

/lib/udev/vol_id doesn't exist anymore, but this works:

--- /usr/share/live/build/examples/hooks/all_chroot_losetup-lukshome.sh 
2010-12-06 06:05:40.000000000 -0500
+++ config/chroot_local-hooks/all_chroot_losetup-lukshome.sh    2010-12-14 
10:26:24.000000000 -0500
@@ -333,27 +333,7 @@
        esac
 done
 
-# search for a partition labeled "lukshome" or $LUKSPART
-for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -v loop | grep -v ram 
| grep -v fd)
-do
-       for dev in $(subdevices "${sysblock}")
-       do
-               devname=$(sys2dev "${dev}")
-               # find partition name and filesystem type
-               if [ "$(/lib/udev/vol_id -l ${devname} 2>/dev/null)" = 
"${LUKSPART}" ]
-               then
-                       # found one partition with correct label
-                       CRYPTHOME="${devname}"
-                       # don't search further
-                       break
-               fi
-       done
-       # if already found, don't search further
-       if [ -n "${CRYPTHOME}" ]
-       then
-               break
-       fi
-done
+CRYPTHOME=$(/sbin/blkid -L ${LUKSPART})
 
 # if no partition found, exit
 if [ -z "${CRYPTHOME}" ]



-- 
To UNSUBSCRIBE, email to debian-live-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20101214184946.ga30...@scru.org

Reply via email to