Skip to content

bootupd: small tweaks and initial tests#14

Merged
dustymabe merged 3 commits intodustymabe:dusty-bootupdfrom
mvo5:dusty-bootupd-mvo
Jan 9, 2024
Merged

bootupd: small tweaks and initial tests#14
dustymabe merged 3 commits intodustymabe:dusty-bootupdfrom
mvo5:dusty-bootupd-mvo

Conversation

@mvo5
Copy link

@mvo5 mvo5 commented Jan 9, 2024

No description provided.

({"deployment": {"ref": "some-ref"}}, "'osname' is a required property"),
({"deployment": {"osname": "some-os", "ref": "some-ref", "serial": "must-be-number"}},
"'must-be-number' is not of type 'number'"),
({"random": "propertey"}, "Additional properties are not allowed"),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
({"random": "propertey"}, "Additional properties are not allowed"),
({"random": "property"}, "Additional properties are not allowed"),

mispelling here intentional?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

silly me, typo indeed

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thanks again

os.path.join(root, mnt)],
check=True)
try:
with bind_mounts(['/dev', '/proc', '/sys', '/run', '/var', '/tmp'], root):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
with bind_mounts(['/dev', '/proc', '/sys', '/run', '/var', '/tmp'], root):
with bind_mounts(['dev', 'proc', 'sys', 'run', 'var', 'tmp'], root):

Feels a bit weird to have the / in the specified mounts here but then just `lstrip("/") them off for each use.. Is that just the desire to be as explicit as possible that they are a toplevel mount?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can remove this again but yeah, the intention was to make it very explicit that it's toplevel

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fine as is, I just wanted to understand more.

@mvo5 mvo5 force-pushed the dusty-bootupd-mvo branch from 1ceca8a to acb5466 Compare January 9, 2024 15:11
@dustymabe
Copy link
Owner

LGTM

@dustymabe dustymabe merged commit 220d7e2 into dustymabe:dusty-bootupd Jan 9, 2024
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.

2 participants