From a2286f0d6898c66e8b35bcec3ce9c52ebcfe3f10 Mon Sep 17 00:00:00 2001
From: bill-auger <mr.j.spam.me@gmail.com>
Date: Thu, 14 Sep 2023 23:42:24 -0400
Subject: [PATCH] debian-installer: replace references to the OS as 'Linux'
 with 'GNU/Linux'

---
 helpers/make-debian-installer | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/helpers/make-debian-installer b/helpers/make-debian-installer
index 7104c2b0..aeb936e8 100644
--- a/helpers/make-debian-installer
+++ b/helpers/make-debian-installer
@@ -153,6 +153,29 @@ sed 's|EFI/debian|EFI/trisquel|' -i ./build/config/arm.cfg ./build/config/x86.cf
 #Fix u-boot naming debian>ubuntu
 sed -i 's|.imx|-dtb.imx|g' build/boot/arm/u-boot-image-config
 
+# replace references to the OS as 'Linux' with 'GNU/Linux'
+match_rxs=( # ASSERT: aligns with '$replace_rxs'
+  'Linux distribution'
+  'Linux environment'
+  'Unix/Linux system'
+  'Linux system'
+  'Linux or &debian'
+  'DOS, Linux, Macintosh'
+)
+replace_rxs=( # ASSERT: aligns with '$match_rxs'
+  'GNU/Linux distribution'
+  'GNU/Linux environment'
+  'Unix or GNU/Linux system'
+  'GNU/Linux system'
+  'GNU/Linux or \&debian'
+  'DOS, GNU/Linux, Macintosh'
+)
+for (( rx_n = 0 ; rx_n < ${#match_rxs[@]} ; ++rx_n ))
+do  /bin/sed -i "s|${match_rxs[$rx_n]}|${replace_rxs[$rx_n]}|g ; s|GNU/GNU/|GNU/|g" \
+    $(grep -rlI "${match_rxs[$rx_n]}" build/ doc/)
+done
+
+
 # Re apply upstream behavior and configuration features from last release (focal).
 # https://git.launchpad.net/ubuntu/+source/debian-installer/log/?h=ubuntu/focal
 ## - Makebuild set of patches
-- 
GitLab