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:
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.
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