diskimage_builder build redhat7 cannot boot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
diskimage-builder |
New
|
Undecided
|
Unassigned |
Bug Description
I have a ironic env and want to build some bare metal image. I use diskimage_builder to build a redhat7 image that support lvm, the redhat7 image build successed. But when bare-metal boot from this image, cannot find bootloader.
diskimage-builder command is follow:
disk-image-create rhel7 vm devuser disable-selinux dhcp-all-interfaces dracut-regenerate -o redhat7
export DIB_BLOCK_
- local_loop:
name: image0
- partitioning:
base: image0
label: mbr
partitions:
- name: root
flags: [ boot,primary ]
size: 100%
- lvm:
name: lvm
base: [root]
pvs:
- name: pv
options: ["--force"]
base: root
vgs:
- name: vg
base: ["pv"]
options: ["--force"]
lvs:
- name: lv_root
base: vg
size: 1800M
- name: lv_home
base: vg
size: 200M
- mkfs:
name: fs_root
base: lv_root
label: "img-rootfs"
type: "ext4"
mount:
mount_point: /
fstab:
options: "rw,relatime"
- mkfs:
name: fs_home
base: lv_home
type: "ext4"
mount:
mount_point: /home
fstab:
options: "rw,nodev,relatime"
'
export DIB_LOCAL_
export REG_REPOS=
export REG_AUTO_
export REG_USER='XXX'
export REG_PASSWORD='xxx'
export REG_METHOD=portal
export DIB_PYTHON_
export DIB_EXTLINUX=1
export DIB_NO_TMPFS=1
Host system: Ubuntu 16.04
Maybe the image miss bootloader. Is there any issue?
Anyone can help?