View Issue Details

IDProjectCategoryView StatusLast Update
0013969CentOS-7anacondapublic2019-07-04 15:50
Reporterdanlii 
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
Platformx86_64OSCentOSOS Version7.4.1708
Product Version 
Target VersionFixed in Version 
Summary0013969: Anaconda ignores "--nohome" flag to autopart
DescriptionAccording 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 ReproduceInstall CentOS 7.4 using kickstart file with "autopart --nohome" in it.
TagsNo tags attached.
abrt_hash
URL

Activities

saturnjct

saturnjct

2017-12-18 18:53

reporter   ~0030777

I can confirm I’m experiencing the same problem.
damonmaria

damonmaria

2018-03-22 20:05

reporter   ~0031490

Wish there was a +1 rather than having to comment. Same results here.
hsahmed

hsahmed

2018-09-19 09:04

reporter   ~0032758

Issue still persists in CentOS 7.5
vietgi

vietgi

2019-05-31 04:53

reporter   ~0034547

still not working on 7.6
GROMELAZJC

GROMELAZJC

2019-05-31 09:37

reporter   ~0034548

no you can
mikeatlas

mikeatlas

2019-05-31 19:29

reporter   ~0034554

Confirmed --nohome is still not working in CentOS 7.6
mikeatlas

mikeatlas

2019-05-31 19:30

reporter   ~0034555

In my case the workaround was to explicitly create partitions in the kickstart config https://stackoverflow.com/a/48537120/101827
TrevorH

TrevorH

2019-05-31 19:33

manager   ~0034556

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.
mikeatlas

mikeatlas

2019-05-31 19:34

reporter   ~0034557

@TrevorH, it was reported in 2010 on RedHat's bugzilla, patch accepted and merged in 2017.

https://bugzilla.redhat.com/show_bug.cgi?id=663099
https://github.com/rhinstaller/anaconda/pull/986
TrevorH

TrevorH

2019-05-31 19:36

manager   ~0034558

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.
danlii

danlii

2019-05-31 19:45

reporter   ~0034559

@TrevorH, since it works in RHEL, I doubt that my bugreport would do any good with Red Hat.
TrevorH

TrevorH

2019-05-31 19:51

manager   ~0034560

It works in RHEL 7.6 but not in CentOS 7.6? Are you sure?
TrevorH

TrevorH

2019-05-31 20:00

manager   ~0034561

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."
TrevorH

TrevorH

2019-05-31 20:54

manager   ~0034562

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.
mikeatlas

mikeatlas

2019-05-31 21:02

reporter   ~0034563

@TrevorH, thank you for the extra effort you put in investigating and isolating it!
TrevorH

TrevorH

2019-05-31 23:40

manager   ~0034564

A possible cause has been identified and we're looking at a fix
mon

mon

2019-06-14 14:37

reporter   ~0034665

This is my workaround. Live-patch the cut off point from 50GiB to 500GiB.

Add to .ks:
---
%pre
sed -i 's|50GiB|500GiB|g' /usr/lib64/python2.7/site-packages/pyanaconda/installclass.py
%end
---

Verified on CentOS 7.6.
TrevorH

TrevorH

2019-06-14 14:39

manager   ~0034667

This should be fixed in the 7.7 media. It may be fixed in the next set of rolling media as well.
JohnnyHughes

JohnnyHughes

2019-07-04 15:50

administrator   ~0034776

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:

Announcement: https://lists.centos.org/pipermail/centos-announce/2019-July/023359.html

I'll post again when we have media to try.

Issue History

Date Modified Username Field Change
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