···155155mount -t tmpfs -o "mode=0755" tmpfs /var/setuid-wrappers
156156157157158158+# Optionally log the script output to /dev/kmsg or /run/log/stage-2-init.log.
159159+# Only at this point are all the necessary prerequisites ready for these commands.
160160+if test -n "@logCommands@"; then
161161+ exec {logOutFd}>&1 {logErrFd}>&2
162162+ if test -w /dev/kmsg; then
163163+ exec > >(tee -i /proc/self/fd/"$logOutFd" | while read line; do
164164+ if test -n "$line"; then
165165+ echo "stage-2-init: $line" > /dev/kmsg
166166+ fi
167167+ done) 2>&1
168168+ else
169169+ mkdir -p /run/log
170170+ exec > >(tee -i /run/log/stage-2-init.log) 2>&1
171171+ fi
172172+fi
173173+174174+158175# Run the script that performs all configuration activation that does
159176# not have to be done at boot time.
160177echo "running activation script..."
···180197181198# Run any user-specified commands.
182199@shell@ @postBootCommands@
200200+201201+202202+# Reset the logging file descriptors
203203+if test -n "@logCommands@"; then
204204+ exec 1>&$logOutFd 2>&$logErrFd
205205+ exec {logOutFd}>&- {logErrFd}>&-
206206+fi
183207184208185209# Start systemd.