Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #85705 > unrolled thread

Bug#825423: supermin + sbuild + linux-image = broken chroot

Started bySalvatore Bonaccorso <carnil@debian.org>
First post2025-02-20 11:30 +0100
Last post2025-02-20 23:30 +0100
Articles 4 — 4 participants

Back to article view | Back to linux.debian.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Bug#825423: supermin + sbuild + linux-image = broken chroot Salvatore Bonaccorso <carnil@debian.org> - 2025-02-20 11:30 +0100
    Bug#825423: supermin + sbuild + linux-image = broken chroot Santiago Vila <sanvila@debian.org> - 2025-02-20 12:10 +0100
      Processed: Re: Bug#825423: supermin + sbuild + linux-image =  broken chroot "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-02-20 12:10 +0100
      Bug#825423: supermin + sbuild + linux-image = broken chroot Ben Hutchings <ben@decadent.org.uk> - 2025-02-20 23:30 +0100

#85705 — Bug#825423: supermin + sbuild + linux-image = broken chroot

FromSalvatore Bonaccorso <carnil@debian.org>
Date2025-02-20 11:30 +0100
SubjectBug#825423: supermin + sbuild + linux-image = broken chroot
Message-ID<KibYB-AtA-5@gated-at.bofh.it>
Hi,

On Sat, Jun 04, 2016 at 06:12:40PM +0100, Ben Hutchings wrote:
> On Sat, 2016-06-04 at 17:59 +0200, Santiago Vila wrote:
> > On Sat, Jun 04, 2016 at 04:33:58PM +0100, Ben Hutchings wrote:
> > > > You can use the command ischroot from the debianutils package.
> > > 
> > > Why would I want to add a dependency on that? [...]
> > 
> > You really wouldn't, because debianutils is essential.
> 
> Oh duh, thanks for pointing that out.

is this bug still present or can we close this old bug?

Regards,
Salvatore

[toc] | [next] | [standalone]


#85707

FromSantiago Vila <sanvila@debian.org>
Date2025-02-20 12:10 +0100
Message-ID<KicBj-AWD-1@gated-at.bofh.it>
In reply to#85705
reassign 825423 linux-base
found 825423 4.2
close 825423 4.3
thanks

El 20/2/25 a las 11:19, Salvatore Bonaccorso escribió:
> Hi,
> 
> On Sat, Jun 04, 2016 at 06:12:40PM +0100, Ben Hutchings wrote:
>> On Sat, 2016-06-04 at 17:59 +0200, Santiago Vila wrote:
>>> On Sat, Jun 04, 2016 at 04:33:58PM +0100, Ben Hutchings wrote:
>>>>> You can use the command ischroot from the debianutils package.
>>>>
>>>> Why would I want to add a dependency on that? [...]
>>>
>>> You really wouldn't, because debianutils is essential.
>>
>> Oh duh, thanks for pointing that out.
> 
> is this bug still present or can we close this old bug?

Seems fixed. I just tried this:

sbuild -d bookworm supermin

on a stable system still running 6.1.0-29
(upgraded to -31, but not rebooted yet).

The build process installed linux-image-6.1.0-29-amd64,
the package was built, and sbuild was able to remove
the kernel even if it had the same version as the
running kernel:

[...]
Removing linux-image-amd64 (6.1.123-1) ...
Removing linux-image-6.1.0-29-amd64 (6.1.123-1) ...
W: Last kernel image has been removed, so removing the default symlinks
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.1.0-29-amd64
Removing initramfs-tools (0.142+deb12u1) ...
Removing initramfs-tools-core (0.142+deb12u1) ...


Apparently linux-check-removal is smarter now:

---------
If the currently running kernel matches VERSION, linux-check-removal
will normally prompt the user to confirm this potentially dangerous
action and will fail if the user chooses to abort.  However, if the
current environment is in a chroot or container, or if debconf
prompts are disabled, it will always succeed without prompting.
---------

I traced that to commit [4a695de] in linux-base, dated 2016-06-06
(which is just two days later than the last message from Ben
in this thread).

     Add linux-check-removal command for use by package prerm scripts
     
     Use the existing logic (roughly) and exactly the same debconf template
     and translations that are currently included in src:linux.

Therefore, I think this was fixed in linux-base 4.3.
Closing myself.

Thanks a lot!

[toc] | [prev] | [next] | [standalone]


#85708 — Processed: Re: Bug#825423: supermin + sbuild + linux-image = broken chroot

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2025-02-20 12:10 +0100
SubjectProcessed: Re: Bug#825423: supermin + sbuild + linux-image = broken chroot
Message-ID<KicBj-AWD-5@gated-at.bofh.it>
In reply to#85707
Processing commands for control@bugs.debian.org:

> reassign 825423 linux-base
Bug #825423 [src:linux] supermin + sbuild + linux-image = broken chroot
Bug reassigned from package 'src:linux' to 'linux-base'.
Ignoring request to alter found versions of bug #825423 to the same values previously set
Ignoring request to alter fixed versions of bug #825423 to the same values previously set
> found 825423 4.2
Bug #825423 [linux-base] supermin + sbuild + linux-image = broken chroot
Marked as found in versions linux-base/4.2.
> close 825423 4.3
Bug #825423 [linux-base] supermin + sbuild + linux-image = broken chroot
Marked as fixed in versions linux-base/4.3.
Bug #825423 [linux-base] supermin + sbuild + linux-image = broken chroot
Marked Bug as done
> thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
825423: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=825423
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [next] | [standalone]


#86001

FromBen Hutchings <ben@decadent.org.uk>
Date2025-02-20 23:30 +0100
Message-ID<Kindn-HKu-5@gated-at.bofh.it>
In reply to#85707

[Multipart message — attachments visible in raw view] — view raw

Control: reassign -1 src:linux
Control: found -1 4.5.4-1
Control: close -1 4.6-1~exp2

On Thu, 2025-02-20 at 12:01 +0100, Santiago Vila wrote:
> reassign 825423 linux-base
> found 825423 4.2
> close 825423 4.3
> thanks

This was actually fixed even longer ago, before the logic was moved to
linux-base.  The src:linux changelog(.old) has a Closes: reference to
this bug but it looks like this got lost on its way to the BTS.

Ben.

-- 
Ben Hutchings
I'm not a reverse psychological virus.
Please don't copy me into your signature.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web