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

Bug#820117: marked as done (Setting grub-installer/bootdev via debconf-set does not work with d-i syntax)



Your message dated Sun, 20 Nov 2016 07:34:05 +0100
with message-id <20161120063405.GI21968@mraw.org>
and subject line Re: Bug#820117: Setting grub-installer/bootdev via debconf-set does not work with d-i syntax
has caused the Debian Bug report #820117,
regarding Setting grub-installer/bootdev via debconf-set does not work with d-i syntax
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
820117: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=820117
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: grub-installer
Version: 1.117+deb8u1

During a preseeded installation via netboot we set "grub-installer/bootdev" via debconf set during the pacman/early-command stage.

Setting this like in the preseed example (see: https://www.debian.org/releases/jessie/example-preseed.txt) via

debconf-set grub-installer/bootdev string /dev/sda

fails. After debugging for a whole day and tinkering on the insides of grub-installer we found out that you need to drop the "string" part so:

debconf-set grub-installer/bootdev /dev/sda

works as expected. This is however either an error in the documentation or an error in the parser, in either case it is not the documented behavior.

We have not tried if setting it via the preseed file like:

d-i grub-installer/bootdev string /dev/sda

would actually work. We didn't however find any place where there should be a difference between the syntax in either case.
--- End Message ---
--- Begin Message ---
Hi Felix,

Sorry for the time you lost but…

Felix Winterhalter <felix@audiofair.de> (2016-04-05):
> Package: grub-installer
> Version: 1.117+deb8u1
> 
> During a preseeded installation via netboot we set "grub-installer/bootdev"
> via debconf set during the pacman/early-command stage.
> 
> Setting this like in the preseed example (see:
> https://www.debian.org/releases/jessie/example-preseed.txt) via

This is a preseed example, and the only occurrence of debconf-set there
takes two parameters:

#d-i partman/early_command \
#       string debconf-set partman-auto/disk "$(list-devices disk | head -n1)"

> debconf-set grub-installer/bootdev string /dev/sda

so I'm not sure why you came up with this command line.

> fails. After debugging for a whole day and tinkering on the insides of
> grub-installer we found out that you need to drop the "string" part so:
> 
> debconf-set grub-installer/bootdev /dev/sda

Well, if you had looked at debconf-set, you would have seen the
following lines, which confirms that two parameters are expected:
| #!/bin/sh
| set -e
| export DEBIAN_FRONTEND=noninteractive
| . /usr/share/debconf/confmodule
| db_set "$1" "$2"

> works as expected. This is however either an error in the documentation or
> an error in the parser, in either case it is not the documented behavior.

I think you misread or second-guessed the documentation…

> We have not tried if setting it via the preseed file like:
> 
> d-i grub-installer/bootdev string /dev/sda
> 
> would actually work. We didn't however find any place where there
> should be a difference between the syntax in either case.

There are various packages handling preseed files, see src:preseed and
src:oldsys-preseed; see e.g. env2debconf script in src:preseed.


Executive summary: It seems to me you didn't follow the documentation,
and expected commands to do things they are not advertised to do; so I'm
closing this bug report accordingly.


KiBi.

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply to: