You've already forked fedora-bootc
"Let's try this again"
Some checks failed
Build container image / Build and push image (push) Failing after 4m17s
Some checks failed
Build container image / Build and push image (push) Failing after 4m17s
This commit is contained in:
@@ -2,33 +2,22 @@
|
|||||||
|
|
||||||
set -ouex pipefail
|
set -ouex pipefail
|
||||||
|
|
||||||
echo "Let's see."
|
|
||||||
echo "/etc/passwd contents:"
|
|
||||||
cat /etc/passwd
|
|
||||||
echo "/usr/lib/passwd contents:"
|
|
||||||
cat /usr/lib/passwd
|
|
||||||
echo ""
|
|
||||||
echo "/etc/group contents:"
|
|
||||||
cat /etc/group
|
|
||||||
echo "/usr/lib/group contents:"
|
|
||||||
cat /usr/lib/group
|
|
||||||
|
|
||||||
## Handle files that rpm-ostree would normally remove
|
## Handle files that rpm-ostree would normally remove
|
||||||
## Adapted from: https://github.com/hhd-dev/rechunk/blob/master/1_prune.sh#L33
|
## Adapted from: https://github.com/hhd-dev/rechunk/blob/master/1_prune.sh#L33
|
||||||
|
|
||||||
if [ -f /etc/passwd ]; then
|
if [ -f /etc/passwd ]; then
|
||||||
out=$(grep -v "root" /etc/passwd)
|
out="$(grep -v 'root' /etc/passwd)"
|
||||||
|
|
||||||
if [[ ! -z "$out" ]]; then
|
if [[ ! -z "$out" ]]; then
|
||||||
echo
|
echo
|
||||||
echo Appending the following passwd users to /usr/lib/passwd
|
echo Appending the following passwd users to /usr/lib/passwd
|
||||||
echo "--here--${out}--here--"
|
echo "${out}"
|
||||||
echo "$out" >>/usr/lib/passwd
|
echo "$out" >>/usr/lib/passwd
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f /etc/group ]; then
|
if [ -f /etc/group ]; then
|
||||||
out=$(grep -v "root\|wheel" /etc/group)
|
out="$(grep -v 'root\|wheel' /etc/group)"
|
||||||
|
|
||||||
if [[ ! -z "$out" ]]; then
|
if [[ ! -z "$out" ]]; then
|
||||||
echo
|
echo
|
||||||
|
|||||||
Reference in New Issue
Block a user