update-grub stalls at user input
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: grub
After a clean install of 8.04 x86 Alpha 5 (without bootloader), I installed the grub package. When I run "sudo update-grub", I get the following output:
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ...
Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N)
The script stalls at this point. No matter what I type, the script just stalls there. Looking at the script, the problem area is here:
echo -n "Would you like $menu_file generated for you? " >&2
echo -n "(y/N) " >&2
read answer
I created a short script to reproduce the problem, and it seems that the problem stems from:
. /usr/share/
Here's the sample script that reproduces the stalling:
#!/bin/bash
. /usr/share/
read answer
echo $answer
I don't know why confmodule is causing this.
The workaround is invoke update-grub with "-y".
Related branches
Changed in grub: | |
status: | In Progress → Fix Committed |
yes, this is expected behavior when using debconf; I should have foreseen the problem. Will be fixed in the next upload.