[klibc] [patch] simplify nuke

maximilian attems maks at sternwelten.at
Thu Aug 24 01:05:16 PDT 2006


On Wed, Aug 23, 2006 at 02:19:57PM -0700, H. Peter Anvin wrote:
> maximilian attems wrote:
> >please pull
> >git://charm.itp.tuwien.ac.at/mattems/klibc/.git maks
> >
> >for the change:
> >maximilian attems:
> >      [klibc] simplify nuke
> >
> >fixes boot failures due to unexpected error returns
> >
> 
> Looks like you completely remove all error checking; the program will 
> exit 0 no matter what.
> 
> Could you please elucidate?
> 
> 	-hpa

rm -rf is not expected to return an error.
we had several boot failures due to the udev initramfs script using errexit.
it was after the replacement of busybox rm -rf by nuke.
$  head -n 1 /usr/share/initramfs-tools/scripts/init-premount/udev 
#!/bin/sh -e

aboves patch is based on the idea that nuke is the same as rm -rf.

--
maks



More information about the klibc mailing list