Fix creating directories within DESTDIR.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Glen Barber 2015-05-07 19:10:08 +00:00
parent 51aa8af2cc
commit 6052b0ac86
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ arm_install_uboot() {
UBOOT_DIR="${CHROOTDIR}/usr/local/share/u-boot/u-boot-beaglebone"
FATMOUNT="${DESTDIR}/fat"
UFSMOUNT="${DESTDIR}/ufs"
mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT}
cp -p ${UBOOT_DIR}/MLO ${CHROOTDIR}/${FATMOUNT}/MLO

View File

@ -22,7 +22,7 @@ arm_install_uboot() {
start.elf start_cd.elf uboot.img"
FATMOUNT="${DESTDIR}/fat"
UFSMOUNT="${DESTDIR}/ufs"
mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
chroot ${CHROOTDIR} mkdir -p "${FATMOUNT}" "${UFSMOUNT}"
chroot ${CHROOTDIR} mount_msdosfs /dev/${mddev}s1 ${FATMOUNT}
chroot ${CHROOTDIR} mount /dev/${mddev}s2a ${UFSMOUNT}
for _UF in ${UBOOT_FILES}; do