Master node's grub-legacy install code in kickstart file failed to execute and is unnecessary
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
In Progress
|
Low
|
Wei Hui |
Bug Description
After master node install:
[root@fuel ~]# pwd
/root
[root@fuel ~]# ls
anaconda.
anaconda-ks.cfg anaconda-
[root@fuel ~]# cat anaconda-
chroot: failed to run command '/sbin/grub': No such file or directory
[root@fuel ~]#
GRUB legacy does not support GPT disks, so it can not work on disks which are >4T.
Since centos 7 and ubuntu after 9.09 have switched to grub2 which support GPT disk partition, and anaconda install grub2 automatically.
We can safely delete those code.
#######
# Anaconda can not install grub 0.97 on disks which are >4T.
# The reason is that grub does not support such large geometries
# and it simply thinks that the cylinder number has negative value.
# Here we just set geometry manually so that grub thinks that disk
# size is equal to 1G.
# 130 cylinders * (16065 * 512 = 8225280 bytes) = 1G
echo "%post --nochroot --log=/
echo "echo \"device (hd0) /dev/${tgtdrive}\" >> /tmp/grub.script" >> /tmp/post_
echo "echo \"geometry (hd0) 130 255 63\" >> /tmp/grub.script" >> /tmp/post_
echo "echo \"root (hd0,2)\" >> /tmp/grub.script" >> /tmp/post_
echo "echo \"install /grub/stage1 (hd0) /grub/stage2 p /grub/grub.conf\" >> /tmp/grub.script" >> /tmp/post_
echo "echo quit >> /tmp/grub.script" >> /tmp/post_
echo "cat /tmp/grub.script | chroot /mnt/sysimage /sbin/grub --no-floppy --batch" >> /tmp/post_
echo "%end" >> /tmp/post_
#######
description: | updated |
description: | updated |
summary: |
- Master node legacy grub install in kc file fail to execute and is - redundance + Master node's grub-legacy install code in kickstart file failed to + execute and is unnecessary |
Changed in fuel: | |
importance: | Undecided → Low |
milestone: | none → 10.0 |
Fix proposed to branch: master /review. openstack. org/387406
Review: https:/