Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
bbfaf2e8
Unverified
Commit
bbfaf2e8
authored
5 years ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
note more steps that can be removed
parent
db25ae3a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tsa/howto/new-machine-hetzner-robot.mdwn
+21
-1
21 additions, 1 deletion
tsa/howto/new-machine-hetzner-robot.mdwn
with
21 additions
and
1 deletion
tsa/howto/new-machine-hetzner-robot.mdwn
+
21
−
1
View file @
bbfaf2e8
...
...
@@ -60,6 +60,8 @@ which we'll use below.
echo -n 'New hostname: ' && read hn && hostname "$hn" && exec bash
TODO: merge this with wrapper script below.
3. Partition disks. This might vary wildly between hosts, but in
general, we want:
...
...
@@ -88,6 +90,8 @@ which we'll use below.
setup-storage -f "disk-config/gnt-fsn" -X
TODO: merge this with wrapper script below.
TODO: convert the other existing `tor-install-format-disks-4HDDs`
script into a `setup-storage` configuration.
...
...
@@ -99,6 +103,11 @@ which we'll use below.
mkdir /target/boot &&
mount "$BOOT_DEVICE" /target/boot
TODO: test if we can skip that test by passing `$ROOT_PARTITION`
as a `--target` to `grml-debootstrap`. Probably not, but in any
case, this could be all wrapper up in a single wrapper shell
script in tsa-misc instead of this long copy-paste.
4. Install the system. This can be done with `grml-debootstrap` which
will also configure grub, a root password and so on. This should
get you started, assuming the formatted root disk is mounted on
...
...
@@ -140,7 +149,10 @@ which we'll use below.
cat /target/etc/crypttab
If the backing device is *NOT* an SSD, remove the `,discard` option.
If the backing device is *NOT* an SSD, remove the `,discard`
option.
TODO: remove this step, it is probably unnecessary.
7. Review the network configuration, since it will end up in the
installed instance:
...
...
@@ -167,6 +179,8 @@ which we'll use below.
TODO: fix this in a post-install debootstrap hook, or in
grml-debootstrap already, see also [upstream issue 105](https://github.com/grml/grml-debootstrap/issues/105) and
[issue 136](https://github.com/grml/grml-debootstrap/issues/136).
TODO: remove this step. It worked fine on last install.
8. If any of those latter things changed, you need to regenerate the
initramfs:
...
...
@@ -174,6 +188,8 @@ which we'll use below.
chroot /target update-initramfs -u
chroot /target update-grub
TODO: remove this step, if the above extra steps are removed.
9. umount things:
umount /target/run/udev || true &&
...
...
@@ -183,6 +199,8 @@ which we'll use below.
umount /target/boot &&
cd / && umount /target
TODO: merge this with wrapper script.
10. close things
vgchange -a n
...
...
@@ -190,6 +208,8 @@ which we'll use below.
cryptsetup luksClose crypt_dev_md2
mdadm --stop /dev/md*
TODO: merge this with wrapper script.
11. Document the LUKS passphrase and root password in `tor-passwords`
12. Cross fingers and reboot:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment