#!/usr/bin/execlineb -P
# Early live image configuration (OpenRC: before mountkernfs / mount-sysfs).
# Do not use `if -t`: that swallows live-config failures and boot continues
# without a live user (nodm then falls back to root).
foreground { mkdir -p /var/log/live /run /tmp }
ifelse -n { test -x /bin/live-config }
{
	foreground {
		redirfd -w 1 /run/live-config.status
		echo missing-bin
	}
	foreground { echo live-config: /bin/live-config missing }
	exit 1
}
/bin/live-config start
