Changeset 2600
- Timestamp:
- 08/27/07 12:16:40 (1 year ago)
- Files:
-
- trunk/distrib/debian/initpost (modified) (3 diffs)
- trunk/distrib/debian/vserver-config.sh (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/distrib/debian/initpost
r2571 r2600 25 25 26 26 # vserver name 27 NAME= $(< "$cfgdir"/name)27 NAME="$cfgdir" 28 28 29 29 … … 104 104 fi 105 105 106 # from here on we need to do things live in the server107 $_CHROOT_SH truncate /vserver-config.sh < "$__DISTRIBDIR"/etch/vserver-config.sh108 $_CHROOT_SH chmod 0755 /vserver-config.sh109 110 106 echo 111 107 echo ">>> Executing post install script ... " … … 113 109 114 110 # start vserver before we can exec anything inside it 115 vserver $NAME start 111 $_VSERVER "$NAME" stop &>/dev/null || : 112 $_VSERVER "$NAME" start --rescue --rescue-init bash -c ' 113 exec > /dev/null 114 exec 2> /dev/null 115 116 set -x 117 f=/tmp/startwait 118 trap "rm -f $f" EXIT 119 mkfifo $f 120 ( sleep 15; kill -s 9 -- -1 ) & 121 cat "$f" 122 kill -s 9 -- -1 123 wait 124 ' 116 125 117 126 # run the configure commands from within the server 118 vserver $NAME exec /vserver-config.sh 119 $_CHROOT_SH rm /vserver-config.sh 127 export LANG=C LC_ALL=C 128 129 $_CHROOT_SH testfile /usr/sbin/locale-gen && \ 130 $_VSERVER "$NAME" exec /usr/sbin/locale-gen 131 132 for i in bootlogd checkfs checkroot halt hwclock.sh ifupdown klogd \ 133 libdevmapper1.02 makedev module-init-tools mountall.sh \ 134 mountdevsubfs.sh mountnfs.sh mountkernfs.sh mountvirtfs \ 135 networking reboot setserial single stop-bootlogd \ 136 stop-bootlogd-single umountfs umountnfs.sh umountroot \ 137 urandom; do 138 $_VSERVER "$NAME" exec update-rc.d -f "$i" remove 139 done 120 140 121 141 # stop the vserver 122 vserver $NAME stop 142 $_VSERVER "$NAME" exec bash -c ': >/tmp/startwait' &>/dev/null || : 143 $_VSERVER "$NAME" stop &>/dev/null || : 123 144 124 145 popd &>/dev/null
