Test whether to use hard-links when caching d-i downloads.
This commit is contained in:
parent
b07f1ccc01
commit
6538fac66f
|
@ -216,7 +216,12 @@ Download_file () {
|
|||
fi
|
||||
fi
|
||||
|
||||
cp -fl "${_LH_CACHE_FILE}" "${_LH_TARGET}"
|
||||
if [ "$(stat --printf %d "${_LH_CACHE_DIR}")" = "$(stat --printf %d ./)" ]
|
||||
then
|
||||
CP_OPTIONS="-l"
|
||||
fi
|
||||
|
||||
cp -f ${CP_OPTIONS} -- "${_LH_CACHE_FILE}" "${_LH_TARGET}"
|
||||
}
|
||||
|
||||
VMLINUZ_DI="vmlinuz"
|
||||
|
|
Loading…
Reference in New Issue