Test whether to use hard-links when caching d-i downloads.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
This commit is contained in:
parent
1376d237dc
commit
15ee6f0eae
|
@ -216,7 +216,12 @@ Download_file () {
|
||||||
fi
|
fi
|
||||||
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"
|
VMLINUZ_DI="vmlinuz"
|
||||||
|
|
Loading…
Reference in New Issue