package-helpers-cmxsl/helpers/make-base-installer
2025-09-01 04:41:42 -06:00

97 lines
2.7 KiB
Bash

#!/bin/sh
#
# Copyright (C) 2025 Luis Guzmán <ark@switnet.org>
# Copyright (C) 2009-2020 Rubén Rodríguez <ruben@gnu.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
VERSION=1
EXTERNAL='deb-src http://ftp.debian.org/debian trixie main'
REPOKEY=78DBA3BC47EF2265
NETINST=true
. ./config
cp $DATA/archs/* kernel/
apply_patch_changes
sed -i "s|@REVISION@|$REVISION|" kernel/amd64.sh
#sed 's/main,restricted/main/; s/ubuntu/trisquel/' -i library.sh ./debian/bootstrap-base.postinst
sed 's/archive.gpg/trisquel-archive-keyring.gpg/' -i ./debian/bootstrap-base.postinst
sed 's/debian-archive-keyring/trisquel-archive-keyring/' -i ./debian/control
cat << EOF > kernel/tests/amd64/cittagazze.test
cpuinfo cittagazze.cpuinfo
majors 2.6
flavour amd64
kernel-2.6 \
linux-generic \
linux-image-generic \
linux-generic-hwe-$REVISION \
linux-image-generic-hwe-$REVISION \
linux-lowlatency \
linux-image-lowlatency \
linux-lowlatency-hwe-$REVISION \
linux-image-lowlatency-hwe-$REVISION \
linux-oem-$REVISION \
linux-image-oem-$REVISION \
linux-virtual \
linux-image-virtual \
linux-image-extra-virtual \
linux-virtual-hwe-$REVISION \
linux-image-virtual-hwe-$REVISION \
linux-image-extra-virtual-hwe-$REVISION
usable \
linux-generic \
linux-server \
linux-image-generic \
linux-image-server \
linux-image-2.6.20-15-generic \
linux-image-2.6.20-15-server
EOF
cat << EOF > kernel/tests/i386/cittagazze.test
cpuinfo cittagazze.cpuinfo
majors 2.6
flavour 686-pae 686 586
kernel-2.6 \
linux-generic \
linux-image-generic \
linux-virtual \
linux-image-virtual
usable \
linux-generic \
linux-image-generic \
linux-image-586 \
linux-image-686 \
linux-image-686-pae \
linux-image-3.16-4-586 \
linux-image-2.6.25-1-686 \
linux-image-2.6.36-1-generic \
linux-image-2.6.38-1-686-pae
unusable \
linux-image-amd64 \
linux-image-2.6.25-1-amd64 \
linux-image-686-pae-dbg \
linux-image-3.16-4-686-pae-dbg
env KERNEL_FLAVOUR generic
EOF
# Disable i386
sed -i "/ARCHES =/s|i386 ||" kernel/Makefile
changelog "Rebranded and adapted for Trisquel"
package