* bug#64196: Can't boot due to discrepancy between reconfigure and init
@ 2023-06-20 18:38 Csepp
2023-06-21 7:45 ` Josselin Poiret via Bug reports for GNU Guix
0 siblings, 1 reply; 6+ messages in thread
From: Csepp @ 2023-06-20 18:38 UTC (permalink / raw)
To: 64196
I'm trying to move my installation from /dev/sda to /dev/sdb, I created
the file system and changed the bootloader config in my operating-system
definition to point to /dev/sdb and the file-system to use the correct
UUID (previously it was using a label).
First I tried to simply reconfigure my running system and then taking a
BTRFS snapshot and copying that over the /dev/sdb1, but that failed.
The exact error was GRUB not being able to find a file system with a
given UUID, which matched the UUID of /dev/sda1. This error happened
before GRUB loaded any of its modules, so I was dropped into a rescue
shell.
I thought this might be related to subvolumes, maybe I originally used
the wrong config and the updated config was written to a different
subvolume and GRUB doesn't recognize the default subvolume ID option on
the BTRFS partition.
I think this is a fairly critical error.
The error doesn't manifest when I run guix system init with the same
config, so there is some (possibly un(der)documented) difference between
guix system reconfigure and guix system init that makes the former rely
on the state of the running system in a way that doesn't take into
account the new configuration.
Is this intended behaviour for some reason?
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#64196: Can't boot due to discrepancy between reconfigure and init
2023-06-20 18:38 bug#64196: Can't boot due to discrepancy between reconfigure and init Csepp
@ 2023-06-21 7:45 ` Josselin Poiret via Bug reports for GNU Guix
2023-06-21 22:08 ` Csepp
0 siblings, 1 reply; 6+ messages in thread
From: Josselin Poiret via Bug reports for GNU Guix @ 2023-06-21 7:45 UTC (permalink / raw)
To: Csepp, 64196
[-- Attachment #1: Type: text/plain, Size: 1777 bytes --]
Hi Csepp,
Csepp <raingloom@riseup.net> writes:
> I'm trying to move my installation from /dev/sda to /dev/sdb, I created
> the file system and changed the bootloader config in my operating-system
> definition to point to /dev/sdb and the file-system to use the correct
> UUID (previously it was using a label).
> First I tried to simply reconfigure my running system and then taking a
> BTRFS snapshot and copying that over the /dev/sdb1, but that failed.
Any reason you didn't try in the reverse order? This seems prone to error.
> The exact error was GRUB not being able to find a file system with a
> given UUID, which matched the UUID of /dev/sda1. This error happened
> before GRUB loaded any of its modules, so I was dropped into a rescue
> shell.
> I thought this might be related to subvolumes, maybe I originally used
> the wrong config and the updated config was written to a different
> subvolume and GRUB doesn't recognize the default subvolume ID option on
> the BTRFS partition.
> I think this is a fairly critical error.
This is too fuzzy to be actionable, but if you manage to reproduce
reliably then I would gladly take a look at it.
> The error doesn't manifest when I run guix system init with the same
> config, so there is some (possibly un(der)documented) difference between
> guix system reconfigure and guix system init that makes the former rely
> on the state of the running system in a way that doesn't take into
> account the new configuration.
I don't think there is, the biggest difference is that `guix system
init` will copy stuff into the target store and initialize the basic
directories for Guix, whereas reconfigure will just build everything in
the current store.
Best,
--
Josselin Poiret
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 682 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#64196: Can't boot due to discrepancy between reconfigure and init
2023-06-21 7:45 ` Josselin Poiret via Bug reports for GNU Guix
@ 2023-06-21 22:08 ` Csepp
2023-06-22 7:35 ` Josselin Poiret via Bug reports for GNU Guix
0 siblings, 1 reply; 6+ messages in thread
From: Csepp @ 2023-06-21 22:08 UTC (permalink / raw)
To: Josselin Poiret; +Cc: 64196, Csepp
Josselin Poiret <dev@jpoiret.xyz> writes:
> [[PGP Signed Part:Undecided]]
> Hi Csepp,
>
> Csepp <raingloom@riseup.net> writes:
>
>> I'm trying to move my installation from /dev/sda to /dev/sdb, I created
>> the file system and changed the bootloader config in my operating-system
>> definition to point to /dev/sdb and the file-system to use the correct
>> UUID (previously it was using a label).
>> First I tried to simply reconfigure my running system and then taking a
>> BTRFS snapshot and copying that over the /dev/sdb1, but that failed.
>
> Any reason you didn't try in the reverse order? This seems prone to error.
Since reconfigure overwrites /dev/sdb, I don't see how reversing the
order would fix things??
Maybe copying the file system over and *then* running init would make
sense.
>> The exact error was GRUB not being able to find a file system with a
>> given UUID, which matched the UUID of /dev/sda1. This error happened
>> before GRUB loaded any of its modules, so I was dropped into a rescue
>> shell.
>> I thought this might be related to subvolumes, maybe I originally used
>> the wrong config and the updated config was written to a different
>> subvolume and GRUB doesn't recognize the default subvolume ID option on
>> the BTRFS partition.
>> I think this is a fairly critical error.
>
> This is too fuzzy to be actionable, but if you manage to reproduce
> reliably then I would gladly take a look at it.
I tried reproducing it, it seems to happen every time, but I can try to
create a more minimal test case.
>> The error doesn't manifest when I run guix system init with the same
>> config, so there is some (possibly un(der)documented) difference between
>> guix system reconfigure and guix system init that makes the former rely
>> on the state of the running system in a way that doesn't take into
>> account the new configuration.
>
> I don't think there is, the biggest difference is that `guix system
> init` will copy stuff into the target store and initialize the basic
> directories for Guix, whereas reconfigure will just build everything in
> the current store.
>
> Best,
I mean, that's the theory, but either Guix or GRUB seems to get the
incorrect UUID from *somewhere*.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#64196: Can't boot due to discrepancy between reconfigure and init
2023-06-21 22:08 ` Csepp
@ 2023-06-22 7:35 ` Josselin Poiret via Bug reports for GNU Guix
2023-06-24 18:01 ` Csepp
0 siblings, 1 reply; 6+ messages in thread
From: Josselin Poiret via Bug reports for GNU Guix @ 2023-06-22 7:35 UTC (permalink / raw)
To: Csepp; +Cc: 64196, Csepp
[-- Attachment #1: Type: text/plain, Size: 592 bytes --]
Hi,
Csepp <raingloom@riseup.net> writes:
>> I don't think there is, the biggest difference is that `guix system
>> init` will copy stuff into the target store and initialize the basic
>> directories for Guix, whereas reconfigure will just build everything in
>> the current store.
>>
>> Best,
>
> I mean, that's the theory, but either Guix or GRUB seems to get the
> incorrect UUID from *somewhere*.
You can manually check that the generated grub.cfg file contains the
expected UUID after the reconfigure, it should be in
/boot/grub/grub.cfg.
Best,
--
Josselin Poiret
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 682 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#64196: Can't boot due to discrepancy between reconfigure and init
2023-06-22 7:35 ` Josselin Poiret via Bug reports for GNU Guix
@ 2023-06-24 18:01 ` Csepp
2023-07-26 22:42 ` Csepp
0 siblings, 1 reply; 6+ messages in thread
From: Csepp @ 2023-06-24 18:01 UTC (permalink / raw)
To: Josselin Poiret; +Cc: 64196, Csepp
Josselin Poiret <dev@jpoiret.xyz> writes:
> [[PGP Signed Part:Undecided]]
> Hi,
>
> Csepp <raingloom@riseup.net> writes:
>>> I don't think there is, the biggest difference is that `guix system
>>> init` will copy stuff into the target store and initialize the basic
>>> directories for Guix, whereas reconfigure will just build everything in
>>> the current store.
>>>
>>> Best,
>>
>> I mean, that's the theory, but either Guix or GRUB seems to get the
>> incorrect UUID from *somewhere*.
>
> You can manually check that the generated grub.cfg file contains the
> expected UUID after the reconfigure, it should be in
> /boot/grub/grub.cfg.
>
> Best,
I did, I think I already wrote that it wasn't coming from there, but
I'll check again when I next try it.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#64196: Can't boot due to discrepancy between reconfigure and init
2023-06-24 18:01 ` Csepp
@ 2023-07-26 22:42 ` Csepp
0 siblings, 0 replies; 6+ messages in thread
From: Csepp @ 2023-07-26 22:42 UTC (permalink / raw)
To: Csepp; +Cc: 64196, Josselin Poiret
Csepp <raingloom@riseup.net> writes:
> Josselin Poiret <dev@jpoiret.xyz> writes:
>
>> [[PGP Signed Part:Undecided]]
>> Hi,
>>
>> Csepp <raingloom@riseup.net> writes:
>>>> I don't think there is, the biggest difference is that `guix system
>>>> init` will copy stuff into the target store and initialize the basic
>>>> directories for Guix, whereas reconfigure will just build everything in
>>>> the current store.
>>>>
>>>> Best,
>>>
>>> I mean, that's the theory, but either Guix or GRUB seems to get the
>>> incorrect UUID from *somewhere*.
>>
>> You can manually check that the generated grub.cfg file contains the
>> expected UUID after the reconfigure, it should be in
>> /boot/grub/grub.cfg.
>>
>> Best,
>
> I did, I think I already wrote that it wasn't coming from there, but
> I'll check again when I next try it.
This is still happening. Couldn't figure out a decent way to transfer
my system with btrfs send.
I checked the generated bootloader installer script that gets run, it
seems to refer to the correct device, but somehow the UUID of the booted
partition still gets accessed.
I guess I'll have to strace it.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-07-26 23:04 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-20 18:38 bug#64196: Can't boot due to discrepancy between reconfigure and init Csepp
2023-06-21 7:45 ` Josselin Poiret via Bug reports for GNU Guix
2023-06-21 22:08 ` Csepp
2023-06-22 7:35 ` Josselin Poiret via Bug reports for GNU Guix
2023-06-24 18:01 ` Csepp
2023-07-26 22:42 ` Csepp
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.