/usr/share/tcos/hooks/tcosnfs 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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | #!/bin/bash
# new header not using prereqs
if [ "$1" = "prereqs" ]; then
echo ""
exit 0
fi
# Hooks for install binaries for tcos boot
#
. /usr/share/initramfs-tools/hook-functions
# read conf file => /etc/tcos/initramfs.conf
. $CONFDIR/initramfs.conf
# read from env vars TCOS_BOOT
TCOS_BOOT=$(env| awk -F "=" '/^TCOS_BOOT=/ {print $2}')
if [ "${TCOS_BOOT}" != "" ]; then
BOOT=$TCOS_BOOT
fi
if [ "${BOOT}" = "tcos-nfs" ]; then
. $CONFDIR/tcos.conf
. $TCOS_DIR/tcos-generation-functions.sh
for tpl in $(tcos_get_templates); do
_verbose "(tcosnfs) loading template $(basename $tpl)"
. $tpl
done
# load forced settings for derivatives
if [ -d $CONFDIR/conf.d/ ]; then
for file in $CONFDIR/conf.d/tcos*conf; do
[ -e $file ] && . $file
done
fi
# load some hook-addons (not all needed here, we need a minimal image)
TCOS_INCLUDE_INIT=1
. ${TCOS_DIR}/hooks-addons/00init
. ${TCOS_DIR}/hooks-addons/00main
. ${TCOS_DIR}/hooks-addons/00users
. ${TCOS_DIR}/hooks-addons/01dhclient
. ${TCOS_DIR}/hooks-addons/01busybox
. ${TCOS_DIR}/hooks-addons/02hex2ascii
. ${TCOS_DIR}/hooks-addons/03udev2
. ${TCOS_DIR}/hooks-addons/03wireless
. ${TCOS_DIR}/hooks-addons/05compcache
. ${TCOS_DIR}/hooks-addons/23bootchart
. ${TCOS_DIR}/hooks-addons/99clean_nfs_image
unset TCOS_INCLUDE_INIT
manual_add_modules unionfs
manual_add_modules aufs
manual_add_modules loop
fi
|