Red Hat Bugzilla – Bug 857517
Anaconda in RHEL 6 does not honor the --fsoptions= with swap partitions
Last modified: 2015-09-27 22:28:02 EDT
Description of problem:
When trying to install RHEL 6 using a kickstart and specifying any fsoptions="option" into the partitioning section (as seen below), Anaconda is not honoring. Have tried syntax as specified in documentation however at no point is it copied into /etc/fstab. We have previously opened a bug for the documentation to add this option: https://bugzilla.redhat.com/show_bug.cgi?id=601977 however I have been able to reproduce (as well as the customer) that at no time is this line honored.
Version-Release number of selected component (if applicable):
Every time. I have no been able to have Anaconda copy ANY options from the --fsoptions= line.
Steps to Reproduce:
1. Add a line into any of the partitions to append options into the /etc/fstab
2. Kickstart install any RHEL 6.x system
3. Upon reboot the options for that partition in /etc/fstab are set to defaults
Options in /etc/fstab are set to defaults
Options in /etc/fstab are set to the same options as defined by --fsoptions= in the kickstart
Documentation is seen here: https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s1-kickstart2-options.html however I am unable to get this option to ever work, no matter the syntax I use. Not sure if it ever worked in RHEL 6, though it does work in RHEL 5.
Please switch to tty2 (ctrl-alt-f2) and attach the logs from /tmp/*log to this bug as individual text/plain files.
Closing as insufficient data as we do not have any log files from the reporter. If you are able to provide the log files, please attach them as individual plain text files to this bug and reopen it.
Uploaded the requested log files and reopened the bugzilla. Thanks!
I'm not able to reproduce your bug. Could you please attach the kickstart you used? If I use following, it's copied to /etc/fstab then.
part / --size=1000 --asprimary
part /usr --size=3200 --asprimary
part /var --size=200 --asprimary --fsoptions='noatime'
part /home --size=200 --asprimary --fsoptions='noatime'
UUID=28989961-48ed-4587-94ac-4f2055e1a7e5 / ext4 defaults 1 1
UUID=cbdf9559-3f55-41b6-a123-fbfa75a2f819 /home ext4 noatime 1 2
UUID=98851567-9b6d-4e85-8ba1-09a23b0c9bda /usr ext4 defaults 1 2
UUID=3724842b-e7ce-4aa5-8d13-b38e9fd1e21d /var ext4 noatime 1 2
Reproduced with following partitioning:
clearpart --all --initlabel
part /boot --asprimary --size=500 --label=boot
part pv.01 --grow --maxsize=8192 --size=2048
part pv.02 --grow --maxsize=8192 --size=2048
volgroup SNAKEVG --pesize=32768 pv.01 pv.02
logvol swap --fstype=swap --recommended --name=SNAKE_SWAP --vgname=SNAKEVG --fsoptions="pri=10"
logvol / --grow --maxsize=10240 --size=2048 --name=SNAKEROOT --vgname=SNAKEVG
This was limited to swap partitions, normal partitions pick up --fsoptions just fine.
Verified on RHEL6.5-20130820.2 anaconda 13.21.203
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.