Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
package-helpers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eliab Andi Artz
package-helpers
Commits
f9f951f3
Commit
f9f951f3
authored
11 years ago
by
Ruben Rodriguez
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
helpers/make-ubiquity
+11
-8
11 additions, 8 deletions
helpers/make-ubiquity
with
11 additions
and
8 deletions
helpers/make-ubiquity
+
11
−
8
View file @
f9f951f3
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment