<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>21913</bug_id>
          
          <creation_ts>2009-10-11 22:44:37 +0400</creation_ts>
          <short_desc>код возврата /sbin/installkernel</short_desc>
          <delta_ts>2009-10-12 11:58:31 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>bootloader-utils</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>21914</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Artem Zolochevskiy">azol</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>at</cc>
    
    <cc>boyarsh</cc>
    
    <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>sem</cc>
    
    <cc>slazav</cc>
    
    <cc>vitty</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>101267</commentid>
    <comment_count>0</comment_count>
    <who name="Artem Zolochevskiy">azol</who>
    <bug_when>2009-10-11 22:44:37 +0400</bug_when>
    <thetext>bootloader-utils-0.4.2-alt1

скрипт /sbin/installkernel возвращает 0 даже при вот таком
$ /sbin/installkernel `uname -r`
/sbin/installkernel: line 75: cd: /boot: Отказано в доступе
mkinitrd: Directory &quot;/lib/modules/2.6.30-std-def-alt12&quot; doesn&apos;t exist
or not accessible.
/sbin/installkernel: line 96: cd: переменная OLDPWD не установлена
cp: невозможно открыть `/etc/lilo.conf&apos; для чтения: Отказано в доступе
Cannot open /etc/lilo.conf
sed: невозможно прочитать /etc/lilo.conf: Отказано в доступе
$ echo $?
0

наверное, если при работе скрипта возникли сложности, то exit status у скрипта должен быть ненулевой.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101294</commentid>
    <comment_count>1</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2009-10-12 11:58:31 +0400</bug_when>
    <thetext>Дуп

*** This bug has been marked as a duplicate of bug 21914 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>