Skip to content
Open
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
3 changes: 3 additions & 0 deletions recipes-core/base-files/files/fstab.early
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ tmpfs /var/cache tmpfs defaults,rootcontext=system_u:ob

# OpenXT: modutils.sh loads before mountall.sh, and modutils.sh will load the txt module, which needs this:
securityfs /sys/kernel/security securityfs defaults 0 0

# OpenXT: xenmgr.initscript requires early storage mount with new boot timing introduced by LUKS2
/dev/mapper/xenclient-storage /storage ext4 errors=remount-ro,user_xattr,noatime 1 5
4 changes: 4 additions & 0 deletions recipes-openxt/manager/xenmgr/xenmgr.initscript
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ cmdline_options() {

# Create/Label /storage/isos/null.iso if not present.
check_null_iso() {
# Ensure /storage exists
[ -d /storage ] || mkdir -p /storage
mountpoint -q /storage || mount /storage

if [ -f "/storage/isos/null.iso" ]; then
return 0
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,11 @@ unlock_config()
local tss_path="${SYS_TPM_DIR}/config.tss"
local measured_flag="/config/tpm/measured-boot"

# LUKS2 changes some early boot timing, so /run may not be mounted yet.
# Perform check here to ensure it is mounted to prevent cryptsetup failures
[ -d /run ] || mkdir -p /run
mountpoint -q /run || mount -t tmpfs -o mode=0755,nosuid,nodev tmpfs /run

local sig=$(dd if="${lv_path}" bs=4 count=1 2>/dev/null)
case "${sig}" in
LUKS)
Expand Down