[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH 2/2] Remove kernel backups before handle linux image



My feeling is that this is the wrong fix for the wrong problem.
I think that the wildchar that matches the miltiple initrd's is the
problem and that the wildchar should be removed and replaced with the
full file name that we want to copy. The advantage of my proposed fix
to this fix is that this would fix the issue when three are 2 kernels
in testing (like we had a few weeks back) too.

Sorry to sound negative!
Alex Owen

On 26/10/06, Otavio Salvador <otavio@ossystems.com.br> wrote:
> From: Otavio Salvador <otavio@ossystems.com.br>
>
> There's some corner cases that can cause you to have backup files of
> initrd or something related. Since those backups aren't useful to us
> we remove them before proceed otherwise we'll fail to copy them since
> the wildchar will match more then one file and the target isn't a
> directory.
> ---
>
>  src/scripts/21image.sh |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/src/scripts/21image.sh b/src/scripts/21image.sh
> index 57c3d9f..bc35d0d 100644
> --- a/src/scripts/21image.sh
> +++ b/src/scripts/21image.sh
> @@ -210,6 +210,9 @@ Syslinux ()
>
>  Linuximage ()
>  {
> +       # Remove backup files before proceed
> +       rm -f "${LIVE_CHROOT}"/boot/*.bak
> +
>         case "${1}" in
>                 iso)
>                         # Copy linux-image
>
> _______________________________________________
> Debian-live-devel mailing list
> Debian-live-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel
>


Reply to: