Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait for /dev/ubuntu/disk device to start snap-initramfs-mounts.service #107

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

valentindavid
Copy link
Contributor

No description provided.

@valentindavid
Copy link
Contributor Author

This requires snapcore/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 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 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
Contributor 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.

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.

None yet

2 participants