Silence errors when umounting the chroot's /dev, since it probably doesn't
exist when we're running this. Unmount filesystems before attempting to destroy the md which holds them.
This commit is contained in:
parent
ee5ba5e498
commit
9e2769f85a
@ -42,11 +42,11 @@ err() {
|
||||
}
|
||||
|
||||
cleanup() {
|
||||
umount ${DESTDIR}/dev 2>/dev/null
|
||||
umount ${DESTDIR}
|
||||
if [ ! -z "${mddev}" ]; then
|
||||
mdconfig -d -u ${mddev}
|
||||
fi
|
||||
umount ${DESTDIR}/dev
|
||||
umount ${DESTDIR}
|
||||
|
||||
return 0
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user