more cryptsetup fixes

This commit is contained in:
Tobias Powalowski 2011-02-08 17:06:48 +01:00
parent ef04233088
commit 049fa2f4eb

View file

@ -4438,7 +4438,7 @@ auto_luks()
# remove root device from crypttab
if [[ -e /tmp/.crypttab && "$(grep -v '^#' ${DESTDIR}/etc/crypttab)" = "" ]]; then
# add to temp crypttab
sed -i -e "/ $(basename ${PART_ROOT}) /d" /tmp/.crypttab
sed -i -e "/^$(basename ${PART_ROOT}) /d" /tmp/.crypttab
cat /tmp/.crypttab >> ${DESTDIR}/etc/crypttab
fi
}