[arch-releng] [RFC] [PATCH] [archiso] Add checksum= boot param
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
Am 12.08.2011 05:26, schrieb Gerardo Exequiel Pozzi:
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.
We can add md5sum in the next busybox rebuild, it shouldn't take up too much space. Any particular reason for choosing md5 here?
On 08/12/2011 06:39 AM, Thomas Bächler wrote:
Am 12.08.2011 05:26, schrieb Gerardo Exequiel Pozzi:
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. We can add md5sum in the next busybox rebuild, it shouldn't take up too much space. Any particular reason for choosing md5 here?
Thanks, Nothing special just some checksum to compare. No digital sign ;) -- Gerardo Exequiel Pozzi \cos^2\alpha + \sin^2\alpha = 1
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> --- > +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
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>> --- >> +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
participants (3)
-
Gerardo Exequiel Pozzi
-
Pierre Schmitz
-
Thomas Bächler