[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2024-02-12 Thread Launchpad Bug Tracker
This bug was fixed in the package kdump-tools - 1:1.6.10ubuntu2.2 --- kdump-tools (1:1.6.10ubuntu2.2) jammy; urgency=medium * Disable the initramfs generation in our kernel-postinst hook when we detect we are running in a chroot. LP: #2043059. -- dann frazier Thu, 01 Feb

[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2024-02-12 Thread Launchpad Bug Tracker
This bug was fixed in the package kdump-tools - 1:1.8.1ubuntu1.1 --- kdump-tools (1:1.8.1ubuntu1.1) mantic; urgency=medium * Disable the initramfs generation in our kernel-postinst hook when we detect we are running in a chroot. LP: #2043059. -- dann frazier Thu, 01 Feb

[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2024-02-02 Thread dann frazier
** Attachment added: "jammy: verification steps 4-6" https://bugs.launchpad.net/ubuntu/+source/linux-nvidia/+bug/2043059/+attachment/5744328/+files/jammy.log ** Tags removed: verification-needed verification-needed-jammy verification-needed-mantic ** Tags added: verification-done

[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2024-02-02 Thread dann frazier
** Attachment added: "mantic: verification steps 4-6" https://bugs.launchpad.net/ubuntu/+source/linux-nvidia/+bug/2043059/+attachment/5744327/+files/mantic.log -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux-nvidia in Ubuntu.

[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2024-02-02 Thread dann frazier
# verification steps 1-3: installation in a chroot I set up 2 chroots - one w/ the normal sources.list, the other w/ proposed enabled, and did a side by side install test. $ for chroot in mantic mantic-proposed jammy jammy-proposed; do sudo chroot $chroot apt list kdump-tools; done Listing...

[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2024-02-01 Thread Timo Aaltonen
Hello Brad, or anyone else affected, Accepted kdump-tools into mantic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/kdump- tools/1:1.8.1ubuntu1.1 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See

[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2024-02-01 Thread dann frazier
** Description changed: - Processing triggers for linux-image-5.15.0-1040-nvidia (5.15.0-1040.40) ... - /etc/kernel/postinst.d/dkms: - * dkms: running auto installation service for kernel 5.15.0-1040-nvidia -...done. - /etc/kernel/postinst.d/initramfs-tools: - update-initramfs: Generating

[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2024-02-01 Thread dann frazier
** Also affects: linux-nvidia (Ubuntu Noble) Importance: Undecided Status: Invalid ** Also affects: kdump-tools (Ubuntu Noble) Importance: Undecided Assignee: dann frazier (dannf) Status: Fix Released ** Also affects: linux-nvidia (Ubuntu Mantic) Importance: Undecided

Re: [Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2023-12-17 Thread dann frazier
On Fri, Dec 15, 2023 at 3:55 PM Sam Tannous <2043...@bugs.launchpad.net> wrote: > > You're correct. It can fail for other reasons. I don't think we could check > the errno, could we? It would be 1, "Operation not permitted". The exit code is not documented in the manpage, and it appears to

[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2023-12-15 Thread Launchpad Bug Tracker
This bug was fixed in the package kdump-tools - 1:1.8.2ubuntu1 --- kdump-tools (1:1.8.2ubuntu1) noble; urgency=medium * Merge from Debian unstable. Remaining changes: - debian/control/tests: sleep while waiting for systemd service. - Bump amd64 crashkernel from 384M-:128M

[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2023-12-15 Thread Sam Tannous
You're correct. It can fail for other reasons. I don't think we could check the errno, could we? It would be 1, "Operation not permitted". If not, I think we can live with the last suggestion. Thanks, -- You received this bug notification because you are a member of Kernel Packages, which

[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2023-12-14 Thread dann frazier
Cool, thanks for testing Sam. Apologies for the missing ${SW_IMG}. And thanks for the 'unshare -U true' suggestion. I gather your point is that 'unshare -U' will fail in any chroot environment. I'm not an expert on namespaces but, from what I can tell, that does seem to be true in all modern

[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2023-12-13 Thread Sam Tannous
Hey Dann, This seems to work ok if I make the changes in our script. Let me propose this script change to the owners I'll get back to you. Thanks, Sam -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux-nvidia in Ubuntu.

[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2023-12-13 Thread dann frazier
hey Sam, I looked into ways to try to teach the chroot detection tools how to detect a chroot in a new pid namespace (which is actually the problem, not the mount namespace), but I didn't find a good solution there. However, it occurs to me that you can simply override the answer: ln -sf

[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2023-11-30 Thread dann frazier
** Also affects: kdump-tools (Ubuntu) Importance: Undecided Status: New ** Changed in: linux-nvidia (Ubuntu) Status: New => Invalid ** Changed in: kdump-tools (Ubuntu) Status: New => Triaged ** Changed in: kdump-tools (Ubuntu) Assignee: (unassigned) => dann frazier

[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2023-11-28 Thread Sam Tannous
Thanks, Dann, This dpkg-divert won't work unless we first remove the package this "clashes" with (nvidia-crashdump had already diverted this file). Not sure if this is really much better than just removing kdump-tools (and dependencies) and then reinstalling them later. We're still looking

[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2023-11-17 Thread dann frazier
Thanks for providing that script Sam. Jamie has nailed the problem in Comment #2. A *seemingly* obvious solution is to add code to the /etc/kernel/postinst.d/kdump-tools hook that detects when it is running in a chroot, and if so, exits before trying to make an initramfs. When the real system

[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2023-11-15 Thread Sam Tannous
Hello Ian, I've uploaded the cm-chroot-sw-img script here. Please let me know if you need more info. --Sam ** Attachment added: "cm-chroot-sw-img script" https://bugs.launchpad.net/ubuntu/+source/linux-nvidia/+bug/2043059/+attachment/5719804/+files/cm-chroot-sw-img -- You received this

[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2023-11-14 Thread Sam Tannous
Hello Ian, It looks like we are mounting /dev: here is how /dev is mounted when you use the cm-chroot-sw-image command, jd-b91-s15sp4-11-07:~ # mount | grep image udev on /cm/images/default-image/dev type devtmpfs (rw,relatime,size=4096k,nr_inodes=1048576,mode=755,inode64) devpts on

[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2023-11-13 Thread Sam Tannous
Hi Ian, I have access to http://bright-dev.nvidia.com/base-distributions/x86_64/dgx-os/dgx- os-6.1-trd4/DGXOS-6.1.0-DGX-H100.tar.gz And can upload it here if you need. --Sam -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux-nvidia

[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2023-11-10 Thread Ian May
I don't appear to have access to the image file used in the reproducer. http://bright-dev.nvidia.com/base-distributions/x86_64/dgx-os/dgx-os-6.1-trd4/DGXOS-6.1.0-DGX-H100.tar.gz So instead I'm using the following image for reproducing.

[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2023-11-08 Thread Jamie Nguyen
I believe the key to the reproducer is having the kdump-tools package installed in the chroot. The kdump-tools package provides a /etc/kernel/postinst.d/kdump-tools script, which has the following snippet: (Apologies for formatting, the interface removes the leading spaces from this code) 43

[Kernel-packages] [Bug 2043059] Re: Installation errors out when installing in a chroot

2023-11-08 Thread Sam Tannous
The complete recreate steps with errors are the following: Steps to reproduce: 1. Create a directory on a BCM head node or any Linux sever, say /cm/images/dgx-h100-image 2. Download and unpack the DGX-OS base tar archive into the above directory $ wget