localboot element doesn't work for ubuntu image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Zhenzan Zhou |
Bug Description
When creating an ubuntu image with localboot, the postinst script of grub-pc will try to find root device and install grub which will definitely fail in such a chroot environment. Here is the log:
Setting up grub-pc (2.02~beta2-
Creating config file /etc/default/grub with new version
grub-probe: error: cannot find a device for / (is /dev mounted?).
grub-probe: error: cannot find a device for /boot (is /dev mounted?).
grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).
/usr/sbin/
dpkg: error processing package grub-pc (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Errors were encountered while processing:
grub-pc
/bin/df: cannot read table of mounted file systems: No such file or directory
E: Sub-process /usr/bin/dpkg returned an error code (1)
Changed in tripleo: | |
assignee: | nobody → Zhenzan Zhou (zhenzan-zhou) |
Changed in tripleo: | |
status: | New → In Progress |
Changed in tripleo: | |
importance: | Undecided → High |
Changed in tripleo: | |
status: | Fix Committed → Fix Released |
review @ https:/ /review. openstack. org/#/c/ 168208/ 2 (not sure why isn't auto linked here)