Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
#!/bin/bash
set -euo pipefail

# Today this is trivial, but in the future this will require integration
# with Ignition.
mountflags=prjquota
mount -o "${mountflags}" /dev/disk/by-label/root /sysroot
# We use prjquota on XFS by default to aid multi-tenant
# Kubernetes (and other container) clusters. See
# https://github.com/coreos/coreos-assembler/pull/303/commits/6103effbd006bb6109467830d6a3e42dd847668d
# In the future this will be augmented with a check for whether
# or not we've reprovisioned the rootfs, since we don't want to
# force on prjquota there.
rootpath=/dev/disk/by-label/root
eval $(blkid -o export ${rootpath})
mountflags=
if [ "${TYPE}" == "xfs" ]; then
mountflags=prjquota
fi
mount -o "${mountflags}" "${rootpath}" /sysroot