Gentoo Archives: gentoo-dev

From: Doug Weimer <dweimer@××××××××.com>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Genkernel hacking
Date: Thu, 09 Oct 2003 21:27:55
Message-Id: 1065735285.1782.9.camel@bling.tainted.mine.nu
In Reply to: Re: [gentoo-dev] Genkernel hacking by "Robin H. Johnson"
1 On Thu, 2003-10-09 at 07:17, Robin H. Johnson wrote:
2
3 > The bootsplash image is added to ${TEMP}/initrd with
4 > 'cat ${BOOT_SPLASH_INITRD} >> ${TEMP}/initrd'
5 >
6 > However, at that point, ${TEMP}/initrd doesn't exist anymore, because of
7 > 'gzip -f -9 ${TEMP}/initrd' that runs shortly before it, and the code
8 > after adding bootsplash only references ${TEMP}/initrd.gz and not
9 > ${TEMP}/initrd ever again.
10
11 It appears that the initrd image with the bootsplash isn't gzip'd at
12 all. Unless I'm miss reading the code, gzip is only ran if the
13 bootsplash isn't used:
14 (from genkernel-1.8)
15 if [ $BOOTSPLASH = "yes" ]
16 then
17 ebegin "Adding Bootsplash Initrd"
18 cat ${BOOT_SPLASH_INITRD} >> ${TEMP}/initrd || die
19 cp -f ${TEMP}/initrd /boot/initrd-${KV}
20 eend
21 else
22 gzip -f -9 ${TEMP}/initrd
23 mv -f ${TEMP}/initrd.gz /boot/initrd-${KV}
24 eend
25 fi
26
27 Notice the else before 'gzip ...', either way the result ends up in
28 initrd-${KV} which is used in buildpkg().
29
30 Doug
31
32
33 --
34 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Genkernel hacking Bob Johnson <livewire_@×××××××××.net>