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
90edcbba
Commit
90edcbba
authored
4 years ago
by
Ruben Rodriguez
Browse files
Options
Downloads
Patches
Plain Diff
Improved netinstall kernel selection
parent
4b860eed
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
helpers/DATA/base-installer/amd64.sh
+31
-0
31 additions, 0 deletions
helpers/DATA/base-installer/amd64.sh
helpers/DATA/base-installer/i386.sh
+62
-0
62 additions, 0 deletions
helpers/DATA/base-installer/i386.sh
helpers/make-base-installer
+4
-2
4 additions, 2 deletions
helpers/make-base-installer
with
97 additions
and
2 deletions
helpers/DATA/base-installer/amd64.sh
0 → 100644
+
31
−
0
View file @
90edcbba
arch_get_kernel_flavour
()
{
echo
amd64
}
arch_check_usable_kernel
()
{
if
echo
"
$1
"
|
grep
-q
-e
"signed"
-e
"edge"
-e
"hwe-16.04"
;
then return
1
;
fi
if
echo
"
$1
"
|
grep
-Eq
--
"-(server|generic|virtual|xen|preempt|rt)(-.*)?$"
;
then return
0
;
fi
return
1
}
arch_get_kernel
()
{
echo
"linux-generic"
echo
"linux-image-generic"
echo
"linux-server"
echo
"linux-image-server"
echo
"linux-virtual"
echo
"linux-image-virtual"
echo
"linux-xen"
echo
"linux-image-xen"
echo
"linux-preempt"
echo
"linux-image-preempt"
echo
"linux-rt"
echo
"linux-image-rt"
}
This diff is collapsed.
Click to expand it.
helpers/DATA/base-installer/i386.sh
0 → 100644
+
62
−
0
View file @
90edcbba
arch_get_kernel_flavour
()
{
# Should we offer an amd64 kernel?
if
grep
-q
'^flags.*\blm\b'
"
$CPUINFO
"
;
then
echo
686-pae amd64 686 586
# Should we offer a PAE kernel?
elif
grep
-q
'^flags.*\bpae\b'
"
$CPUINFO
"
;
then
echo
686-pae 686 586
# Should we offer a 686 kernel?
elif
grep
-q
'^flags.*\bfpu\b.*\btsc\b.*\bcx8\b.*\bcmov\b'
"
$CPUINFO
"
;
then
echo
686 586
else
echo
586
fi
}
arch_check_usable_kernel
()
{
if
echo
"
$1
"
|
grep
-q
-e
"signed"
-e
"edge"
-e
"hwe-16.04"
;
then return
1
;
fi
local
NAME
=
"
$1
"
set
--
$2
while
[
$#
-ge
1
]
;
do
case
"
$1
:
$NAME
"
in
*
-dbg
)
return
1
;;
*
-
"
$1
"
-pae
)
# Don't allow -pae suffix, as this requires an
# extra CPU feature
;;
*
:
*
-
"
$1
"
|
*
:
*
-
"
$1
"
-
*
)
# Allow any other hyphenated suffix
return
0
;;
686-
*
:
*
-generic
|
686-
*
:
*
-generic-
*
)
return
0
;;
686-
*
:
*
-virtual
|
686-
*
:
*
-virtual-
*
)
return
0
;;
esac
shift
done
return
1
}
arch_get_kernel
()
{
imgbase
=
"linux-image"
set
--
$1
while
[
$#
-ge
1
]
;
do
case
$1
in
686-
*
)
echo
"linux-generic"
echo
"linux-image-generic"
echo
"linux-virtual"
echo
"linux-image-virtual"
break
;;
esac
shift
done
}
This diff is collapsed.
Click to expand it.
helpers/make-base-installer
+
4
−
2
View file @
90edcbba
#!/bin/sh
#
# Copyright (C) 2009-20
1
0 Rubén Rodríguez <ruben@gnu.org>
# Copyright (C) 2009-20
2
0 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
...
...
@@ -17,11 +17,13 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
VERSION
=
1
VERSION
=
2
NETINST
=
true
.
./config
cp
$DATA
/
*
kernel/
sed
s/KERNEL_PRIO
=
medium/KERNEL_PRIO
=
high/g library.sh
-i
sed
's/main,restricted/main/; s/ubuntu/trisquel/'
-i
library.sh ./debian/bootstrap-base.postinst
...
...
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