Skip to content

Adds a unmask-tmp element #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions elements/unmask-tmp/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
==========
unmask-tmp
==========

Workaround for the issue described `here <https://bugzilla.redhat.com/show_bug.cgi?id=1243494>`_.
The symptom to lookout for is that the rootfs is mounted read-only. This has also been observed
on CentOS 8.
9 changes: 9 additions & 0 deletions elements/unmask-tmp/cleanup.d/99-unmask-tmp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

if [ "${DIB_DEBUG_TRACE:-1}" -gt 0 ]; then
set -x
fi
set -u
set -o pipefail

sudo rm -f $TARGET_ROOT/etc/systemd/system/tmp.mount && echo "Successfully removed etc/systemd/system/tmp.mount" || true