Skip to content
Snippets Groups Projects
Unverified Commit 8e4b7c99 authored by anarcat's avatar anarcat
Browse files

move tmpfs instructions to hetzner-robot

tmpfs and swap are correctly setup on ganeti and hetzner cloud, so we
don't need them in the common trunk.
parent 49aeceeb
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,16 @@ which we'll use below.
setup-storage -f "disk_config/gnt-fsn" -X
TODO: include the `tmpfs` in the above config.
TODO: include the `tmpfs` in the above config. For now, try:
grep -q tmpfs /etc/fstab || echo 'tmpfs /tmp tmpfs defaults 0 0' >> /etc/fstab
! grep -q swap /etc/fstab && \
dd if=/dev/zero bs=1024k count=1024 of=/swapfile && \
chmod 0 /swapfile && \
mkswap /swapfile && \
echo '/swapfile none swap sw 0 0' >> /etc/fstab && \
swapon -a
TODO: convert the other existing `tor-install-format-disks-4HDDs`
script into a `setup-storage` configuration.
......
......@@ -70,17 +70,6 @@ All commands to be run as root unless otherwise noted.
3. set new root password, and document it
4. swap and tmp
grep -q tmpfs /etc/fstab || echo 'tmpfs /tmp tmpfs defaults 0 0' >> /etc/fstab
! grep -q swap /etc/fstab && \
dd if=/dev/zero bs=1024k count=1024 of=/swapfile && \
chmod 0 /swapfile && \
mkswap /swapfile && \
echo '/swapfile none swap sw 0 0' >> /etc/fstab && \
swapon -a
5. add to ldap on `alberti` using:
ldapvi -ZZ --encoding=ASCII --ldap-conf -h db.torproject.org -D "uid=$USER,ou=users,dc=torproject,dc=org"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment