a9c8b1fae1
Switching to the `_CONSUME` flag revealed an "oh god how did I write that"
bug in the previous patch in https://github.com/projectatomic/rpm-ostree/pull/1046
AKA commit: 334f0b89be
The way that actually fixed the bug before was because we were using
hardlink checkouts, and we were operating outside an `rofiles-fuse`
context, we simply directly changed the on-disk object mode.
But with the `_CONSUME` flag we started deleting the files as we write,
meaning that stopped working.
I *initially* wrote a patch to do the same split "prepare/processing/commit"
flow that treecompose and package layering do, but that can't really fix this
bug - we need to do it on import.
So do the chmod on import and drop the postprocessing bits.
Closes: #1067
Approved by: jlebon
20 lines
394 B
Bash
Executable File
20 lines
394 B
Bash
Executable File
#!/usr/bin/bash
|
|
set -xeuo pipefail
|
|
|
|
cd ${test_tmpdir}
|
|
|
|
dn=$(cd $(dirname $0) && pwd)
|
|
. ${dn}/../common/libtest-core.sh
|
|
|
|
cat >bash.conf <<EOF
|
|
[tree]
|
|
ref=bash
|
|
packages=coreutils;bash;
|
|
repos=fedora;
|
|
EOF
|
|
|
|
rpm-ostree ex container assemble bash.conf
|
|
ostree --repo=repo fsck -q
|
|
ostree --repo=repo ls bash /usr/etc/shadow > shadowls.txt
|
|
assert_file_has_content shadowls.txt '^-00400 .*/usr/etc/shadow'
|