[arch-releng] [RFC] [PATCH] [archiso] Add checksum= boot param
Pierre Schmitz
pierre at archlinux.de
Fri Aug 12 05:41:44 EDT 2011
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 <vmlinuz386 at yahoo.com.ar>
> ---
> +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.
--
Pierre Schmitz, https://users.archlinux.de/~pierre
More information about the arch-releng
mailing list