Bug#469085: live-helper: md5sum can't handle all filenames
On Mon, Mar 17, 2008 at 03:52:23PM +0100, Julian Andres Klode wrote:
> find . -type f \! -name 'isolinux/isolinux.bin' \! -name
> 'boot/grub/stage2_eltorito' -print0 | xargs -0 md5sum >
> ../md5sum.txt
For recent (post-oldstable?) versions of findutils, you can use the
Single Unix Standard switch -exec {} +, for example:
find >../md5sum.txt \
-type f \
-not -name isolinux/isolinux.bin \
-not -name boot/grub/stage2_eltorito \
-exec md5sum {} +
Ref. http://www.opengroup.org/onlinepubs/009695399/utilities/find.html
> The option -e of echo is not part of the POSIX standard, but provided by bash's
> echo, ksh's echo and /bin/echo.
IIRC the Debian Policy requires /bin/sh to support echo -n, but not
echo -e. If you want echo's -e switch, use /bin/echo.
You can use the posh and dash packages to test for sh compliance.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/debian-live-devel/attachments/20080319/12914066/attachment.pgp
Reply to: