bsdinstall: don't fail if fstab is empty

PR:		210865
Submitted by:	Tim Lukasiewicz <eclipzetech08@gmail.com>, h-fujishima@sakura.ad.jp (original version)
Reported by:	h-fujishima@sakura.ad.jp
Reviewed by:	sef
MFC after:	2 weeks
Sponsored by:	Klara Inc.
Event:		July 2020 Bugathon
This commit is contained in:
Allan Jude 2020-07-11 17:06:48 +00:00
parent d36485a5c8
commit 5b8d2467eb

View File

@ -39,4 +39,6 @@ cat $PATH_FSTAB | awk -v BSDINSTALL_CHROOT=$BSDINSTALL_CHROOT '{
}' > $TMP_FSTAB
umount $BSDINSTALL_CHROOT/dev 2>/dev/null
umount -F $TMP_FSTAB -a 2>/dev/null
if [ -n "$TMP_FSTAB" ]; then
umount -F $TMP_FSTAB -a 2>/dev/null
fi