1
0
mirror of https://github.com/containers/bootc.git synced 2026-02-05 15:45:53 +01:00

33 Commits

Author SHA1 Message Date
Colin Walters
b5036b322c Don't exclusively own files in ESP
I have gone back and forth on whether bootupd should *exclusively*
own `/boot/efi` or not.  In the "adopted" case, we clearly cannot.

Let's be conservative for now and change the way we compute
diffs to be "relative" - this is a cleaner approach than
"compute diff but ignore removals".
v0.0.0
2020-06-26 13:57:49 +00:00
Colin Walters
478c19cba1 ci: Add build-test.sh to do a full cycle
This is fast enough one can just run it to do things end to end.
2020-06-26 13:57:46 +00:00
Colin Walters
a4e5d9b5dd Spit off ipc into separate module
Yeah the code is a mess, but it's improving.
2020-06-24 22:35:56 +00:00
Colin Walters
cfb673ab32 Consistently accept components as non-option args
We were inconsistent.
2020-06-24 22:18:32 +00:00
Colin Walters
a4c46bacb7 Rework to have everything run via daemon
A bit ugly (manual protocol over bincode, serializing our prints
into a string buffer) but gets us closer to where we need to be.
2020-06-24 21:57:12 +00:00
Colin Walters
9f40c53984 README.md: Link systemd-boot 2020-06-24 19:21:40 +00:00
Colin Walters
f3be1de023 Add socket authorization
Our socket is mode 0600, but let's require credentials
to be passed and validate that the message was sent from uid `0`
to double check.
2020-06-24 17:41:21 +00:00
Colin Walters
e635bfe2c3 cargo fmt+clippy 2020-06-24 17:03:27 +00:00
Colin Walters
9248adc01c Rename transition file
Now that this isn't part of rpm-ostree.
2020-06-24 17:02:36 +00:00
Colin Walters
2483a19f8f Drop sysroot bits for update/adopt/status
Because we run as a daemon now it doesn't make sense.
And drop the old test.
2020-06-24 17:01:43 +00:00
Colin Walters
c6bf680e98 tests: Extend with updates 2020-06-24 13:29:15 +00:00
Colin Walters
54adb36309 Add a socket and daemon
We really should run consistently as a daemon in the update case.

This doesn't change the main functionality yet.
2020-06-24 13:03:30 +00:00
Colin Walters
b5ffe13736 tests/kola: Extend a bit 2020-06-24 11:51:47 +00:00
Colin Walters
e3ff407f9e Run inside FCOS with kola test 2020-06-23 22:04:07 +00:00
Colin Walters
37c2f166f6 Store lockfile correctly in sysroot 2020-06-23 19:20:44 +00:00
Colin Walters
8a2824a1c4 Add systemd unit, fix state saving
Also add a lock file to protect the system against
admins running bootupd concurrently.

This gets us running when run as root in FCOS.
2020-06-23 18:42:54 +00:00
Colin Walters
f6a53bbafc Use OsString when generating filenames
Removes some assertions around UTF-8, dropping unwrap/expect.
2020-06-23 14:22:33 +00:00
Colin Walters
8dbf405381 Use saved state for digest, add drift test 2020-06-23 14:12:03 +00:00
Colin Walters
a528ee04ee Drop rpm-ostree from statefile path
Now that this is split out.
2020-06-23 01:45:50 +00:00
Colin Walters
ded61b35c1 Split out an efi module
Some more cleanup to reduce the `bootupd.rs` size.
2020-06-23 01:34:02 +00:00
Colin Walters
0aad67cee0 Fix cargo clippy lints
The one about boxing variants of differing size is great.
2020-06-23 01:25:12 +00:00
Colin Walters
adbce29281 A few more README updates 2020-06-22 21:55:05 +00:00
Colin Walters
a8db5a9261 Add README-design.md 2020-06-22 21:06:08 +00:00
Colin Walters
fc90cba8bf Plumb through and fix bugs in updates, add more e2e testing
I am thinking adopted components should only be tracked by
timestamp or so; the digest stuff is just misleading.
2020-06-22 20:59:16 +00:00
Colin Walters
c6728bf896 Initial filetree update implementation 2020-06-21 18:30:21 +00:00
Colin Walters
cd8b8f4d71 Even more modularization 2020-06-20 17:55:30 +00:00
Colin Walters
a68a1384be More module reorganization 2020-06-20 17:46:41 +00:00
Colin Walters
184df7488b Add more license headers 2020-06-20 17:30:26 +00:00
Colin Walters
553ce3b1ef README.md: Initial version 2020-06-20 17:29:13 +00:00
Colin Walters
7da2181131 Split into library with tiny wrapper binary
This way the library can be cleanly consumed by rpm-ostree if
we find it difficult to ship as a separate package.
2020-06-20 15:45:37 +00:00
Colin Walters
291b6856ec Split up into modules 2020-06-20 15:36:08 +00:00
Colin Walters
e351a847f1 Initial import from rpm-ostree prototype 2020-06-20 15:26:13 +00:00
Colin Walters
a7c02949f3 Initial stub 2020-06-20 13:37:21 +00:00