This topic needs a title

Can someone help me preseeding the answer to this prompt when installing
the grub boot loader to a disk other than /dev/sda?

I'm being hit with this prompt, requiring me to hit enter on each
installation:

[image: Inline image 1]

I've tried the following things, but I still get prompted with this
question. I'd like it to just continue:

d-i grub-installer/only_debian boolean false
d-i grub-installer/with_other_os boolean false
d-i grub-installer/bootdev string /dev/sdm

And also
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i grub-installer/bootdev string /dev/sdm

And also adding:
d-i grub-pc/install_devices multiselect /dev/sdm

Regardless of what I add I still get the prompt. Note that /dev/sdm is also
where the OS installation resides. It is a multipath device.

··· -- Stephen Wood www.heystephenwood.com

Can someone help me preseeding the answer to this prompt when installing
> the grub boot loader to a disk other than /dev/sda?
>

In general, to debug this stufff, add DEBCONF_DEBUG=5 to your PXE
template, and then look at VT4 when it stops to ask you a question - you
should see the exact string it's looking for in the log on VT4. When you
give your answer, it should also log the exact format of the answer, which
you can lift into your preseed.

HTH,
Greg

··· On 10 December 2013 21:07, Stephen Wood wrote:

Thanks Greg. That's very helpful. How do you translate what you're seeing
into a workable preseed answer? For example, this is where the installation
console pauses during this install:

Dec 9 07:30:35 debconf: --> SET grub-installer/bootdev /dev/sdm
Dec 9 07:30:35 debconf: <-- 0 value set
Dec 9 07:30:35 debconf: --> PROGRESS STEP 1
Dec 9 07:30:35 debconf: <-- 0 OK
Dec 9 07:30:35 debconf: --> PROGRESS INFO
grub-installer/progress/step_bootdev
Dec 9 07:30:35 debconf: <-- 0 OK
Dec 9 07:30:35 debconf: --> INPUT critical grub-installer/bootdev
Dec 9 07:30:35 debconf: <-- 0 question will be asked
Dec 9 07:30:35 debconf: --> GO

If I hit enter and the installations continues, it goes on to this:

Dec 9 07:30:35 debconf: --> SET grub-installer/bootdev /dev/sdm
Dec 9 07:30:35 debconf: <-- 0 value set
Dec 9 07:30:35 debconf: --> PROGRESS STEP 1
Dec 9 07:30:35 debconf: <-- 0 OK
Dec 9 07:30:35 debconf: --> PROGRESS INFO
grub-installer/progress/step_bootdev
Dec 9 07:30:35 debconf: <-- 0 OK
Dec 9 07:30:35 debconf: --> INPUT critical grub-installer/bootdev
Dec 9 07:30:35 debconf: <-- 0 question will be asked
Dec 9 07:30:35 debconf: --> GO
Dec 9 07:37:20 debconf: <-- 0 ok
Dec 9 07:37:20 debconf: --> GET grub-installer/bootdev
Dec 9 07:37:20 debconf: <-- 0 /dev/sdm
Dec 9 07:37:20 debconf: --> PROGRESS STEP 1
Dec 9 07:37:20 debconf: <-- 0 OK
Dec 9 07:37:20 debconf: --> SUBST
grub-installer/progress/step_install_loader BOOTDEV /dev/sdm
Dec 9 07:37:20 debconf: Adding [BOOTDEV] -> [/dev/sdm]
Dec 9 07:37:20 debconf: <-- 0
Dec 9 07:37:20 debconf: --> PROGRESS INFO
grub-installer/progress/step_install_loader
Dec 9 07:37:20 debconf: <-- 0 OK
Dec 9 07:37:20 grub-installer: info: Installing grub on '/dev/sdm'
Dec 9 07:37:20 grub-installer: info: grub-install supports --no-floppy
Dec 9 07:37:20 grub-installer: info: Running chroot /target grub-install
–no-floppy --force "/dev/sdm"
Dec 9 07:37:22 grub-installer: Installation finished. No error reported.
Dec 9 07:37:22 grub-installer: info: grub-install ran successfully

It's not clear to me exactly what the prompt is. Is it this?

Dec 9 07:37:20 debconf: <-- 0 ok

If that's the case, how do I input an "ok"? I've already tried adding
grub-installer/bootdev. Is this option the wrong option? It seems to me I
need to somehow preseed the "OK" part of the question.

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

··· On Tue, Dec 10, 2013 at 1:44 PM, Greg Sutcliffe wrote:

On 10 December 2013 21:07, Stephen Wood smwood4@gmail.com wrote:

Can someone help me preseeding the answer to this prompt when installing

the grub boot loader to a disk other than /dev/sda?

In general, to debug this stufff, add DEBCONF_DEBUG=5 to your PXE
template, and then look at VT4 when it stops to ask you a question - you
should see the exact string it’s looking for in the log on VT4. When you
give your answer, it should also log the exact format of the answer, which
you can lift into your preseed.

HTH,
Greg


You received this message because you are subscribed to the Google Groups
“Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/groups/opt_out.


Stephen Wood

You're pretty much correct, "d-i grub-installer/bootdev string /dev/sdm"
looks right to me. You shouldn't need to preseed the "Enter" keystroke, it
should be happy with the string provided in the preseed.

What I've often seen is the same question asked multiple times with
different preseed names - try leaving your changes in the preseed and see
if VT4 displays a different string for the question. I recall having to
preseed 3 different entries to get something working once :slight_smile: