bug#69319: Unbootable, unfixable system

2024-02-24 Thread Nathan Dehnel
I tried that and it didn't work, I had to use --type=luks1

On Sat, Feb 24, 2024 at 8:59 PM Hilton Chain  wrote:
>
> Hi Nathan,
>
> On Sun, 25 Feb 2024 08:48:35 +0800,
> Nathan Dehnel wrote:
> >
> > On Fri, Feb 23, 2024 at 11:17 AM Nathan Dehnel  wrote:
> > >
> > > On Fri, Feb 23, 2024 at 1:15 AM Nathan Dehnel  wrote:
> > > >
> > > > This config results in grub rescue "unknown filesystem  > > > btrfs rootfs>" when I try to boot it. I have verified that all the
> > > > device uuids are correct, and the bootloader, mapped-devices, and
> > > > file-systems sections are identical in form to my other system which
> > > > boots fine. i can mount the boot partition and unlock and mount the
> > > > root partition manually, so they're not broken. I have no idea why
> > > > it's not working. My guess is that reconfigure is broken inside a
> > > > chroot somehow.
> > > >
> > > > (use-modules (gnu))
> > > > (use-service-modules networking ssh sysctl shepherd base)
> > > > (use-package-modules vpn linux)
> > > > (use-modules (nongnu packages linux)
> > > > (nongnu system linux-initrd)
> > > > (gnu services)
> > > > (guix packages)
> > > > (gooby-channel packages baksnapper))
> > > > (define bashrc
> > > >(local-file "../bashrc"))
> > > > (define nanorc
> > > >(local-file "../nano/nanorc"))
> > > > (operating-system
> > > > (kernel linux)
> > > >  (initrd microcode-initrd)
> > > >  (firmware (list linux-firmware))
> > > >  (locale "en_US.utf8")
> > > >  (timezone "America/Chicago")
> > > >  (keyboard-layout (keyboard-layout "us"))
> > > >  (host-name "guixoffline")
> > > >  (bootloader
> > > >(bootloader-configuration
> > > >  (bootloader grub-efi-bootloader)
> > > >(targets '("/boot/efi1"))
> > > >  (keyboard-layout keyboard-layout)))
> > > >  (mapped-devices
> > > >(list (mapped-device
> > > >(source
> > > >  (uuid "14930dad-016d-4b59-b7d8-d5af2c33f4b0"))
> > > >(target "offline1")
> > > >(type luks-device-mapping))
> > > > ))
> > > >  (file-systems
> > > >(cons* (file-system
> > > > (mount-point "/boot/efi1")
> > > > (device (uuid "3339-DAE2" 'fat32))
> > > > (type "vfat"))
> > > >   (file-system
> > > > (mount-point "/")
> > > > (device "/dev/mapper/offline1")
> > > > (type "btrfs")
> > > > (options "compress=zlib:9")
> > > > (dependencies mapped-devices))
> > > >   %base-file-systems))
> > > >  (users (cons* (user-account
> > > >  (name "nathan")
> > > >  (comment "Nathan Dehnel")
> > > >  (group "users")
> > > >  (home-directory "/home/nathan")
> > > >  (supplementary-groups '("wheel" "netdev" "audio" 
> > > > "video")))
> > > >%base-user-accounts))
> > > >  (packages
> > > >(append
> > > >(specification->package "btrfs-progs")
> > > >(specification->package "parted")
> > > >(specification->package "mdadm")
> > > >(specification->package "git")
> > > >(specification->package "nss-certs")
> > > >(specification->package "nix")
> > > >(specification->package "efibootmgr")
> > > >(specification->package "smartmontools")
> > > >(specification->package "iotop")
> > > >(specification->package "bcache-tools")
> > > >(specification->package "lsof")
> > > >(specification->package "wireguard-tools")
> > > >(specification->package "baksnapper")
> > > >(specification->package "file")
> > > >(specification->package "rsync"))
> > > >  %base-packages))
> > > >  (services
> > > >(append
> > > >  (list
> > > >   (service openssh-service-type
> > > > (openssh-configuration
> > > >  (permit-root-login #t)
> > > >  (password-authentication? #t)
> > > >  (authorized-keys
> > > >   `(("root" ,(local-file "ssh/root-gentoodesktop.pub"))
> > > > ("root" ,(local-file 
> > > > "ssh/baksnapper-gentoodesktop.pub"))
> > > > ("root" ,(local-file "ssh/baksnapper-gentooserver.pub"))
> > > > ("root" ,(local-file "ssh/nathan-guixlaptop.pub"))
> > > > 
> > > >(service connman-service-type)
> > > >(service ntp-service-type)
> > > >(service gpm-service-type)
> > > >(simple-service 'nanorc etc-service-type
> > > >(list `("nanorc", nanorc)))
> > > > )
> > > >%base-services)))
> > >
> > > It seems I may have fallen for the grub luks2 compatibility issue,
> > > which I didn't know about. I will investigate later.
> > >
> > Yeah, that was the problem.
>
> GRUB currently doesn't support Argon2 PBKDFs, if you are going to use LUKS2, 
> 

bug#69319: Unbootable, unfixable system

2024-02-24 Thread Hilton Chain via Bug reports for GNU Guix
Hi Nathan,

On Sun, 25 Feb 2024 08:48:35 +0800,
Nathan Dehnel wrote:
>
> On Fri, Feb 23, 2024 at 11:17 AM Nathan Dehnel  wrote:
> >
> > On Fri, Feb 23, 2024 at 1:15 AM Nathan Dehnel  wrote:
> > >
> > > This config results in grub rescue "unknown filesystem  > > btrfs rootfs>" when I try to boot it. I have verified that all the
> > > device uuids are correct, and the bootloader, mapped-devices, and
> > > file-systems sections are identical in form to my other system which
> > > boots fine. i can mount the boot partition and unlock and mount the
> > > root partition manually, so they're not broken. I have no idea why
> > > it's not working. My guess is that reconfigure is broken inside a
> > > chroot somehow.
> > >
> > > (use-modules (gnu))
> > > (use-service-modules networking ssh sysctl shepherd base)
> > > (use-package-modules vpn linux)
> > > (use-modules (nongnu packages linux)
> > > (nongnu system linux-initrd)
> > > (gnu services)
> > > (guix packages)
> > > (gooby-channel packages baksnapper))
> > > (define bashrc
> > >(local-file "../bashrc"))
> > > (define nanorc
> > >(local-file "../nano/nanorc"))
> > > (operating-system
> > > (kernel linux)
> > >  (initrd microcode-initrd)
> > >  (firmware (list linux-firmware))
> > >  (locale "en_US.utf8")
> > >  (timezone "America/Chicago")
> > >  (keyboard-layout (keyboard-layout "us"))
> > >  (host-name "guixoffline")
> > >  (bootloader
> > >(bootloader-configuration
> > >  (bootloader grub-efi-bootloader)
> > >(targets '("/boot/efi1"))
> > >  (keyboard-layout keyboard-layout)))
> > >  (mapped-devices
> > >(list (mapped-device
> > >(source
> > >  (uuid "14930dad-016d-4b59-b7d8-d5af2c33f4b0"))
> > >(target "offline1")
> > >(type luks-device-mapping))
> > > ))
> > >  (file-systems
> > >(cons* (file-system
> > > (mount-point "/boot/efi1")
> > > (device (uuid "3339-DAE2" 'fat32))
> > > (type "vfat"))
> > >   (file-system
> > > (mount-point "/")
> > > (device "/dev/mapper/offline1")
> > > (type "btrfs")
> > > (options "compress=zlib:9")
> > > (dependencies mapped-devices))
> > >   %base-file-systems))
> > >  (users (cons* (user-account
> > >  (name "nathan")
> > >  (comment "Nathan Dehnel")
> > >  (group "users")
> > >  (home-directory "/home/nathan")
> > >  (supplementary-groups '("wheel" "netdev" "audio" 
> > > "video")))
> > >%base-user-accounts))
> > >  (packages
> > >(append
> > >(specification->package "btrfs-progs")
> > >(specification->package "parted")
> > >(specification->package "mdadm")
> > >(specification->package "git")
> > >(specification->package "nss-certs")
> > >(specification->package "nix")
> > >(specification->package "efibootmgr")
> > >(specification->package "smartmontools")
> > >(specification->package "iotop")
> > >(specification->package "bcache-tools")
> > >(specification->package "lsof")
> > >(specification->package "wireguard-tools")
> > >(specification->package "baksnapper")
> > >(specification->package "file")
> > >(specification->package "rsync"))
> > >  %base-packages))
> > >  (services
> > >(append
> > >  (list
> > >   (service openssh-service-type
> > > (openssh-configuration
> > >  (permit-root-login #t)
> > >  (password-authentication? #t)
> > >  (authorized-keys
> > >   `(("root" ,(local-file "ssh/root-gentoodesktop.pub"))
> > > ("root" ,(local-file "ssh/baksnapper-gentoodesktop.pub"))
> > > ("root" ,(local-file "ssh/baksnapper-gentooserver.pub"))
> > > ("root" ,(local-file "ssh/nathan-guixlaptop.pub"))
> > > 
> > >(service connman-service-type)
> > >(service ntp-service-type)
> > >(service gpm-service-type)
> > >(simple-service 'nanorc etc-service-type
> > >(list `("nanorc", nanorc)))
> > > )
> > >%base-services)))
> >
> > It seems I may have fallen for the grub luks2 compatibility issue,
> > which I didn't know about. I will investigate later.
> >
> Yeah, that was the problem.

GRUB currently doesn't support Argon2 PBKDFs, if you are going to use LUKS2, you
have to specify pbkdf2:
--8<---cut here---start->8---
cryptsetup --type=luks2 --pbkdf=pbkdf2
--8<---cut here---end--->8---

In case it's needed, I packaged a GRUB variant with Argon2 support and its
bootloader definition in my channel:

bug#69267: icedove.desktop has no StartupWMClass

2024-02-24 Thread Clément Lassieur
Hello Damiano,

On Mon, Feb 19 2024, Damiano Ognissanti wrote:

> Sorry for the confusion, I copied the line from the wrong file. It should
> obviously be
>
> StartupWMClass=icedove-default

I think we should do:

(setenv "MOZ_APP_REMOTINGNAME" "Icedove")
StartupWMClass=Icedove

Like we do with Icecat.

See this commit:
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=be1d05c10766a979dd0720b677889ed950d3b895

Cheers,
Clément





bug#69319: Unbootable, unfixable system

2024-02-24 Thread Nathan Dehnel
Yeah, that was the problem.

On Fri, Feb 23, 2024 at 11:17 AM Nathan Dehnel  wrote:
>
> It seems I may have fallen for the grub luks2 compatibility issue,
> which I didn't know about. I will investigate later.
>
> On Fri, Feb 23, 2024 at 1:15 AM Nathan Dehnel  wrote:
> >
> > This config results in grub rescue "unknown filesystem  > btrfs rootfs>" when I try to boot it. I have verified that all the
> > device uuids are correct, and the bootloader, mapped-devices, and
> > file-systems sections are identical in form to my other system which
> > boots fine. i can mount the boot partition and unlock and mount the
> > root partition manually, so they're not broken. I have no idea why
> > it's not working. My guess is that reconfigure is broken inside a
> > chroot somehow.
> >
> > (use-modules (gnu))
> > (use-service-modules networking ssh sysctl shepherd base)
> > (use-package-modules vpn linux)
> > (use-modules (nongnu packages linux)
> > (nongnu system linux-initrd)
> > (gnu services)
> > (guix packages)
> > (gooby-channel packages baksnapper))
> > (define bashrc
> >(local-file "../bashrc"))
> > (define nanorc
> >(local-file "../nano/nanorc"))
> > (operating-system
> > (kernel linux)
> >  (initrd microcode-initrd)
> >  (firmware (list linux-firmware))
> >  (locale "en_US.utf8")
> >  (timezone "America/Chicago")
> >  (keyboard-layout (keyboard-layout "us"))
> >  (host-name "guixoffline")
> >  (bootloader
> >(bootloader-configuration
> >  (bootloader grub-efi-bootloader)
> >(targets '("/boot/efi1"))
> >  (keyboard-layout keyboard-layout)))
> >  (mapped-devices
> >(list (mapped-device
> >(source
> >  (uuid "14930dad-016d-4b59-b7d8-d5af2c33f4b0"))
> >(target "offline1")
> >(type luks-device-mapping))
> > ))
> >  (file-systems
> >(cons* (file-system
> > (mount-point "/boot/efi1")
> > (device (uuid "3339-DAE2" 'fat32))
> > (type "vfat"))
> >   (file-system
> > (mount-point "/")
> > (device "/dev/mapper/offline1")
> > (type "btrfs")
> > (options "compress=zlib:9")
> > (dependencies mapped-devices))
> >   %base-file-systems))
> >  (users (cons* (user-account
> >  (name "nathan")
> >  (comment "Nathan Dehnel")
> >  (group "users")
> >  (home-directory "/home/nathan")
> >  (supplementary-groups '("wheel" "netdev" "audio" "video")))
> >%base-user-accounts))
> >  (packages
> >(append
> >(specification->package "btrfs-progs")
> >(specification->package "parted")
> >(specification->package "mdadm")
> >(specification->package "git")
> >(specification->package "nss-certs")
> >(specification->package "nix")
> >(specification->package "efibootmgr")
> >(specification->package "smartmontools")
> >(specification->package "iotop")
> >(specification->package "bcache-tools")
> >(specification->package "lsof")
> >(specification->package "wireguard-tools")
> >(specification->package "baksnapper")
> >(specification->package "file")
> >(specification->package "rsync"))
> >  %base-packages))
> >  (services
> >(append
> >  (list
> >   (service openssh-service-type
> > (openssh-configuration
> >  (permit-root-login #t)
> >  (password-authentication? #t)
> >  (authorized-keys
> >   `(("root" ,(local-file "ssh/root-gentoodesktop.pub"))
> > ("root" ,(local-file "ssh/baksnapper-gentoodesktop.pub"))
> > ("root" ,(local-file "ssh/baksnapper-gentooserver.pub"))
> > ("root" ,(local-file "ssh/nathan-guixlaptop.pub"))
> > 
> >(service connman-service-type)
> >(service ntp-service-type)
> >(service gpm-service-type)
> >(simple-service 'nanorc etc-service-type
> >(list `("nanorc", nanorc)))
> > )
> >%base-services)))





bug#69267: icedove.desktop has no StartupWMClass

2024-02-24 Thread Damiano Ognissanti
Sorry for the confusion, I copied the line from the wrong file. It 
should obviously be


StartupWMClass=icedove-default


Damiano


On 2/19/24 10:38, Damiano Ognissanti wrote:
The icedove.desktop file has no StartupWMClass which makes it behave 
strangely with GNOME. If you press Super, search for it, right click 
and press "Pin to Dash" it will get pinned, but as soon as you open 
it, it will open a new unpinned icon in the Dash, which means, among 
other things, that Super + number can't switch to it when it's open.


Adding

StartupWMClass=Icecat

to the desktop file fixes the issue.


Best,
Damiano







bug#69267: icedove.desktop has no StartupWMClass

2024-02-24 Thread Damiano Ognissanti
The icedove.desktop file has no StartupWMClass which makes it behave 
strangely with GNOME. If you press Super, search for it, right click and 
press "Pin to Dash" it will get pinned, but as soon as you open it, it 
will open a new unpinned icon in the Dash, which means, among other 
things, that Super + number can't switch to it when it's open.


Adding

StartupWMClass=Icecat

to the desktop file fixes the issue.


Best,
Damiano






bug#69070: [swh-devel] No releases/revisions in /snapshot endpoints?

2024-02-24 Thread Antoine Lambert

Hello Ludovic,

The SWH data model also allows for snapshot branches to target simple 
directories.

The new loaders we implemented to ingest a tarball content (visit type: 
tarball-directory)
or a directory targeted by a CVS tag or commit (visit types: git-checkout, 
hg-checkout)
produce such snapshot with a single non alias branch targeting a directory.

We do not produce revisions or releases with these loaders as their purpose is 
to
archive a single directory (with extid mapping) without any development history.

Antoine Lambert

On 12/02/2024 17:04, Ludovic Courtès wrote:

Dear SWH,

In  I stumbled upon what might be new
behavior from the /snapshot endpoint:


The crux of the problem is that ‘snapshot-branches’ used to return
either a “revision” or a “release”, but now it can also return a
“directory”:

$ wget -qO- 
https://archive.softwareheritage.org/api/1/snapshot/c405490b80fb35cc58b34260d9ec6add8248857f
 |jq
{
   "id": "c405490b80fb35cc58b34260d9ec6add8248857f",
   "branches": {
 "1.3.2": {
   "target": "e4a4be18fae8d9c6528abff3bc9088feb19a76c7",
   "target_type": "directory",
   "target_url": 
"https://archive.softwareheritage.org/api/1/directory/e4a4be18fae8d9c6528abff3bc9088feb19a76c7/;
 },
 "HEAD": {
   "target": "1.3.2",
   "target_type": "alias",
   "target_url": 
"https://archive.softwareheritage.org/api/1/directory/e4a4be18fae8d9c6528abff3bc9088feb19a76c7/;
 }
   },
   "next_branch": null
}

Current documentation mentions the ‘target_types’ query parameter, which
I could use to restrict results to “revision” and “release”:

   https://archive.softwareheritage.org/api/1/snapshot/doc/

However, that’d be the empty list of the case above.

Other snapshots seem to be missing releases and revisions as well, such
as this one:

   
https://archive.softwareheritage.org/api/1/snapshot/55bda9214f962550baad25026fb3ac3ad12e3eb9/

Did anything change here?  Am I holding it wrong?  :-)

Thanks in advance,
Ludo’.


--
Antoine Lambert
Software engineer for Software Heritage
https://www.softwareheritage.org
Inria, Paris






bug#65441: leptonica 1.83.1 ioformats_reg test failure

2024-02-24 Thread Guillaume Le Vaillant
Fixed in df5653adcbd1f9799f810f46d514b2ca4112af97.
Closing.


signature.asc
Description: PGP signature