From 136ebc642e9c637fa87222fb5294d5a20221c10d Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 3 Oct 2024 00:25:13 +0200
Subject: [PATCH] Add basic bookworm seedbox setup.

---
 bookworm/apt-mark/seedbox                    |  5 +++++
 bookworm/setup_scripts/purge_nonrequireds.sh |  4 ----
 bookworm/setup_scripts/setup_seedbox.sh      | 10 ++++++++++
 3 files changed, 15 insertions(+), 4 deletions(-)
 create mode 100644 bookworm/apt-mark/seedbox
 create mode 100644 bookworm/setup_scripts/setup_seedbox.sh

diff --git a/bookworm/apt-mark/seedbox b/bookworm/apt-mark/seedbox
new file mode 100644
index 0000000..7129acf
--- /dev/null
+++ b/bookworm/apt-mark/seedbox
@@ -0,0 +1,5 @@
+# needed for torrenting
+rtorrent
+# needed for torrenting session
+screen
+
diff --git a/bookworm/setup_scripts/purge_nonrequireds.sh b/bookworm/setup_scripts/purge_nonrequireds.sh
index 48065fc..95f2897 100755
--- a/bookworm/setup_scripts/purge_nonrequireds.sh
+++ b/bookworm/setup_scripts/purge_nonrequireds.sh
@@ -24,7 +24,3 @@ comm -3 /tmp/list_all_packages /tmp/list_white > /tmp/list_black
 apt-mark auto `cat /tmp/list_black`
 DEBIAN_FRONTEND=noninteractive apt-get -y --purge autoremove
 rm /tmp/list_all_packages /tmp/list_white_unsorted /tmp/list_white /tmp/list_black
-
-# Somehow, auto-mounts get undone by all of this, so re-mount /etc/fstab.
-# TODO: Find out why.
-mount -a
diff --git a/bookworm/setup_scripts/setup_seedbox.sh b/bookworm/setup_scripts/setup_seedbox.sh
new file mode 100644
index 0000000..b5f9236
--- /dev/null
+++ b/bookworm/setup_scripts/setup_seedbox.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+. ./misc.sh
+. ../../misc.sh
+
+expect_setup_finished_file setup_server_has_been_run setup_server.sh
+
+cd "${setup_scripts_dir}"
+# ./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" seedbox
+./install_for_target.sh seedbox
-- 
2.30.2