[INSTRM-367] add a role to configure grub using uuid Created: 21/May/18  Updated: 31/Mar/23  Resolved: 31/Mar/23

Status: Won't Fix
Project: Instrument control development
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Normal
Reporter: shimono Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

from pfs-soft-subaru #190, for some hosts we could need to configure grub to use uuid for finding root. we can configure by adding GRUB_DEVICE_UUID line into /etc/default/grub and re-run update-grub (or update-grub2).
add a role to perform these works.



 Comments   
Comment by shimono [ 21/May/18 ]
  • boot configuration can be checked using ansible_cmdline.root which is an option passed to grub, device path like /dev/sda6 or search condition like "UUID=xxx".
  • when already configured, we can notice it by checking ansible_cmdline.root having UUID= or not
  • we can get uuid for mounted device via ansible_mounts[?].uuid (.mount is mount target)
Comment by shimono [ 21/May/18 ]

we may specify to use uuid for one mounted as /boot, but considering possibility to configure all in one partition, it could be better to check current configuration of grub.

Comment by shimono [ 22/May/18 ]

opened PR for check on landfill+@ipmu

Comment by yuki.moritani [ 31/Mar/23 ]

I close this as ansible is not used now.

Generated at Sat Feb 10 16:24:17 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.