<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>186654</bug_id>
          
          <creation_ts>2007-07-26 07:51 0000</creation_ts>
          <short_desc>[PATCH genkernel 4/4] Cleanup of bogus error output</short_desc>
          <delta_ts>2009-12-01 16:42:06 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Hosted Projects</product>
          <component>genkernel</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>186653</dependson>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>robbat2@gentoo.org</reporter>
          <assigned_to>genkernel@gentoo.org</assigned_to>
          <cc>octavsly@gmail.com</cc>
    
    <cc>zeekec@mad.scientist.com</cc>

      

      
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2007-07-26 07:51:05 0000</bug_when>
            <thetext>Clean up a bogus and cosmetic error introduced by the symlink patch:
${GK_SHARE}/gen_funcs.sh: line 431: popd: /var/tmp/genkernel/3996.6301.23048.13838/initramfs-modules-${KV}-temp: No such file or directory</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2007-07-26 07:51:27 0000</bug_when>
            <thetext>Created an attachment (id=126050)
0004-Cleanup-of-bogus-error-output.patch

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>agaffney@gentoo.org</who>
            <bug_when>2007-07-26 16:16:19 0000</bug_when>
            <thetext>This patch doesn&apos;t even make sense to me. How does changing to that directory before trying to remove it with the full path help anything?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2007-07-26 17:37:42 0000</bug_when>
            <thetext>Existing code in gen_initramfs.sh:

append_modules() first:
First the existing code takes us into a directory
  cd &quot;${TEMP}/initramfs-modules-${KV}-temp/&quot;
Then it makes the cpio
  find . | cpio ${CPIO_ARGS} --append -F &quot;${CPIO}&quot;
Now the directory gets removed
  rm -r &quot;${TEMP}/initramfs-modules-${KV}-temp/&quot;
At this point you are in the directory that was just removed.
popd will give you an error unless you go to somewhere that does exist.

You are in the non-existent directory, you run pushd /boot, and then run popd afterwards, and it spews the error.

Thus error is triggered via copy_image_with_preserve (gen_funcs.sh):
  pushd ${BOOTDIR} &gt;/dev/null
  ...
  popd &gt;/dev/null
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>agaffney@gentoo.org</who>
            <bug_when>2007-07-26 18:09:44 0000</bug_when>
            <thetext>Ah, I see. I misunderstood where the error was coming from. I assumed it was when the directory was removed. That&apos;s what I get for assuming :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2007-07-27 06:41:16 0000</bug_when>
            <thetext>inSVN.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2007-07-27 16:23:06 0000</bug_when>
            <thetext>convert to open with keyword=InSVN</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2007-08-22 19:54:15 0000</bug_when>
            <thetext>Please test genkernel 3.4.9_prer1 or better.  This should be fixed now.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zeekec@mad.scientist.com</who>
            <bug_when>2008-04-23 15:33:02 0000</bug_when>
            <thetext>I&apos;m still seeing this in sys-kernel/genkernel-3.4.10_pre9.

* Gentoo Linux Genkernel; Version 3.4.10_pre9
* Running with options: --splash=livecd-2007.0 --disklabel --install --kernel-config=/usr/src/linux-2.6.25-gentoo/.config --bootloader=grub --symlink all

