Skip to content

Commit eaa05a4

Browse files
committed
Adds a unmask-tmp element
This allows you to use a separate /tmp partition. See: https://bugzilla.redhat.com/show_bug.cgi?id=1243494
1 parent 01b7432 commit eaa05a4

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

elements/unmask-tmp/README.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
==========
2+
unmask-tmp
3+
==========
4+
5+
Workaround for the issue described `here <https://bugzilla.redhat.com/show_bug.cgi?id=1243494>`_.
6+
The symptom to lookout for is that the rootfs is mounted read-only. This has also been observed
7+
on CentOS 8.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
if [ "${DIB_DEBUG_TRACE:-1}" -gt 0 ]; then
4+
set -x
5+
fi
6+
set -u
7+
set -o pipefail
8+
9+
sudo rm -f $TARGET_ROOT/etc/systemd/system/tmp.mount && echo "Successfully removed etc/systemd/system/tmp.mount" || true

0 commit comments

Comments
 (0)