Skip to content
Snippets Groups Projects
Commit f9f951f3 authored by Ruben Rodriguez's avatar Ruben Rodriguez
Browse files

Modified ubiquity to use cdrom repositories, making uefi installation work

parent 3383ac6b
No related branches found
No related tags found
No related merge requests found
...@@ -17,10 +17,13 @@ ...@@ -17,10 +17,13 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# #
VERSION=8 VERSION=11
. ./config . ./config
replace shim-signed shim .
replace grub-efi-amd64-signed grub-efi-amd64 .
cp $DATA/trisquel_installed.png pixmaps cp $DATA/trisquel_installed.png pixmaps
rm pixmaps/ubuntu_installed.png rm pixmaps/ubuntu_installed.png
replace ubuntu_installed trisquel_installed . replace ubuntu_installed trisquel_installed .
...@@ -36,7 +39,7 @@ sed 's:\(targetdb)\):\1\n os.system("sudo chmod 644 /target/var/cache/deb ...@@ -36,7 +39,7 @@ sed 's:\(targetdb)\):\1\n os.system("sudo chmod 644 /target/var/cache/deb
# Fix https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1080701 # Fix https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1080701
sed '/from ubiquity import osextras/s/$/\nos.system("sudo swapoff -a")/' bin/ubiquity-wrapper -i sed '/from ubiquity import osextras/s/$/\nos.system("sudo swapoff -a")/' bin/ubiquity-wrapper -i
for i in $(ls -1 d-i/source/apt-setup/generators |grep -v 01setup) canonical.com security.ubuntu.com extras.ubuntu.com for i in $(ls -1 d-i/source/apt-setup/generators |grep -v 01setup |grep -v cdrom) canonical.com security.ubuntu.com extras.ubuntu.com
do do
/bin/sed /$i/d -i debian/ubiquity.install-any d-i/source/apt-setup/debian/*.install /bin/sed /$i/d -i debian/ubiquity.install-any d-i/source/apt-setup/debian/*.install
done done
...@@ -46,7 +49,7 @@ echo "d-i/source/apt-setup/generators/99trisquel usr/lib/ubiquity/apt-setup/gene ...@@ -46,7 +49,7 @@ echo "d-i/source/apt-setup/generators/99trisquel usr/lib/ubiquity/apt-setup/gene
cp $DATA/trisquel.png desktop/ubiquity.png cp $DATA/trisquel.png desktop/ubiquity.png
# remove Ubuntu apt setup for the installer # remove Ubuntu apt setup for the installer
find d-i/source/apt-setup/generators -type f | grep -v 01setup | xargs -r rm find d-i/source/apt-setup/generators -type f | grep -v 01setup | grep -v cdrom | xargs -r rm
cat << EOF1 > d-i/source/apt-setup/generators/99trisquel cat << EOF1 > d-i/source/apt-setup/generators/99trisquel
#!/bin/sh #!/bin/sh
set -e set -e
...@@ -74,7 +77,7 @@ done ...@@ -74,7 +77,7 @@ done
MIRROR=\$FASTEST MIRROR=\$FASTEST
RELEASE=\$(lsb_release -c | cut -f 2) RELEASE=\$(lsb_release -c | cut -f 2)
cat << EOF > \$file cat << EOF >> \$file
# Trisquel repositories for supported software and updates # Trisquel repositories for supported software and updates
deb \$MIRROR \$RELEASE main deb \$MIRROR \$RELEASE main
deb-src \$MIRROR \$RELEASE main deb-src \$MIRROR \$RELEASE main
...@@ -122,9 +125,9 @@ done ...@@ -122,9 +125,9 @@ done
cat << EOF1 >> scripts/apt-setup cat << EOF1 >> scripts/apt-setup
#Trisquel hack to regenerate ssl keys after installation #Trisquel hack to regenerate ssl keys after installation
rm -f /target/etc/ssh/ssh_host_* #rm -f /target/etc/ssh/ssh_host_*
ssh-keygen -q -f /target/etc/ssh/ssh_host_rsa_key -N '' -t rsa #ssh-keygen -q -f /target/etc/ssh/ssh_host_rsa_key -N '' -t rsa
ssh-keygen -q -f /target/etc/ssh/ssh_host_dsa_key -N '' -t dsa #ssh-keygen -q -f /target/etc/ssh/ssh_host_dsa_key -N '' -t dsa
if [ -d /etc/italc ] if [ -d /etc/italc ]
then then
rm -rf /etc/italc/* rm -rf /etc/italc/*
...@@ -179,5 +182,5 @@ changelog "Adapted for Trisquel" ...@@ -179,5 +182,5 @@ changelog "Adapted for Trisquel"
rm -rf debian/source rm -rf debian/source
compile PARALLEL=false compile
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment