With Kickstart, is it possible to reference /boot via device name, rather than UUID?
Environment
- Red Hat Enterprise Linux 7
Issue
- With Kickstart, is it possible to reference /boot via device name, rather than UUID?
- Our system has hardware raid, and UUID is showing up on multiple devices
Resolution
- Add the following post section:
%post
/usr/bin/sed -i.sed -e 's/^.*\/boot.*$/\/dev\/vda1 \/boot xfs defaults 1 2/' /etc/fstab
%end
Replace 'vda1' which the expected name of your device. Ensure that directory names ('/') are escaped (ie, '\/') so that the sed command works properly.
Root Cause
- System has hardware raid (ie, /dev/mapper/ddff.. is presented), however underlying disks (sda and sdb) are also visible. (This is a bit strange, and potentially a hardware configuration issue)
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
