# Distributed under the GPL v2
# $Id$
+ 17 May 2012; Sebastian Pipping <sping@gentoo.org> defaults/linuxrc:
+ Fix call to blkid as "blkid -l -t UUID=foo" (without -o device) does not seem
+ to work well with blkid of util-linux
+
17 May 2012; Sebastian Pipping <sping@gentoo.org> genkernel:
Bump version to 3.4.33
fi
if [ "${retval}" -ne 0 ]; then
- REAL_LUKS=`blkid -l -t "${LUKS_DEVICE}" | cut -d ":" -f 1 2>/dev/null`
+ REAL_LUKS=`blkid -o device -l -t "${LUKS_DEVICE}"`
retval=$?
fi
fi
if [ ${retval} -ne 0 ]; then
- RESUME_DEV=$(blkid -l -t "${REAL_RESUME}" | cut -d ":" -f 1 2>/dev/null)
+ RESUME_DEV=$(blkid -o device -l -t "${REAL_RESUME}")
retval=$?
fi
fi
if [ ${retval} -ne 0 ]; then
- ROOT_DEV=$(blkid -l -t "${REAL_ROOT}" | cut -d ":" -f 1 2>/dev/null)
+ ROOT_DEV=$(blkid -o device -l -t "${REAL_ROOT}")
retval=$?
fi