Skip to content

static/usr/lib/udev/rules.d: replace partition scanning with symlink …#418

Open
alfonsosanchezbeato wants to merge 2 commits intocanonical:mainfrom
alfonsosanchezbeato:safer-part-rules
Open

static/usr/lib/udev/rules.d: replace partition scanning with symlink …#418
alfonsosanchezbeato wants to merge 2 commits intocanonical:mainfrom
alfonsosanchezbeato:safer-part-rules

Conversation

@alfonsosanchezbeato
Copy link
Copy Markdown
Member

…validation

Prevent running twice 'snap-boostrap scan', once in initramfs and next time from the rootfs. Instead, recreate the device units by using the symlinks already in /dev/disk. This ensures that the units are the same, is faster, and also prevents the issue that on first boot /usr/lib/snapd/snap-bootstrap is not yet available when the rules are run, as usr-lib-snapd.mount has not been created yet. This provoked error like:

zram0: Failed to find and pin callout binary "/usr/lib/snapd/snap-bootstrap": No such file or directory

…validation

Prevent running twice 'snap-boostrap scan', once in initramfs and next time
from the rootfs. Instead, recreate the device units by using the symlinks
already in /dev/disk. This ensures that the units are the same, is faster, and
also prevents the issue that on first boot /usr/lib/snapd/snap-bootstrap is not
yet available when the rules are run, as usr-lib-snapd.mount has not been
created yet. This provoked error like:

zram0: Failed to find and pin callout binary "/usr/lib/snapd/snap-bootstrap": No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant