Bug 1459623 - Allow /var to be a mount point
Summary: Allow /var to be a mount point
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: anaconda
Version: 7.5
Hardware: x86_64
OS: Linux
Target Milestone: rc
: 7.4
Assignee: Anaconda Maintenance Team
QA Contact: Release Test Team
Petr Bokoc
Depends On: 1098303
Blocks: 1147383 1186913 1420851 1478303 1494728
TreeView+ depends on / blocked
Reported: 2017-06-07 15:33 UTC by Colin Walters
Modified: 2020-04-15 15:36 UTC (History)
22 users (show)

Fixed In Version: anaconda-
Doc Type: No Doc Update
Doc Text:
Clone Of: 1098303
: 1488435 (view as bug list)
Last Closed: 2018-04-10 08:47:43 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Github https://github.com/ostreedev ostree issues 855 None None None 2017-06-07 15:33:40 UTC
Github https://github.com/rhinstaller anaconda issues 1007 None None None 2017-06-07 15:33:40 UTC
Github https://github.com/rhinstaller anaconda pull 1132 None None None 2017-07-28 14:42:33 UTC
Red Hat Knowledge Base (Solution) 2950951 None None None 2017-06-07 15:33:40 UTC
Red Hat Product Errata RHBA-2018:0671 None None None 2018-04-10 08:49:06 UTC

