/usr/share/tcos/scripts/tcos-premount/50unionfs is in initramfs-tools-tcos 0.89.93ubuntu2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #!/bin/sh
#
if [ "$1" = "prereqs" ]; then
exit 0
fi
quiet=n
. /scripts/functions
# if break=unionfs STOP here
maybe_break unionfs
. /conf/tcos.conf
. /conf/tcos-run-functions
# Mount squashfs over unionfs
log_begin_msg "Mounting UNIONFS usr filesystem"
if [ ! -d /usr/share ]; then
panic "Error mounting usr.squashfs check squashfs module or bugs"
fi
mount_unionfs /mnt/ram /.usr /usr
log_end_msg $?
###############################################
# DOCUMENTME allmodules | download with tftp allmodules.squashfs to test what modules need thin client
TCOS_ALL_MODULES_CMD=$(read_cmdline_var "allmodules" "0")
if [ "$TCOS_ALL_MODULES_CMD" = "1" ] || [ ! -z $TCOS_ALL_MODULES_DOWNLOAD ]; then
if [ -d /mnt/.modules/ ]; then
log_begin_msg "Remounting allmodules in RW mode"
mount_unionfs /mnt/.ram-modules /mnt/.modules /lib/modules/$(uname -r)
log_end_msg $?
fi
fi
exit 0
|