3 # Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; version 2 of the License.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 declare -r _VS_NEWLINE=${_VS_NEWLINE:0-1}
24 declare -r VS_ALLVSERVERS_ARGS=all,marked,unmarked,stopped,running
35 test -n "$_fo_i" || continue
36 test ! $_fo_mod "$_fo_i" || { _fo_file=$_fo_i; break; }
39 test -z "$_fo_i" -o -n "$_fo_file" || {
40 echo "Can not find file for '$_fo_var'; aborting"
44 eval "$_fo_var=\"$_fo_file\""
60 test ! -s "$dst" || return 0
66 test -n "$tmp" -a -s "$tmp" || return 0
67 $_CP -af "$tmp" "$dst"
70 ## Usage: isRegularFile <filename> [<mod>]
71 function isRegularFile
73 test ${2:--f} "$1" || return 1
76 (*.rpmsave|*.rpmnew|*.rpmorig|*.cfsaved*|*.~*~) return 1;;
82 function getPhysicalDir
84 ( set -P && cd "$1" && pwd )
87 ## Usage:: isDirectoryEmpty <dir> [<ignore-lost+found>]
88 function isDirectoryEmpty
92 shopt -s nullglob || *
95 test -z "$2" -o "$2" = 0 || ignore_lostfound=
100 test "$ignore_lostfound" || exit 1
102 (*) echo "$i"; exit 1
110 ## Usage: logging <message>
113 if test -n "$_VS_LOGFILE"; then
114 echo "$@" >>"$_VS_LOGFILE"
120 ## Usage: warning <message>
123 if test -n "$_VS_ERRFILE"; then
124 echo "$@" >>"$_VS_ERRFILE"
130 ## Usage: panic <message>
133 if test -n "$_VS_ERRFILE"; then
134 echo "$@" >>"$_VS_ERRFILE"
142 ## Usage: execute <message>
145 test -z "${DEBUG_EXEC:-}" || echo "$@"
146 test "${DEBUG_EXEC:-}" = noexec || exec "$@"
151 ## Usage: spawn <message>
154 test -z "${DEBUG_EXEC:-}" || echo "$@"
155 test "${DEBUG_EXEC:-}" = noexec || "$@"
158 ## Usage: isNumber <arg>
162 let tmp=$1+0 2>/dev/null || test -z "${1//0/}" -a -n "$1" || return 1
166 ## Usage: hasSubstring <haystack> <needle>+
167 function hasSubstring
175 test x"${pat/*$i*/$i}" = x"$i" || continue
182 ## Usage: colorize <style> <command>
192 findFile cfile "$__CONFDIR"/.defaults/styles/"$style" ''
193 if test -n "$cfile"; then
197 (bold) echo -ne "\e[1m";;
198 (emph) echo -ne "\e[34m";;
199 (info) echo -ne "\e[0;34m";;
200 (warn*) echo -ne "\e[1;31m";;
201 (error) echo -ne "\e[1;33;41m";;
213 colorize error panic "$@"
218 colorize warning warning "$@"
223 colorize info echo "$@"
227 ## Usage: xtermTitle <title>
231 echo -ne "\e]0;$@\007"
235 ## Usage: lock <lockfile> [<timeout>]
238 local tmp=$($_MKTEMP /tmp/vserver-lock.XXXXXX)
242 $_LOCKFILE "$1" $tmp $2 &
243 $_GREP -q true $tmp 2>/dev/null || return 1
245 _VS_LOCKS="$! $_VS_LOCKS"
248 ## Usage: unlock [<num>]
255 while test "$#" -gt 0; do
256 kill -HUP "$1" >/dev/null || :
258 test "$num" != 1 || break
259 test -z "$num" || let --num
264 function _pkgMountBindDir()
266 test "$1" != "$2" || return 0
268 $_MOUNT -n --bind "$1" "$2"
271 function _pkgSetVarsBase
275 if test -d "$vserver/vdir"; then
277 VDIR=$(getPhysicalDir "$vserver/vdir")
279 PKGDIR=$BASEDIR/apps/pkgmgmt
280 test -d "$PKGDIR" || {
281 echo "Can not find configuration-directory for package-managment tools"
284 findDir EXECDIR $PKGDIR/execdir /
286 VDIR=$(getPhysicalDir "$vserver")
291 BASEDIR=$__CONFDIR/$vserver
292 test -d "$BASEDIR" || {
293 echo "Can not find configuration-directory"
298 test -d "$VDIR" || VDIR=$__DEFAULT_VSERVERDIR/$vserver
299 VDIR=$(getPhysicalDir "$VDIR")
301 PKGDIR=$BASEDIR/apps/pkgmgmt
302 test -d "$PKGDIR" || {
303 echo "Can not find configuration-directory for package-managment tools"
307 findDir EXECDIR $PKGDIR/execdir /
312 if test -z "$WORKAROUND_106057"; then
315 _rpmdb_mntpoint=/.rpmdb
319 function _pkgSetVarsRPM
321 if test -n "$PKGDIR"; then
322 findDir RPMETCDIR $PKGDIR/rpmetc $PKGDIR/base/rpm/etc /etc/rpm
323 findDir RPMSTATEDIR $PKGDIR/rpmstate $PKGDIR/base/rpm/state
325 findDir RPMLIBDIR $PKGDIR/rpmlib /
328 findDir RPMETCDIR "$VDIR"/etc/rpm /etc/rpm
329 findDir RPMSTATEDIR "$VDIR"/var/lib/rpm
333 RPMSTATEDIR=$(getPhysicalDir "$RPMSTATEDIR")
334 RPMETCDIR=$(getPhysicalDir "$RPMETCDIR")
337 function _pkgSetVarsApt
339 if test -n "$PKGDIR"; then
340 findDir APTETCDIR $PKGDIR/aptetc $PKGDIR/base/apt/etc /etc/apt
341 findDir APTSTATEDIR $PKGDIR/aptstate $PKGDIR/base/apt/state
342 findDir APTCACHEDIR $PKGDIR/aptcache $PKGDIR/base/apt/cache
343 findDir APTARCHIVDIR $PKGDIR/aptarchives $PKGDIR/base/apt/archives /var/cache/apt/archives
345 findDir APTETCDIR "$VDIR"/etc/apt /etc/apt
346 findDir APTSTATEDIR "$VDIR"/var/state/apt
347 findDir APTCACHEDIR "$VDIR"/var/cache/apt
348 findDir APTARCHIVDIR "$VDIR"/var/cache/apt/archives /var/cache/apt/archives
351 findFile APT_CONFIG "$APTETCDIR"/apt.conf ""
352 test -z "$APT_CONFIG" || export APT_CONFIG
355 function _pkgSetVarsYum
357 if test -n "$PKGDIR"; then
358 findDir YUMETCDIR $PKGDIR/yumetc $PKGDIR/base/yum/etc /etc
359 findDir YUMCACHEDIR $PKGDIR/yumcache $PKGDIR/base/yum/cache
361 findDir YUMETCDIR "$VDIR"/etc /etc
362 findDir YUMCACHEDIR "$VDIR"/var/cache/yum
367 function _pkgMountBase
372 function _pkgMountApt
377 function _pkgMountYum
382 function _pkgMountRPM
384 _pkgMountBindDir "$RPMETCDIR" /etc/rpm
385 test "$RPMLIBDIR" = "/" || _pkgMountBindDir "$RPMLIBDIR" /usr/lib/rpm
387 pushd "$VDIR" >/dev/null
389 $_SECURE_MOUNT --chroot -n --bind "$RPMSTATEDIR" "$_rpmdb_mntpoint"
390 test -z "$WORKAROUND_106057" || mount -n --bind "$RPMSTATEDIR" "$_rpmdb_mntpoint"
392 test -e "$VDIR"/proc/self/status || \
393 $_SECURE_MOUNT --chroot -n -t proc none /proc
398 function _pkgSetEnvBase
400 test "$EXECDIR" = "/" || {
402 LD_LIBRARY_PATH=$EXECDIR${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
405 export PATH LD_LIBRARY_PATH
408 function _pkgSetEnvApt
413 function _pkgSetEnvYum
418 function _pkgSetEnvRPM
421 RPM_FAKE_NAMESPACE_MOUNTS=$_rpmdb_mntpoint
422 RPM_BINARY=$_VRPM_PRELOAD
424 export CUR_VSERVER RPM_FAKE_NAMESPACE_MOUNTS RPM_BINARY
436 rpm) _pkgSetVarsRPM;;
437 apt) _pkgSetVarsApt;;
438 yum) _pkgSetVarsYum;;
439 *) echo "Unknown packaging flavor" >&2; exit 1;;
462 _PKG_VSERVER=$vserver
465 function isAvoidNamespace
469 $_VSERVER_INFO - FEATURE namespace || return 0
470 cfgdir=$($_VSERVER_INFO "$1" CFGDIR) || return 0
471 test ! -e "$cfgdir"/namespace || return 1
472 test -e "$__CONFDIR"/.defaults/nonamespace -o \
473 -e "$cfgdir"/nonamespace
476 ## Usage: getAllVservers <var> [<KIND>*]
477 function getAllVservers
480 declare -a _ga_tmp=()
482 for _ga_i in $__CONFDIR/*; do
483 isRegularFile "$_ga_i" -d || continue
485 test ! -e "$_ga_i"/disabled || continue
486 test -d "$_ga_i"/vdir || continue
489 local _ga_markfile=$_ga_i/apps/init/mark
492 (MARKED) test -s "$_ga_markfile" || _ga_doadd=;;
493 (UNMARKED) test ! -s "$_ga_markfile" || _ga_doadd=;;
494 (STOPPED) ! $_VSERVER "$_ga_i" running &>/dev/null || _ga_doadd=;;
495 (RUNNING) $_VSERVER "$_ga_i" running &>/dev/null || _ga_doadd=;;
497 (*) panic $"Unknown vserver tagging '$2'";;
500 test -z "$_ga_doadd" || _ga_tmp=( "${_ga_tmp[@]}" "${_ga_i##$__CONFDIR/}")
503 eval $1='( "${_ga_tmp[@]}" )'
506 ## Usage: getAllVserversByArg <var> <arg>
507 function getAllVserversByArg
512 (--all) _gav_mark=ALL;;
513 (--marked) _gav_mark=MARKED;;
514 (--unmarked) _gav_mark=UNMARKED;;
515 (--stopped) _gav_mark=STOPPED;;
516 (--running) _gav_mark=RUNNING;;
520 getAllVservers "$1" "$_gav_mark"
523 ## Usage: _getProcNumberCount <ctx> <var>
524 function _getProcNumberCount
527 local _gp_procnr_cnt=0
529 # Use /proc/virtual from kernel 2.6 when possible
530 if test -d "/proc/virtual"; then
531 set -- $($_GREP '^PROC:' "/proc/virtual/$1/limit" 2>/dev/null)
534 _gp_procnr_cnt=$($_VPS ax | $_AWK '{print $2}' | $_GREP -x "$1" | $_WC -l )
537 let _gp_procnr_cnt=_gp_procnr_cnt+0
538 eval $_gp_var=\$_gp_procnr_cnt
541 ## Usage: getVserverCtx <vdir> <result-varname> [<procnumber-varname> [<do-cleanup>]]
542 ## Returns: 0 iff vserver is running
543 function getVserverStatus
545 test -r "$1"/run || return 1
548 read _gvs_ctx <"$1"/run
551 test -n "$3" || return 0
553 _getProcNumberCount "$_gvs_ctx" _gvs_tmp
556 if test "$_gvs_tmp" = 0; then
557 local runfile=$($_READLINK "$1/run")
558 test -z "$4" || $_RM -f "$runfile"
565 ## Usage: isCtxRunning <ctx>
566 function isCtxRunning
569 _getProcNumberCount "$1" _tmp
573 ## Usage: isVserverRunning <vdir> [<ctx-varname>]
574 function isVserverRunning
576 local _ivr_ctx _ivr_procnum
578 getVserverStatus "$1" _ivr_ctx _ivr_procnum 1 || return 1
579 test "$_ivr_procnum" != 0 || return 1
580 test -z "$2" || eval "$2"=\$_ivr_ctx
584 ## Called as 'getFileValue <varname> <filename>+'
585 function getFileValue
591 findFile _gfv_file "$@" ''
592 test -n "$_gfv_file" -a -r "$_gfv_file" || return 0
593 eval read "$_gfv_var" <"$_gfv_file"
596 ## Called as 'getFileArray <varname> <filename>'
597 function getFileArray
599 test -r "$2" || return 1
601 local IFS=$_VS_NEWLINE
602 eval "$1"='( $(< "$2") )'
605 function checkComponents
616 (core) test -x "$_CHBIND" || failed=1;;
617 (build) test -x "$_VSERVER_BUILD" || failed=1;;
618 (sysv) test -x "$__INITRDDIR/vserver" || failed=1;;
619 (devel) test -d "$__INCLUDEDIR/vserver.h" || failed=1;;
620 (*) echo "Unknown component '$i'" >&2
625 test -z "$failed" || {
634 ## Usage: isKernelAPI <ver> [<cmp-modifier>]
638 api=$($_VSERVER_INFO - APIVER) || api=0
639 test $[ $api ] -${2:-ge} $[ $1 ]
642 ## Usage: callInNamespace <vserver> <command> <args>*
643 function callInNamespace
647 isAvoidNamespace "$1" || \
648 ctx=$( $_VSERVER_INFO "$1" CONTEXT f ) || ctx=
651 if test -n "$ctx"; then
652 $_VNAMESPACE --enter "$ctx" -- "$@"
658 ## Usage: setDefaultTTY <vdir> [<fallback-tty>]
659 function setDefaultTTY
663 cfgdir=$($_VSERVER_INFO "$1" APPDIR init) || cfgdir=
664 findObject -e ttyname \
665 ${cfgdir:+"$cfgdir"/tty} \
666 "$__CONFDIR/.defaults/apps/init/tty" \
673 ## Usage: killContext <XID> [<SIG>]
678 #$_VKILL -s STOP --xid "$1" 1 &>/dev/null || :
679 $_VKILL -s "$sig" --xid "$1" 1 &>/dev/null || :
680 $_VKILL -s "$sig" --xid "$1" &>/dev/null || :
681 #$_VKILL -s "$sig" --xid "$1" 1 &>/dev/null || :
682 #$_VKILL -s CONT --xid "$1" 1 &>/dev/null || :
685 ## Usage: pkgmgmt.guessStyle <vserver> <resultvar>
686 function pkgmgmt.guessStyle()
689 _pgs_vdir=$($_VSERVER_INFO "$1" VDIR) || {
690 echo $"Can not determine vserver-root" >&2
693 local _pgs_cfgdir=$($_VSERVER_INFO "$1" APPDIR pkgmgmt) || :
695 if test -n "$_pgs_cfgdir" -a -e "$_pgs_cfgdir"/style; then
696 read style <"$_pgs_cfgdir"/style
697 elif test -e "$_pgs_vdir"/etc/redhat-release -o -e "$_pgs_vdir"/etc/fedora-release; then
699 elif test -e "$_pgs_vdir"/etc/mandrake-release; then
701 elif test -e "$_pgs_vdir"/etc/debian_version; then
703 elif test -e "$_pgs_vdir"/etc/SuSE-release; then
706 echo $"Can not determine packagemanagement style" >&2
714 ## Usage: pkgmgmt.isInternal <vserver>
715 ## returns true iff <vserver> is configured for internal packagemanagement
716 ## A typical application is
718 ## | pkgmgmt.isInternal "$vserver" || is_external=1
719 function pkgmgmt.isInternal
721 local cfgdir=$($_VSERVER_INFO "$1" APPDIR pkgmgmt) || :
723 test -z "$cfgdir" -o ! -d "$cfgdir" -o -e "$cfgdir"/internal
726 ## Usage: pkgmgmt.isAptAvailable <cfgdir> <vdir> [<is-internal>]
727 function pkgmgmt.isAptAvailable
731 local is_internal="$3"
734 if test -n "$is_internal"; then
736 test -d "$cfgdir"/base/apt -o -d "$cfgdir"/aptetc || have_apt=
739 for i in /bin /usr/bin /usr/local/bin; do
740 test ! -x "$vdir$i"/apt-get || { have_apt=1; break; }
744 test -n "$have_apt" && return 0 || return 1
747 ## Usage: pkgmgmt.isYumAvailable <cfgdir> <vdir> [<is-internal>]
748 function pkgmgmt.isYumAvailable
752 local is_internal="$3"
755 if test -n "$is_internal"; then
757 test -d "$cfgdir"/base/yum -o -d "$cfgdir"/yumetc || have_yum=
760 for i in /bin /usr/bin /usr/local/bin; do
761 test ! -x "$vdir$i"/yum || { have_yum=1; break; }
765 test -n "$have_yum" && return 0 || return 1
769 function vshelper.doSanityCheck
771 local vshelper this_xid i
772 declare -a warnings=()
773 local solution_disable=
774 local solution_sysctl=
776 vshelper.isEnabled && vshelper.isEnabled warning || return 0
778 this_xid=$($_VSERVER_INFO - XID) ||
779 panic $"Failed to determine current context; aborting..."
781 ## Do nothing in other xid's; the helper will be executed in xid 0 only
782 test "$this_xid" = 0 || return 0
784 local proc_file=/proc/sys/kernel/vshelper
786 if ! test -r "$proc_file"; then
788 warnings=( "${warnings[@]}"
789 $"File '$proc_file' does not exist but is required for vshelper setup" )
792 vshelper=$(cat "$proc_file")
794 $_CMP -s "$vshelper" "$_VSHELPER" || {
795 warnings=( "${warnings[@]}"
796 $"The configured vshelper '$vshelper' does not match the 'vshelper'
797 script of the util-vserver package"
804 test -d "$__VSHELPERSTATEDIR" || {
805 warnings=( "${warnings[@]}"
807 The vshelper state-directory '$__VSHELPERSTATEDIR' does not exist; since
808 it is created by 'make install', this indicates a serious problem with
809 your util-vserver installation" )
813 test "${#warnings[@]}" -eq 0 || {
815 The following problem(s) were encountered while verifying vshelper
818 for i in "${warnings[@]}"; do
824 To fix this, you can:"
826 test -z "$solution_disable" || warning $"\
827 * disable vshelper entirely by executing
828 | touch \"$__CONFDIR/.defaults/apps/vshelper/disabled\"
829 * disable only this message by executing
830 | touch \"$__CONFDIR/.defaults/apps/vshelper/warning-disabled\""
832 test -x "$solution_sysctl" || warning $"\
833 * configure the util-vserver vshelper script, e.g. by adding
834 | kernel.vshelper = $_VSHELPER
835 to /etc/sysctl.conf and rebooting the machine, or by executing
836 | echo \"$_VSHELPER\" >$proc_file"
846 ## Usage: vshelper.isEnabled [<style>] [<vserver>]
847 function vshelper.isEnabled
849 local f=${1:+$1-}disabled
850 test ! -e "$__CONFDIR"/.defaults/apps/vshelper/"$f" || return 1
851 $_VSERVER_INFO - FEATURE vshelper || return 1
852 if test -n "$2"; then
854 appdir=$($_VSERVER_INFO "$2" APPDIR vshelper) || return 0
855 test -z "$2" -o ! -e "$appdir/$f" || return 1
861 ## Usage: vshelper.isDebug [<vserver>]
862 function vshelper.isDebug
864 test ! -e "$__CONFDIR"/.defaults/apps/vshelper/debug || return 0
865 $_VSERVER_INFO - FEATURE vshelper || return 1
866 if test -n "$1"; then
868 appdir=$($_VSERVER_INFO "$1" APPDIR vshelper) || return 1
869 test ! -e "$appdir/debug" || return 0
875 function vshelper._getHandlerInternal
880 shift ## HACK: see below the note about the 'set -u' mode
882 while test "$#" -ge 2; do
887 test "$_vghi_mod" "$_vghi_obj" || continue
890 eval $_vghi_var=\$_vghi_obj
893 read _vghi_tmp <"$_vghi_obj"
894 eval $_vghi_var=:\$_vghi_tmp
896 (*) panic $"Internal error, unexpected modifier '$_vghi_mod'"
904 ## Usage: vshelper.getHandler <result-var> <vserver> <action>
905 function vshelper.getHandler
908 _vgh_appdir=$($_VSERVER_INFO "$2" APPDIR vshelper) || _vgh_appdir=
910 declare -a _vgh_search_list=( X )
911 ## HACK: when we are in 'set -u' mode, empty lists are causing errors
913 test -z "$_vgh_appdir" || _vgh_search_list=( "${_vgh_search_list[@]}" -x "$_vgh_appdir/$3" )
914 test -z "$_vgh_appdir" || _vgh_search_list=( "${_vgh_search_list[@]}" -e "$_vgh_appdir/action" )
915 _vgh_search_list=( "${_vgh_search_list[@]}" -x "$__CONFDIR"/.defaults/apps/vshelper/"$3" )
916 _vgh_search_list=( "${_vgh_search_list[@]}" -e "$__CONFDIR"/.defaults/apps/vshelper/action )
918 ! vshelper._getHandlerInternal "$1" "${_vgh_search_list[@]}" || return 0
922 ## Usage: vshelper.init <vserver> [<method> <args>*]
923 function vshelper.doInit
925 vshelper.isEnabled || return 0
928 xid=$($_VSERVER_INFO "$1" CONTEXT false) && test -n "$xid" || {
929 warning $"vshelper.init: can not determine xid of vserver '$vserver'; returned value was '$xid'"
933 local f="$__VSHELPERSTATEDIR/$xid"
940 if test -n "$2"; then
953 ## Usage: vshelper.doDestroy <vserver> <xid>
954 function vshelper.doDestroy
956 vshelper.isEnabled || return 0
958 $_RM -f "$__VSHELPERSTATEDIR/$2"
961 ## Usage: vshelper.initSync <vserver> <pipe-varname> [<method>]
962 function vshelper.initSync
965 _vis_tmpdir=$($_MKTEMPDIR /tmp/vserver-stop.XXXXXX) || {
966 warning $"Failed to generate temporary directory for vshelper sync"
970 local _vis_fifo="$_vis_tmpdir"/pipe
971 $_MKFIFO -m700 "$_vis_fifo"
972 vshelper.doInit "$1" "${3:-sync}" "$_vis_fifo"
976 ## Usage: vshelper.getSyncTimeout <vserver> <varname>
977 function vshelper.getSyncTimeout
979 local _vgst_appdir _vgst_file _vgst_tmp
980 _vgst_appdir=$($_VSERVER_INFO "$1" APPDIR vshelper) || _vgst_appdir=
982 findFile _vgst_file ${_vgst_appdir:+"$_vgst_appdir"/sync-timeout} "$__CONFDIR"/.defaults/apps/vshelper/sync-timeout ''
983 test -n "$_vgst_file" || return 1
984 read _vgst_tmp <"$_vgst_file"
989 function _rpmFake.getCapFlags
993 if test -n "$ctx" && ! $_VSERVER_INFO - FEATURE migrate; then
994 set -- $($_CHCONTEXT_COMPAT --xid 1 \
995 $_SH -c "$_CAT /proc/[0-9]*/status | $_EGREP '^(CapBset|s_context|ctxflags)'" | \
996 $_GREP -B 1 -A 1 "^s_context: $ctx " | \
997 $_SED -e '1,3p;d' | $_AWK '{ print $2 }')
1002 if test -n "$3"; then
1003 RPM_FAKE_CAP=$[ ~0x$1 ]
1006 RPM_FAKE_CAP=$[ ~0xd40c04ff ]
1011 function rpmFake.init
1015 vdir=$($_VSERVER_INFO "$1" VDIR) || vdir="$1"
1016 ctx=$($_VSERVER_INFO "$1" CONTEXT) || ctx=
1019 panic $"Can not find chroot environment at '$vdir' for '$1'"
1021 _rpmFake.getCapFlags "$ctx"
1023 RPM_FAKE_CHROOT=$vdir
1027 function rpmFake.exec
1029 export RPM_FAKE_CHROOT RPM_FAKE_CTX RPM_FAKE_CAP RPM_FAKE_FLAGS
1031 LD_PRELOAD=$_RPM_FAKE_SO${LD_PRELOAD:+:$LD_PRELOAD} \