execscript is run too early

Bug #703959 reported by Sergey Svishchev
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
vm-builder (Ubuntu)
New
Low
Unassigned

Bug Description

I'm using execscript to configure GRUB for serial console. In Karmic this works fine, but in Lucid the script is being run before GRUB is installed, and thus cannot modify /boot/grub/menu.lst.

Revision history for this message
Chuck Short (zulcss) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please answer these questions:
1. Is this reproducible?
2. If so, what specific steps should we take to recreate this bug? Be as detailed as possible.
This will help us to find and resolve the problem.

Changed in vm-builder (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Sergey Svishchev (svs) wrote :

1. Yes.

2. I will attach config files and debug output.

Revision history for this message
Sergey Svishchev (svs) wrote :

Command line:

sudo vmbuilder kvm ubuntu --config /tmp/703959/vm.cfg --ip 10.0.0.1 --hostname bug703959 --dest=/tmp/703959/vm --debug -o

Revision history for this message
Sergey Svishchev (svs) wrote :
Revision history for this message
Sergey Svishchev (svs) wrote :
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Indeed, looking at the lucid source, I see that the post_install() calls the execscripts before the --only-chroot checks, whereas hypervisor.py:install_os(), which installs the bootloader, gets called after.

I assume it's there for a reason so don't want to blindly move it. Would like guidance from Soren: was the intent of execscripts to be called after full os install, or after initial chroot build? Should a new --os-execripts or somesuch option be added to allow scripts to be called after full OS install?

As a workaround you should be able to have the early execscript create an /etc/default/grub, though I'm not sure whether dpkg would then require interaction to ask whether to use your existing /etc/default/grub.

Changed in vm-builder (Ubuntu):
assignee: nobody → Soren Hansen (soren)
Soren Hansen (soren)
Changed in vm-builder (Ubuntu):
assignee: Soren Hansen (soren) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for vm-builder (Ubuntu) because there has been no activity for 60 days.]

Changed in vm-builder (Ubuntu):
status: Incomplete → Expired
Sergey Svishchev (svs)
Changed in vm-builder (Ubuntu):
status: Expired → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.