Use "cp -f" instead of "rm" and "cp" to break the hardlink to

device.hints.

Submitted by:	ru
This commit is contained in:
Brooks Davis 2004-09-15 05:14:21 +00:00
parent c859ef977e
commit 3f332bb341
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135257

View File

@ -919,8 +919,7 @@ cdrom.1:
@echo 'mfsroot_name="/boot/mfsroot"' >> ${CD_DISC2}/boot/loader.conf
.if exists(${HINTSFILE})
# Break the link to device.hints so we can modify it
@rm ${CD_DISC2}/boot/device.hints
@cp ${HINTSFILE} ${CD_DISC2}/boot/device.hints
@cp -f ${HINTSFILE} ${CD_DISC2}/boot/device.hints
.if ${TARGET} == "i386" || ${TARGET_ARCH} == "amd64"
@echo 'hint.atkbd.0.flags="0x1"' >> ${CD_DISC2}/boot/device.hints
.endif