Skip to content

Conversation

@valentindavid
Copy link
Collaborator

No description provided.

@valentindavid
Copy link
Collaborator Author

This requires canonical/snapd#12006

@xnox
Copy link
Contributor

xnox commented Aug 9, 2022

It can often be confusing if udev database contents is different between initrd and runtime system. I hope that this udev rule will be added to the core* snap, and snapd.deb as well. Such that Links= on the system for the given partitions are the same in initrd and running systems.

@valentindavid valentindavid force-pushed the valentindavid/wait-for-disk branch from f7a03a4 to f65c7cb Compare February 14, 2023 13:46
@valentindavid valentindavid changed the title Wait for /dev/ubuntu/seed.device to start snap-initramfs-mounts.service Wait for /dev/ubuntu/disk device to start snap-initramfs-mounts.service Feb 22, 2023
@valentindavid valentindavid force-pushed the valentindavid/wait-for-disk branch from 6367f48 to c6ba4a0 Compare February 22, 2023 10:40
@valentindavid valentindavid force-pushed the valentindavid/wait-for-disk branch 8 times, most recently from 4e008e4 to 42581e4 Compare March 15, 2023 12:46
@xnox xnox added the core-main Ubuntu Core Main label Sep 15, 2023
@xnox
Copy link
Contributor

xnox commented Jan 23, 2024

I forgot what this is for anymore.

@valentindavid
Copy link
Collaborator Author

I forgot what this is for anymore.

snap-bootstrap starts before the disk is detected, which means it needs to loop and sleep until the disk appears. This is not elegant nor efficient. This PR changes it to react to udev and starts snap-bootstrap once the disk is detected without any sleep.

@valentindavid valentindavid force-pushed the valentindavid/wait-for-disk branch from 42581e4 to 4f2267f Compare March 5, 2024 11:00
@valentindavid valentindavid force-pushed the valentindavid/wait-for-disk branch from 4f2267f to 9af5a90 Compare March 12, 2024 12:50
@valentindavid valentindavid force-pushed the valentindavid/wait-for-disk branch from 9af5a90 to ea2788e Compare November 4, 2024 11:47
@valentindavid valentindavid marked this pull request as ready for review November 4, 2024 13:32
@valentindavid valentindavid force-pushed the valentindavid/wait-for-disk branch from ea2788e to 7e54da4 Compare November 4, 2024 13:34
@valentindavid valentindavid marked this pull request as draft November 4, 2024 13:35
@valentindavid valentindavid force-pushed the valentindavid/wait-for-disk branch from 7e54da4 to 0f47992 Compare November 4, 2024 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core-main Ubuntu Core Main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants