From e8d7333d7dbc76ab65cd3a7747364ded31602fdd Mon Sep 17 00:00:00 2001 From: Glen Barber Date: Thu, 2 Jul 2015 02:33:58 +0000 Subject: [PATCH] Fix the path to the UFS/MSDOSFS filesystem labels, since they cannot possibly exist within the chroot(8) before the target filesystem actually exists. MFC after: 3 days X-MFC-With: r285018 Sponsored by: The FreeBSD Foundation --- release/tools/arm.subr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/tools/arm.subr b/release/tools/arm.subr index 2874d6f4748..d9018e97d1b 100644 --- a/release/tools/arm.subr +++ b/release/tools/arm.subr @@ -70,8 +70,8 @@ arm_create_disk() { # Trust me. I'm an engineer. if [ ! -z "${EVERYTHINGISFINE}" ]; then for _label in ufs/rootfs msdosfs/MSDOSBOOT; do - if [ -e "${CHROOTDIR}/dev/${_label}" ]; then - rm ${CHROOTDIR}/dev/${_label} + if [ -e "/dev/${_label}" ]; then + rm /dev/${_label} fi done fi