[Vmdebootstrap-devel] [PATCH 2/2] Add option to pass additional kernel arguments

Neil Williams codehelp at debian.org
Thu Oct 16 19:27:49 UTC 2014


On Fri, 10 Oct 2014 23:48:19 +0200
Jan Gerber <j at mailb.org> wrote:

> ---
>  vmdebootstrap | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/vmdebootstrap b/vmdebootstrap
> index f3fa192..199b311 100755
> --- a/vmdebootstrap
> +++ b/vmdebootstrap
> @@ -116,6 +116,9 @@ class VmDebootstrap(cliapp.Application):
>                                'extlinux.')
>          self.settings.boolean(['optimize-image'],
>                  'Filing up the image with zeros to increase its
> compression rate')
> +        self.settings.string(['extra-kernel-arguments'],
> +                 'additional kernel arguments to pass in bootloader',
> +                 default='')
>  
>      def process_args(self, args):
>          if not self.settings['image'] and not
> self.settings['tarball']: @@ -521,7 +524,7 @@ timeout 1
>  
>  label linux
>  kernel %(kernel)s
> -append initrd=%(initrd)s root=UUID=%(uuid)s ro %(kserial)s
> +append initrd=%(initrd)s root=UUID=%(uuid)s ro %(kserial)s %(extra)s
>  %(extserial)s
>  ''' % {
>              'kernel': kernel_image,
> @@ -530,6 +533,7 @@ append initrd=%(initrd)s root=UUID=%(uuid)s ro
> %(kserial)s 'kserial':
>              'console=ttyS0,115200' if
> self.settings['serial-console'] else '', 'extserial': 'serial 0
> 115200' if self.settings['serial-console'] else '',
> +            'extra': self.settings['extra-kernel-arguments'],
>          })
>          f.close()
>  
> -- 

Any prospect of this change also being usable with grub as well? I'd
like to drop extlinux in favour of grub at some point (after the Jessie
release).


-- 


Neil Williams
=============
http://www.linux.codehelp.co.uk/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/vmdebootstrap-devel/attachments/20141016/ffd72f70/attachment.sig>


More information about the Vmdebootstrap-devel mailing list