1 |
On Fri, 1 May 2020 18:40:35 -0700 |
2 |
Matt Turner <mattst88@g.o> wrote: |
3 |
|
4 |
> Evidently the answer to "Do we need this one?" is... not at least |
5 |
> since 2006. |
6 |
> |
7 |
> Signed-off-by: Matt Turner <mattst88@g.o> |
8 |
> --- |
9 |
|
10 |
|
11 |
works for me, but slightly more formal explanation would have been |
12 |
nicer. |
13 |
|
14 |
> targets/stage4/controller.sh | 2 -- |
15 |
> targets/support/functions.sh | 32 -------------------------------- |
16 |
> 2 files changed, 34 deletions(-) |
17 |
> |
18 |
> diff --git a/targets/stage4/controller.sh |
19 |
> b/targets/stage4/controller.sh index 85db8c1b..7ca3e9bc 100755 |
20 |
> --- a/targets/stage4/controller.sh |
21 |
> +++ b/targets/stage4/controller.sh |
22 |
> @@ -30,8 +30,6 @@ case $1 in |
23 |
> delete_from_chroot /tmp/linuxrc |
24 |
> |
25 |
> extract_modules ${clst_chroot_path} ${clst_kname} |
26 |
> - # Do we need this one? |
27 |
> -# extract_kernel ${clst_chroot_path}/boot |
28 |
> ${clst_kname} ;; |
29 |
> |
30 |
> build_packages) |
31 |
> diff --git a/targets/support/functions.sh |
32 |
> b/targets/support/functions.sh index ac6710ad..dd9e6b12 100755 |
33 |
> --- a/targets/support/functions.sh |
34 |
> +++ b/targets/support/functions.sh |
35 |
> @@ -184,35 +184,3 @@ extract_modules() { |
36 |
> echo "Can't find kernel modules tarball at |
37 |
> ${kmodules}. Skipping...." fi |
38 |
> } |
39 |
> -extract_kernel() { |
40 |
> - # $1 = Destination |
41 |
> - # $2 = kname |
42 |
> - |
43 |
> - |
44 |
> kbinary="${clst_chroot_path}/tmp/kerncache/${2}-kernel-initrd-${clst_version_stamp}.tar.bz2" |
45 |
> - [ ! -e "${kbinary}" ] && die "Can't find kernel tarball at |
46 |
> ${kbinary}" |
47 |
> - mkdir -p ${1}/ |
48 |
> - tar -I lbzip2 -xf ${kbinary} -C ${1}/ |
49 |
> - # change config name from "config-*" to "gentoo", for example |
50 |
> - #mv ${1}/config-* ${1}/${2}-config |
51 |
> - rm ${1}/config-* |
52 |
> - |
53 |
> - # change kernel name from "kernel" to "gentoo", for example |
54 |
> - if [ -e ${1}/kernel-* ] |
55 |
> - then |
56 |
> - mv ${1}/kernel-* ${1}/${2} |
57 |
> - fi |
58 |
> - if [ -e ${1}/vmlinuz-* ] |
59 |
> - then |
60 |
> - mv ${1}/vmlinuz-* ${1}/${2} |
61 |
> - fi |
62 |
> - |
63 |
> - # change initrd name from "initrd" to "gentoo.igz", for |
64 |
> example |
65 |
> - if [ -e ${1}/initrd-* ] |
66 |
> - then |
67 |
> - mv ${1}/initrd-* ${1}/${2}.igz |
68 |
> - fi |
69 |
> - if [ -e ${1}/initramfs-* ] |
70 |
> - then |
71 |
> - mv ${1}/initramfs-* ${1}/${2}.igz |
72 |
> - fi |
73 |
> -} |