* Linux Kernel 2.6.25-gentoo-r1 for x86...
* kernel: &gt;&gt; Running mrproper...
* config: Using config from /usr/src/linux-2.6.25-gentoo/.config
*         Previous config backed up to .config.bak
*         &gt;&gt; Running oldconfig...
* kernel: &gt;&gt; Cleaning...
*         &gt;&gt; Compiling 2.6.25-gentoo-r1 bzImage...
*         &gt;&gt; Compiling 2.6.25-gentoo-r1 modules...
* Copying config for successful build to /etc/kernels/kernel-config-x86-2.6.25-gentoo-r1
* busybox: &gt;&gt; Applying patches...
* busybox: &gt;&gt; Configuring...
* busybox: &gt;&gt; Removing stale cache...
* busybox: &gt;&gt; Compiling...
* busybox: &gt;&gt; Copying to cache...
* initramfs: &gt;&gt; Initializing...
*         &gt;&gt; Appending base_layout cpio data...
*         &gt;&gt; Appending auxilary cpio data...
*         &gt;&gt; Appending busybox cpio data...
*         &gt;&gt; Appending modules cpio data...
*         &gt;&gt; Appending blkid cpio data...
*         &gt;&gt; Appending splash cpio data...
*   &gt;&gt; Installing splash [ using the livecd-2007.0 theme ]...
/usr/share/genkernel/gen_funcs.sh: line 427: popd: /var/tmp/genkernel/32180.16855.26784.5739/initramfs-splash-temp: No such file or directory
*
* Adding kernel to /boot/grub/grub.conf...
*
* Kernel compiled successfully!
*
* Required Kernel Parameters:
*     real_root=/dev/$ROOT
*
*     Where $ROOT is the device node for your root partition as the
*     one specified in /etc/fstab
*
* If you require Genkernel&apos;s hardware detection features; you MUST
* tell your bootloader to use the provided INITRAMFS file. Otherwise;
* substitute the root argument for the real_root argument if you are
* not planning to use the initrd...

* WARNING... WARNING... WARNING...
* Additional kernel cmdline arguments that *may* be required to boot properly...
* add &quot;vga=791 splash=silent,theme:livecd-2007.0 console=tty1 quiet&quot; if you use a splash framebuffer ]

* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
*
* Make sure you have the latest genkernel before reporting bugs.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>octavsly@gmail.com</who>
            <bug_when>2009-12-01 16:42:06 0000</bug_when>
            <thetext>as far as I see, the &quot;harmless error&quot; is still there.

</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>126050</attachid>
            <date>2007-07-26 07:51 0000</date>
            <desc>0004-Cleanup-of-bogus-error-output.patch</desc>
            <filename>0004-Cleanup-of-bogus-error-output.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">RnJvbSA1MTliM2M2ZDhhYjQxZmEzYTFkNDA2MjU2ZDFhYmQ2MDQyMTU4Y2FjIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBSb2JpbiBILiBKb2huc29uIDxyb2JiYXQyQGdlbnRvby5vcmc+
CkRhdGU6IFdlZCwgMjUgSnVsIDIwMDcgMDA6MzU6MzQgLTA3MDAKU3ViamVjdDogW1BBVENIIGdl
bmtlcm5lbCA0LzRdIENsZWFudXAgb2YgYm9ndXMgZXJyb3Igb3V0cHV0LgoKQ2xlYW4gdXAgYSBi
b2d1cyBhbmQgY29zbWV0aWMgZXJyb3IgaW50cm9kdWNlZCBieSB0aGUgc3ltbGluayBwYXRjaDoK
JHtHS19TSEFSRX0vZ2VuX2Z1bmNzLnNoOiBsaW5lIDQzMTogcG9wZDogL3Zhci90bXAvZ2Vua2Vy
bmVsLzM5OTYuNjMwMS4yMzA0OC4xMzgzOC9pbml0cmFtZnMtbW9kdWxlcy0ke0tWfS10ZW1wOiBO
byBzdWNoIGZpbGUgb3IgZGlyZWN0b3J5Ci0tLQogQ2hhbmdlTG9nICAgICAgICB8ICAgIDYgKysr
KysrCiBnZW5faW5pdHJhbWZzLnNoIHwgICAgMSArCiAyIGZpbGVzIGNoYW5nZWQsIDcgaW5zZXJ0
aW9ucygrKSwgMCBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9DaGFuZ2VMb2cgYi9DaGFuZ2VM
b2cKaW5kZXggOTkyZDNmYi4uYj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