Improve check for whether ${DESTDIR}/dev is mounted.
Submitted by: gcooper
This commit is contained in:
parent
13d930d0d5
commit
421e560425
@ -45,7 +45,7 @@ err() {
|
||||
}
|
||||
|
||||
cleanup() {
|
||||
if mount | grep -qE "devfs on ${DESTDIR}/dev"; then
|
||||
if [ -c "${DESTDIR}/dev/null" ]; then
|
||||
umount_loop ${DESTDIR}/dev 2>/dev/null
|
||||
fi
|
||||
umount_loop ${DESTDIR}
|
||||
|
Loading…
Reference in New Issue
Block a user