Bug#614002: grub-common: [kfreebsd] need a mechanism to pass sysctl parameters to kernel at boot time

Marc Fournier bz at bl.uem.li
Wed Feb 16 01:19:14 UTC 2011


Package: grub-common
Version: 1.98+20100804-14
Severity: wishlist


Some sysctl parameters of FreeBSD kernels can only be set at boot time.

With the traditional FreeBSD bootloader, you would define them in
/boot/loader.conf. With grub, this is done by adding a line such as this one
in /boot/grub/grub.cfg:

  set kFreeBSD.kern.maxswzone=67108864

The problem is obviously that /boot/grub/grub.cfg gets overwritten each time
update-grub2 is run.

The Linux variant of the package has this $GRUB_CMDLINE_LINUX option in
/etc/default/grub which gets included in the right places in
/boot/grub/grub.cfg.
We need the same sort of thing for kFreeBSD.

If it's just a matter of patching /etc/grub.d/10_kfreebsd to handle a
$GRUB_CMDLINE_KFREEBSD option in /etc/default/grub, I would be glad to submit
a patch. But maybe this should be discussed first, or coordinated with upstream
or whatever. Just let me know...

Cheers,
Marc


-- System Information:
Debian Release: 6.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-common depends on:
ii  base-files              6.0              Debian base system miscellaneous f
ii  dpkg                    1.15.8.10        Debian package management system
ii  gettext-base            0.18.1.1-3       GNU Internationalization utilities
ii  install-info            4.13a.dfsg.1-6   Manage installed documentation in 
ii  libc0.1                 2.11.2-10        Embedded GNU C Library: Shared lib
ii  libfreetype6            2.4.2-2.1        FreeType 2 font engine, shared lib
ii  libnvpair0              8.1-4            OpenSolaris name-value pair librar
ii  libzfs0                 8.1-4            FreeBSD ZFS library
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages grub-common recommends:
ii  os-prober                     1.42       utility to detect other OSes on a 

Versions of packages grub-common suggests:
pn  grub-emu                      <none>     (no description available)
pn  multiboot-doc                 <none>     (no description available)
pn  xorriso                       <none>     (no description available)

-- no debconf information





More information about the Pkg-grub-devel mailing list