-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
executable file
·37 lines (21 loc) · 1 KB
/
bootstrap.sh
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
#!/bin/sh
iocage fetch -P spectrum-protect.json
# Add a block for every mountpoint you need
###################
MOUNT_DIR=/mnt/home
MOUNT_JAIL=/home
iocage exec spectrum-protect "mkdir -p $MOUNT_JAIL"
iocage exec spectrum-protect 'echo "/dev'$MOUNT_JAIL' '$MOUNT_JAIL' nullfs rw 0 0" >> /compat/linux/etc/mtab'
iocage fstab -a spectrum-protect "$MOUNT_DIR $MOUNT_JAIL nullfs rw 0 0"
###################
MOUNT_DIR=/mnt/gruppen
MOUNT_JAIL=/gruppen
iocage exec spectrum-protect "mkdir -p $MOUNT_JAIL"
iocage exec spectrum-protect 'echo "/dev'$MOUNT_JAIL' '$MOUNT_JAIL' nullfs rw 0 0" >> /compat/linux/etc/mtab'
iocage fstab -a spectrum-protect "$MOUNT_DIR $MOUNT_JAIL nullfs rw 0 0"
###################
# Change these to point to the config files (see README.md)
iocage fstab -a spectrum-protect '/mnt/system/tsm-config/adsm /compat/linux/etc/adsm nullfs rw 0 0'
iocage fstab -a spectrum-protect '/mnt/system/tsm-config/tsm /compat/linux/etc/tsm nullfs rw 0 0'
###################
iocage restart spectrum-protect