Re: [PATCH RESEND] Don't remove /sys in initramfs

From: Andrew Morton
Date: Thu Nov 11 2004 - 20:03:23 EST


Juerg Billeter <juerg@xxxxxxxxx> wrote:
>
> Using the "resume" kernel parameter together with an initramfs revealed
> a bug that causes removal of the /sys directory in the initramfs' tmpfs,
> making the system unbootable.
>
> The source of the problem is that the try_name() function removes
> the /sys directory unconditionally, instead of removing it only when it
> has been created by try_name().
>
> The attached patch only removes /sys if it has been created before.

The patch looks sane. Your email client replaced tabs with spaces. I
fixed that up. In future, please send the patch to yourself first, check
that it still applies, then send it on, thanks.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/