| 95 | |
| 96 | cp /etc/schroot/schroot.conf /etc/schroot/schroot.conf.`getDateTime` |
| 97 | cat << EOF > /etc/schroot/schroot.conf |
| 98 | [IMGogclient] |
| 99 | type=loopback |
| 100 | file=/var/lib/tftpboot/ogclient/ogclient.img |
| 101 | description=ogclient ubuntu luc IMGi |
| 102 | priority=1 |
| 103 | users=root |
| 104 | groups=root |
| 105 | root-groups=root |
| 106 | mount-options=-o offset=32256 |
| 107 | root-users=root |
| 108 | [DIRogclient] |
| 109 | type=directory |
| 110 | directory=/var/lib/tftpboot/ogclient/ogclientmount |
| 111 | description=ogclient ubuntu lucid DIR |
| 112 | priority=2 |
| 113 | users=root |
| 114 | groups=root |
| 115 | root-groups=root |
| 116 | root-users=root |
| 117 | EOF |
| 118 | cp /etc/schroot/mount-defaults /etc/schroot/mount-defaults.`getDateTime` |
| 119 | cat << EOF > /etc/schroot/mount-defaults |
| 120 | # mount.defaults: static file system information for chroots. |
| 121 | # Note that the mount point will be prefixed by the chroot path |
| 122 | # (CHROOT_PATH) |
| 123 | # |
| 124 | # <file system> <mount point> <type> <options> <dump> <pass> |
| 125 | proc /proc proc defaults 0 0 |
| 126 | #procbususb /proc/bus/usb usbfs defaults 0 0 |
| 127 | #/dev /dev none rw,bind 0 0 |
| 128 | /dev/pts /dev/pts none rw,bind 0 0 |
| 129 | /dev/shm /dev/shm none rw,bind 0 0 |
| 130 | #/home /home none rw,bind 0 0 |
| 131 | /tmp /tmp none rw,bind 0 0 |
| 132 | EOF |
| 133 | |
| 134 | |