apt-setup: move base release to trixie for d-i/udeb build.

This commit is contained in:
Ark74 2025-04-18 00:58:02 -06:00
parent 1a3c5b0813
commit 9aa0a91c07
2 changed files with 54 additions and 13 deletions

View file

@ -0,0 +1,50 @@
diff --git a/debian/apt-mirror-setup.templates b/debian/apt-mirror-setup.templates
index 85baf176..6b330b32 100644
--- a/debian/apt-mirror-setup.templates
+++ b/debian/apt-mirror-setup.templates
@@ -3,45 +3,7 @@ Type: text
# :sl1:
_Description: Scanning the mirror...
-Template: apt-setup/non-free-firmware
-Type: boolean
-Default: false
-# :sl5:
-_Description: Use non-free firmware?
- Firmware is a kind of software providing low-level control of certain
- hardware components (such as Wi-Fi cards or audio chipsets), which may not
- function fully or at all without it.
- .
- Although not at all part of Debian, some non-free firmware has been made to
- work with Debian. This firmware has varying licenses which restrict your
- freedoms to use, modify, or share the software, and generally does not have
- source forms that you may study.
- .
- Please choose whether you want to have it available anyway.
-Template: apt-setup/non-free
-Type: boolean
-Default: false
-# :sl1:
-_Description: Use non-free software?
- Some non-free software has been made to work with Debian. Though this
- software is not at all a part of Debian, standard Debian tools can be used
- to install it. This software has varying licenses which may prevent you
- from using, modifying, or sharing it.
- .
- Please choose whether you want to have it available anyway.
-
-Template: apt-setup/contrib
-Type: boolean
-Default: false
-# :sl1:
-_Description: Use contrib software?
- Some additional software has been made to work with Debian. Though this
- software is free, it depends on non-free software for its operation. This
- software is not a part of Debian, but standard Debian tools can be
- used to install it.
- .
- Please choose whether you want this software to be made available to you.
Template: apt-setup/mirror/error
Type: select

View file

@ -19,7 +19,7 @@
#
VERSION=3
EXTERNAL='deb-src http://ftp.debian.org/debian bullseye main'
EXTERNAL='deb-src http://ftp.debian.org/debian trixie main'
REPOKEY=0E98404D386FA1D9
NETINST=true
. ./config
@ -33,19 +33,10 @@ EOF
rm debian/apt-mirror-setup.templates-ubuntu
# Remove multiarch support
sed '/chroot/,$d' generators/01setup -i
#sed '/chroot/,$d' generators/01setup -i
# getline "seed" file
getline(){
grep -n "$1" "$2" |cut -d: -f1
}
START=$(getline apt-setup/non-free debian/apt-mirror-setup.templates)
END=$(getline "Please choose whether you want to have it available anyway." debian/apt-mirror-setup.templates)
sed ${START},${END}d debian/apt-mirror-setup.templates -i
START=$(getline apt-setup/contrib debian/apt-mirror-setup.templates)
END=$(getline "Please choose whether you want this software to be made available to you." debian/apt-mirror-setup.templates)
sed ${START},${END}d debian/apt-mirror-setup.templates -i
# use patch to remove non-free-firmware, non-free, contrib
apply_patch_changes
#Ubuntu legacy (udeb)
/bin/sed '/canonical/d;