Preseeding answer to grub installation disk
Stephen Wood
smwood4 at gmail.com
Mon Dec 9 18:31:52 UTC 2013
Wow Tom. That is incredibly useful.
I am unable to translate what I'm seeing in the logs into a workable d-i
preseed command that will answer the prompt and continue.
The logs show this when I am stopped with the prompt:
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"?
On Sat, Dec 7, 2013 at 3:46 AM, Tom H <tomh0665 at gmail.com> wrote:
> On Sat, Dec 7, 2013 at 12:30 AM, Stephen Wood <smwood4 at 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?
> >
> > 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.
>
> The "also" looks like what I use but I haven't done a preseeded
> install for a while so maybe something's changed.
>
> Add "DEBCONF_DEBUG=5" to the kernel cmdline and, when your install
> stalls, switch to vt4 to find out which preseed variable is needed.
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
--
Stephen Wood
www.heystephenwood.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20131209/7a3fec48/attachment.html>
More information about the ubuntu-users
mailing list