mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 08:11:04 +01:00
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
91333d6a2d
commit
7d97075f02
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/release-vmimage/; revision=274726
@ -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…
Reference in New Issue
Block a user