Comment 10 Colin Walters 2017-07-28 14:42:33 UTC
I did test it, but it broke later unfortunately =(

Moving to 7.5.

Comment 22 Micah Abbott 2017-12-06 14:52:38 UTC
The 'rhel-atomic-installer-7.4.2-1.x86_64.iso' that is available from access.redhat.com can be used to successfully install a RHELAH system with /var as a separate mount point.  I installed a VM using local libvirt stack:

# rpm-ostree status
State: idle
● rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard
                   Version: 7.4.2 (2017-10-17 02:47:56)
                    Commit: 2eceacd73c4de494ff3f90448467934614cf9f72cb316693db2cad47bd79015e
              GPGSignature: Valid signature by 567E347AD0044ADE55BA8A5F199E2F91FD431D51

# lsblk
sr0                          11:0    1 1024M  0 rom  
vda                         252:0    0  9.1G  0 disk 
├─vda1                      252:1    0  500M  0 part /boot
└─vda2                      252:2    0  8.6G  0 part 
  ├─rhelah-root             253:0    0  4.6G  0 lvm  /sysroot
  └─rhelah-var              253:1    0    4G  0 lvm  /var
loop0                         7:0    0  100G  0 loop 
└─docker-253:1-6291557-pool 253:2    0  100G  0 dm   
loop1                         7:1    0    2G  0 loop 
└─docker-253:1-6291557-pool 253:2    0  100G  0 dm   

# cat /root/anaconda-ks.cfg                                                            
# System authorization information                                                                                                                                                                                 auth --enableshadow --passalgo=sha512                                                                                                                                                                              # OSTree setup                                      
ostreesetup --osname="rhel-atomic-host" --remote="rhel-atomic-host-ostree" --url="file:///install/ostree" --ref="rhel-atomic-host/7/x86_64/standard" --nogpg
# Use graphical install                             
# Run the Setup Agent on first boot                 
firstboot --enable                                  
ignoredisk --only-use=vda                           
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'              
# System language
lang en_US.UTF-8                                    

# Network information                               
network  --bootproto=dhcp --device=eth0 --ipv6=auto --no-activate
network  --hostname=localhost.localdomain           
# Root password                                                                                          
rootpw --iscrypted <redacted>
# System services                                   
services --disabled="cloud-init,cloud-config,cloud-final,cloud-init-local" --enabled="chronyd"
# System timezone
timezone America/New_York --isUtc
user --groups=wheel --name=cloud-user --password=<redacted> --iscrypted --gecos="Cloud User"
# System bootloader configuration
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=vda
# Partition clearing information
clearpart --none --initlabel
# Disk partitioning information
part pv.339 --fstype="lvmpv" --ondisk=vda --size=8817
part /boot --fstype="xfs" --ondisk=vda --size=500
volgroup rhelah --pesize=4096 pv.339
logvol /  --fstype="xfs" --size=4718 --name=root --vgname=rhelah
logvol /var  --fstype="xfs" --size=4096 --name=var --vgname=rhelah

%post --erroronfail
cp /etc/skel/.bash* /var/roothome
fn=/etc/ostree/remotes.d/rhel-atomic-host-ostree.conf; if test -f ${fn} && grep -q -e '^url=file:///install/ostree' ${fn}; then rm ${fn}; fi

%post --erroronfail
# NOTE: This change only applies to 7.4 content; if building 7.3,
# you'll need an older spin-kickstarts.  More information in
# https://trello.com/c/7N8t3fuY/593-3-tweak-rhelah-build-process-for-new-subman-and-verify
# and https://github.com/candlepin/subscription-manager/pull/1519
# This is the canonical version - if changing this, remember
# to update the copies in the cloud/vagrant kickstarts too.
# Yes, this is base64 encoded to avoid quoting issues; this
# gets embedded in a lorax template which is interpreting shell.  If you
# need to fix it, just copy/paste the command line to get a base64 decoded
# version.
echo W3JlbW90ZSAicmhlbC1hdG9taWMtaG9zdC1vc3RyZWUiXQojIFRoaXMgcmVtb3RlIGNvbmZpZ3VyYXRpb24gaXMganVzdCBhIHN0dWI7IHVzZSBzdWJzY3JpcHRpb24tbWFuYWdlciBvcgojIGEgbG9jYWwgbWlycm9yIG9mIHRoZSByZXBvc2l0b3J5Lgp1cmw9ZmlsZTovLy
9pbnN0YWxsL29zdHJlZS9yZXBvCnVuY29uZmlndXJlZC1zdGF0ZT1UaGlzIHN5c3RlbSBpcyBub3QgcmVnaXN0ZXJlZCB0byBSZWQgSGF0IFN1YnNjcmlwdGlvbiBNYW5hZ2VtZW50LiBZb3UgY2FuIHVzZSBzdWJzY3JpcHRpb24tbWFuYWdlciB0byByZWdpc3Rlci4K | base64
 -d > /etc/ostree/remotes.d/redhat.conf




%addon com_redhat_kdump --enable --reserve-mb='auto'


pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty

I'm not really sure how to determine the version of 'anaconda' in the ISO, but this looks VERIFIED to me.

Comment 23 Alex Jia 2017-12-08 03:07:47 UTC
It's failed to install rhel-atomic-installer-7.5.0-1.x86_64.iso by virt-manager,
and I got the error as follows, it blocks me to do further testing.


The following error occurred while installing.  This is a fatal error and installation will be aborted.

ostree ['admin', '--sysroot=/mnt/sysimage', 'init-fs', '/mnt/sysimage'] exited with code 1


BTW, I created a separated partition for /var and /boot.

Comment 24 Micah Abbott 2017-12-08 14:19:52 UTC
@Alex, we've encountered some serious problems using 'rpm-ostree' and the 7.5 kernel.  I wouldn't be surprised if the 7.5 installer issues you are seeing are related.

See the following:



(Also, I just realized this BZ is about 7.5, so my comment #22 is only partially relevant.)

Comment 25 Alex Jia 2017-12-11 03:10:40 UTC
(In reply to Micah Abbott from comment #24)
> See the following:
> https://bugzilla.redhat.com/show_bug.cgi?id=1428677#c17
> https://bugzilla.redhat.com/show_bug.cgi?id=1523319#c11526864
> (Also, I just realized this BZ is about 7.5, so my comment #22 is only
> partially relevant.)

Thanks Micah, good to know this.

Comment 28 Petr Bokoc 2018-02-23 17:24:04 UTC
Colin, hi, I'm trying to determine if this needs documentation in RHEL 7.5 release notes. Can you describe the changes you made here (well, in the clone bug)? The summary implies that anaconda didn't let you create a separate mntpoint for /var but I just checked and it does allow you to do that in 7.4, so I'm a bit lost.

Is this just something specific to Atomic that doesn't have a noticeable impact on base RHEL 7.5?


Comment 29 Colin Walters 2018-02-23 18:08:14 UTC
Hi Petr.  This change only applies to Atomic Host.

Comment 31 errata-xmlrpc 2018-04-10 08:47:43 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.