From c1be115a2f561f18d9772f16b45af39f382f1a9f Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Sun, 28 Jul 2024 21:28:10 +0200 Subject: [PATCH] Avoid 3 known debconf prompts during deployment. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Even if those prompts and the associated answers are already documented in “Beginner guide - How to setup a PiRogue”, it's a bit annoying to have to go through them every time a new PiRogue is set up. Let's pick the right answers (moving away from the default every time), and mark those questions as seen (i.e. asked and answered): - Save current IPv4 rules? Yes → No - Save current IPv6 rules? Yes → No - Should non-superusers be able to capture packets? No → Yes Link: https://github.com/PiRogueToolSuite/pirogue-images/issues/3 --- raspberrypi/files/avoid-debconf-prompts | 21 +++++++++++++++++++++ raspberrypi/recipes/pi3-pi4.sh | 4 ++++ raspberrypi/recipes/pi5.sh | 4 ++++ 3 files changed, 29 insertions(+) create mode 100644 raspberrypi/files/avoid-debconf-prompts diff --git a/raspberrypi/files/avoid-debconf-prompts b/raspberrypi/files/avoid-debconf-prompts new file mode 100644 index 0000000..d4afbc3 --- /dev/null +++ b/raspberrypi/files/avoid-debconf-prompts @@ -0,0 +1,21 @@ +#!/bin/sh +# +# A number of packages are going to ask questions via debconf prompts. Since we +# know which answers are the right ones, set the right values and mark those +# questions as seen, instead of having users follow documentation. +# +# See https://github.com/PiRogueToolSuite/pirogue-images/issues/3 +# +# Reminder: debconf-set-selections comes with debconf, debconf-get-selections is +# shipped in the debconf-utils package (not installed by default). +set -e + +cat <