Bug#751012: [flash-kernel] Flash-kernel should fail with exit 0 under debrootstrap
On Mon, Jun 9, 2014 at 5:21 PM, Karsten Merker <merker@debian.org> wrote:
> On Mon, Jun 09, 2014 at 03:48:11PM +0000, bastien ROUCARIES wrote:
>
>> Package: flash-kernel
>> Severity: important
>>
>> Flash-kernel should detect it run under debrootstrap and fail gracefully/
>>
>> Install message:
>>
>> Processing triggers for libc-bin (2.18-7) ...
>> Processing triggers for initramfs-tools (0.115) ...
>> update-initramfs: Generating /boot/initrd.img-3.14-1-kirkwood
>> /bin/df: Warning: cannot read table of mounted file systems: No such file or directory
>> warning: failed to read mtab
>> ^Cdpkg: error processing package initramfs-tools (--configure):
>> subprocess installed post-installation script was interrupted
>> Errors were encountered while processing:
>> initramfs-tools
>> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> Hello,
>
> I am trying to understand which problem exactly you have
> encountered, but I am a bit confused: you have filed a bug
> against flash-kernel but in the log you have provided, it is not
> flash-kernel that shows an error message, but initramfs-tools. I
> also cannot see in which context that has happened and how it
> relates to debootstrap - by default debootstrap does neither
> install a kernel image nor flash-kernel. From your log, it looks
> like you have manually interrupted the update-initramfs process,
> resulting in the error message above:
No I have not interupted.
I have installed te kirkwood kernel and flash-kernel on my chroot.
The problem is that flash-kernel is run by initramfs/post-update.d/flash-kernel
I have added an exit 0 at the beginning of this file and everything is ok
The best think is to exit 0 if we are under a debootstrap.
Bastien
>> ^Cdpkg: error processing package initramfs-tools (--configure):
> ^^
>
> Please explain in more detail what exactly is the bug in
> flash-kernel that you would like to submit.
>
> Regards,
> Karsten
> --
> Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung
> sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der
> Werbung sowie der Markt- oder Meinungsforschung.
Reply to: