View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0013969||CentOS-7||anaconda||public||2017-10-04 12:04||2019-07-04 15:50|
|Target Version||Fixed in Version|
|Summary||0013969: Anaconda ignores "--nohome" flag to autopart|
|Description||According to documentation of both CentOS and RHEL 7.4, there is a new flag for autopart in kickstart, which is "--nohome", and this is meant for people who don't want a separate /home partition.|
The CentOS 7.4 installer ignores this option, and creates the /home mountpoint and partition/volume anyway. This is both with and without the also optional "--nolvm" flag.
If one instead installs RHEL 7.4, using the exact same kickstart script, with --nohome option enabled, it does not create the /home mountpoint and partition/volume.
|Steps To Reproduce||Install CentOS 7.4 using kickstart file with "autopart --nohome" in it.|
|Tags||No tags attached.|
|I can confirm I’m experiencing the same problem.|
|Wish there was a +1 rather than having to comment. Same results here.|
|Issue still persists in CentOS 7.5|
|still not working on 7.6|
|no you can|
|Confirmed --nohome is still not working in CentOS 7.6|
|In my case the workaround was to explicitly create partitions in the kickstart config https://stackoverflow.com/a/48537120/101827|
|CentOS is a rebuild of the sources used to create RHEL. We do not modify anything except to remove branding and logos. You will need to submit your bug report to Redhat via bugzilla.redhat.com and if/when RH accepts it and incorporates it into RHEL and releases the patched version, then CentOS will pick it up and rebuild it.|
@TrevorH, it was reported in 2010 on RedHat's bugzilla, patch accepted and merged in 2017.
|That bug is not this. That was the initial request to get that flag added and was reported against 7.3. Further up this bug report it says it worked in 7.4 and broke in 7.5. If no-one reports that to Redhat then it will not get fixed.|
|@TrevorH, since it works in RHEL, I doubt that my bugreport would do any good with Red Hat.|
|It works in RHEL 7.6 but not in CentOS 7.6? Are you sure?|
Tested and works as designed on a VM with an 8GB "disk".
Tested and fails (i.e creates /home) on a VM with a 64GB disk.
I suspect it has to do with the paragraph at the top of the autopart description in the manual:
"On large enough drives (50 GB and larger), this also creates a /home partition."
So the cut off point is 52G, smaller than that and it does not create /home
[trevor@trevor Scratch]$ qemu-img create -f vdi test.vdi 52G
Formatting 'test.vdi', fmt=vdi size=55834574848 static=off
Using that creates /home on CentOS 7.6 media even with --nohome. You're also correct that this does not happen using rhel-server-7.6-x86_64-dvd.iso which I tested with the 52G disk and also with 64G so this is a CentOS specific bug.
|@TrevorH, thank you for the extra effort you put in investigating and isolating it!|
|A possible cause has been identified and we're looking at a fix|
This is my workaround. Live-patch the cut off point from 50GiB to 500GiB.
Add to .ks:
sed -i 's|50GiB|500GiB|g' /usr/lib64/python2.7/site-packages/pyanaconda/installclass.py
Verified on CentOS 7.6.
|This should be fixed in the 7.7 media. It may be fixed in the next set of rolling media as well.|
OK .. I have pushed the fix in this update .. we will still have to use it to generate media .. which I will try to do for the July rolling build tomorrow:
I'll post again when we have media to try.
|2017-10-04 12:04||danlii||New Issue|
|2017-12-18 18:53||saturnjct||Note Added: 0030777|
|2018-03-22 20:05||damonmaria||Note Added: 0031490|
|2018-09-19 09:04||hsahmed||Note Added: 0032758|
|2019-05-31 04:53||vietgi||Note Added: 0034547|
|2019-05-31 09:37||GROMELAZJC||Note Added: 0034548|
|2019-05-31 19:29||mikeatlas||Note Added: 0034554|
|2019-05-31 19:30||mikeatlas||Note Added: 0034555|
|2019-05-31 19:33||TrevorH||Note Added: 0034556|
|2019-05-31 19:34||mikeatlas||Note Added: 0034557|
|2019-05-31 19:36||TrevorH||Note Added: 0034558|
|2019-05-31 19:45||danlii||Note Added: 0034559|
|2019-05-31 19:51||TrevorH||Note Added: 0034560|
|2019-05-31 20:00||TrevorH||Note Added: 0034561|
|2019-05-31 20:54||TrevorH||Note Added: 0034562|
|2019-05-31 21:02||mikeatlas||Note Added: 0034563|
|2019-05-31 21:52||toracat||Status||new => confirmed|
|2019-05-31 23:40||TrevorH||Note Added: 0034564|
|2019-06-14 14:37||mon||Note Added: 0034665|
|2019-06-14 14:39||TrevorH||Note Added: 0034667|
|2019-07-04 15:50||JohnnyHughes||Note Added: 0034776|