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

Re: [debian-edu-commits] debian-edu/ 01/01: Fix cf/cf.grub:



On Fri, Oct 21, 2016 at 06:37:40PM +0000, Holger Levsen wrote:
> editfiles:
>     debian.installation.!server.!ltspclient::
>       { /etc/default/grub
>         BeginGroupIfNoSuchLine 'GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 quiet splash"'
>           HashCommentLinesStarting 'GRUB_CMDLINE_LINUX_DEFAULT'
>           LocateLineMatching '#.*GRUB_CMDLINE_LINUX_DEFAULT.*'
>           InsertLine 'GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 quiet splash"'
>         EndGroup
>       }
> 
> 
> which is wrong I think, as now roaming+standalone get the old network
> names, while they shouldn't…

yes.
 
I guess adding another 'editfiles:' on top (and adjust the last one) 
could do it right. Might be smarter, though.


editfiles:
    debian.installation.(standalone|roaming)::
      { /etc/default/grub
        BeginGroupIfNoSuchLine 'GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"'
          HashCommentLinesStarting 'GRUB_CMDLINE_LINUX_DEFAULT'
          LocateLineMatching '#.*GRUB_CMDLINE_LINUX_DEFAULT.*'
          InsertLine 'GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"'
        EndGroup
      }

editfiles:
    debian.installation.!roaming.!standalone::
      { /etc/default/grub
        BeginGroupIfNoSuchLine 'GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 quiet"'
          HashCommentLinesStarting 'GRUB_CMDLINE_LINUX_DEFAULT'
          LocateLineMatching '#.*GRUB_CMDLINE_LINUX_DEFAULT.*'
          InsertLine 'GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 quiet"'
        EndGroup
      }

editfiles:
    debian.installation.!server.!ltspclient.!roaming.!standalone::
      { /etc/default/grub
        BeginGroupIfNoSuchLine 'GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 quiet splash"'
          HashCommentLinesStarting 'GRUB_CMDLINE_LINUX_DEFAULT'
          LocateLineMatching '#.*GRUB_CMDLINE_LINUX_DEFAULT.*'
          InsertLine 'GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 quiet splash"'
        EndGroup
      }


Wolfgang

Attachment: signature.asc
Description: Digital signature


Reply to: