Changeset adcbdaf6491548792303896178b1611d1b693983 for fedkit
- Timestamp:
- 09/18/09 19:27:17 (3 years ago)
- Children:
- 69692a9b4fdb882eb9deddb4da2c105ba1a2e18d
- Parents:
- 157ac77a0528c9fa35cf7653bd002564735f69f2
- git-committer:
- Ted Faber <faber@isi.edu> / 2009-09-19T02:27:17Z+0000
- Location:
- fedkit
- Files:
-
- 1 added
- 2 removed
- 2 modified
-
Makefile (modified) (2 diffs)
-
fed-tun.ucb.pl (deleted)
-
federate.sh (modified) (4 diffs)
-
rc.accounts.patch (deleted)
-
rc.fedaccounts (added)
Legend:
- Unmodified
- Added
- Removed
-
fedkit/Makefile
r9c166cf radcbdaf 1 1 BINARIES=federate.sh smbmount.FreeBSD.pl smbmount.Linux.pl \ 2 make_hosts fed-tun.pl fed-tun.ucb.pl fed_evrepeater 3 PATCHES=rc.accounts.patch 2 make_hosts fed-tun.pl fed_evrepeater rc.fedaccounts 4 3 5 4 fedkit.tgz: ${BINARIES} ${PATCHES} … … 7 6 mkdir -p /tmp/fedkit/local/federation/etc 8 7 cp ${BINARIES} /tmp/fedkit/local/federation/bin 9 cp ${PATCHES} /tmp/fedkit/local/federation/etc10 8 tar czf fedkit.tgz -C /tmp/fedkit local 11 9 rm -rf /tmp/fedkit -
fedkit/federate.sh
r4450b24 radcbdaf 73 73 cp "$CONFIGDIR/client.conf" "/usr/local/federation/etc" 74 74 chmod 644 "/usr/local/federation/etc/client.conf" 75 # Capture accounts to remove for rc.fedaccounts 76 $EMUDIR/tmcc -b accounts > /usr/local/federation/etc/old_accts 77 chmod 644 "/usr/local/federation/etc/old_accts" 75 78 76 79 # Get our gateway, share, and mount user from the configuration file. … … 120 123 cp /tmp/hosts /etc/hosts && rm /tmp/hosts 121 124 122 # XXX:123 # The standard emulab rc.accounts script won't replace existing user accounts124 # with our new ones, so we have to patch it to do so. This is obviously pretty125 # fragile and needs to change. To make matters worse, our FBSD62-SMB images126 # contain the patched rc.accounts, so this patching step will fail there.127 128 if [ -e /usr/local/federation/etc/rc.accounts.patch ]; then129 cd "$EMUDIR/rc"130 patch -f < /usr/local/federation/etc/rc.accounts.patch131 cd /tmp132 fi133 134 125 # 135 126 # Spin on our gateway! … … 153 144 echo $GATEWAY > $BOSSNODE 154 145 146 # Capture new accounts for rc.fedaccounts 147 $EMUDIR/tmcc -b accounts > /usr/local/federation/etc/accts 148 chmod 644 "/usr/local/federation/etc/accts" 155 149 156 150 # … … 178 172 rm -f /var/emulab/boot/tmcc/accounts 179 173 180 $RCDIR/rc.accounts reconfig 174 /usr/local/federation/bin/rc.fedaccounts 181 175 182 176 #
