RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2137905 - backport support for embedded container whiteouts [rhel-8.7.0.z]
Summary: backport support for embedded container whiteouts [rhel-8.7.0.z]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: rpm-ostree
Version: 8.7
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: ---
Assignee: Colin Walters
QA Contact: Aashish Radhakrishnan
URL:
Whiteboard:
Depends On: 2134630
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-26 14:24 UTC by RHEL Program Management Team
Modified: 2023-02-21 09:30 UTC (History)
8 users (show)

Fixed In Version: rpm-ostree-2022.10.90.g4abaf4b4-5.el8_7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2134630
Environment:
Last Closed: 2023-02-21 09:30:32 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-137652 0 None None None 2022-10-26 14:25:49 UTC
Red Hat Product Errata RHEA-2023:0844 0 None None None 2023-02-21 09:30:34 UTC

Comment 10 Aashish Radhakrishnan 2023-01-19 15:18:39 UTC
Ignore comment 9:



Reserved RHEL-8.7.0-updates-20230117.12 in Beaker and installed the rpm-ostree-2022.10.90.g4abaf4b4-5.el8_7 package.
Steps followed for the test:

a) Check the rpm-ostree and ostree versions, 
b) Do the following tests, 
c) Run `rpm-ostree compose commit` with character device with 0/0 device number works. 

Open to any review or suggestions regarding the test procedure.

1) Check ostree and rpm-ostree versions,
[root@kvm-07-guest25 ~]# rpm -q ostree rpm-ostree
ostree-2022.2-5.el8.x86_64
rpm-ostree-2022.10.90.g4abaf4b4-5.el8_7.x86_64


2) Run `whiteout.sh` to prepare data
$ cat whiteout.sh

#!/bin/bash
mkdir test
pushd test
sudo rm -rf mkdir cache sysroot
cat > manifest.yaml << 'EOF'
ref: foo
boot-location: modules
releasever: 36
packages:
  - bash
  - rpm
  - coreutils
  - selinux-policy-targeted
  - kernel
  - ostree
repos:
  - fedora  # Intentially using frozen GA repo
EOF

cat > fedora.repo << 'EOF'
[fedora]
name=Fedora $releasever - $basearch
baseurl=https://dl.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
        https://dl.fedoraproject.org/pub/fedora-secondary/releases/$releasever/Everything/$basearch/os/
enabled=1
repo_gpgcheck=0
type=rpm
gpgcheck=0
skip_if_unavailable=False
EOF

mkdir cache sysroot
ostree --repo=build-repo init --mode=archive

sudo rpm-ostree compose install --unified-core --cachedir=cache --repo=build-repo manifest.yaml ./sysroot

sudo mknod -m 000 sysroot/rootfs/usr/share/foowhiteout c 0 0
sudo touch sysroot/rootfs/usr/share/rpm-ostree-composetest-split.txt
sudo rpm-ostree compose postprocess ./sysroot/rootfs manifest.yaml

$ sh -x whiteout.sh
......
+ sudo rpm-ostree compose postprocess ./sysroot/rootfs manifest.yaml
Processed 1 embedded whiteouts

3) Run `rpm-ostree compose commit` and check
[root@kvm-07-guest25 ~]# sudo rpm-ostree compose commit --repo=build-repo manifest.yaml ./sysroot/rootfs

[root@kvm-07-guest25 ~]# ostree --repo=build-repo ls foo /usr/bin/bash
-00755 0 0 1390064 /usr/bin/bash
[root@kvm-07-guest25 ~]# ostree --repo=build-repo ls foo /usr/share/rpm-ostree-composetest-split.txt
-00644 0 0      0 /usr/share/rpm-ostree-composetest-split.txt
[root@kvm-07-guest25 ~]# ostree --repo=build-repo ls foo /usr/share/.ostree-wh.foowhiteout
-00000 0 0      0 /usr/share/.ostree-wh.foowhiteout

Comment 14 errata-xmlrpc 2023-02-21 09:30:32 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 (rpm-ostree bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2023:0844


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