On 08/12/2011 06:41 AM, Pierre Schmitz wrote:
On Fri, 12 Aug 2011 00:26:36 -0300, Gerardo Exequiel Pozzi wrote:
NOTE 1: Needs md5sum, not added here.
Option 1: Use md5sum from coreutils.
Option 2: Use md5sum from mkinitcpio-busybox (currently is not builded).
NOTE 2: This is a draft without testing, but should works.
Signed-off-by: Gerardo Exequiel Pozzi<[email protected]>
---
+command_checksum () {
+ _show_config checksum
+
+ _msg_info "Creating checksum file for self-test"
+ find "${work_dir}/iso/${install_dir}" -print0 | xargs -0 md5sum
"${work_dir}/iso/${install_dir}/checksum.md5"
+ _msg_info "Done!"
+}
+
You might end up with the full path included in the checksum file here.
So you should change to the instll_dir and use a relative path from
here.
Good catch, thanks.
--
Gerardo Exequiel Pozzi
\cos^2\alpha + \sin^2\alpha = 1