Commit Graph

507 Commits

Author SHA1 Message Date
Ryan Lahfa 3dc8778c32
Merge pull request #215 from nix-community/linux-bootloader-crate
stub: split up into a linux-bootloader crate
2023-09-13 16:43:16 +00:00
nikstur 83f4376929 uefi: move uefi code to separate workspace 2023-09-13 17:46:05 +02:00
Raito Bezarius 64f1760944 flake: add cargo-machete to machete the unused crates in our Cargo.toml
Useful for the previous split up.
2023-09-13 17:43:35 +02:00
Raito Bezarius 51d9c1dff8 stub: split up into a linux-bootloader crate
We introduce `linux-bootloader` a crate made to build Rust-based Linux-oriented bootloaders.

It follows systemd/UAPI group and semantics as much as possible, e.g. BLS/loader capabilities/stub capabilities.
2023-09-13 17:43:35 +02:00
Ryan Lahfa 9a9b09628b
Merge pull request #219 from tilpner/syncfs
tool: only sync ESP filesystem
2023-09-13 14:58:58 +00:00
Ryan Lahfa 6d6cdf59b9
Merge pull request #218 from nix-community/get-crane-back 2023-08-25 16:14:52 +02:00
tilpner 3895c94eb5
tool: only sync ESP filesystem 2023-08-17 21:23:33 +02:00
nikstur 0109e357aa Revert "Merge pull request #147 from nix-community/nixpkgs-infrastructure"
This reverts commit 59e3ebb19f, reversing
changes made to 9f97a908e4.
2023-08-12 02:41:54 +02:00
Julian Stecklina f13848606f
Merge pull request #217 from SuperSandro2000/cargo-auditable
Fix lzbt build with recent nixos-unstable
2023-08-11 15:47:01 +02:00
Sandro Jäckel 4a1b07d0a9
Fix lzbt build with recent nixos-unstable
This fixes the following error:
....
cargo-auditable>    Doc-tests auditable-extract
cargo-auditable> error: doctest failed, to rerun pass `-p auditable-extract --doc`
cargo-auditable>
cargo-auditable> Caused by:
cargo-auditable>   could not execute process `rustdoc --edition=2018 --crate-type lib --crate-name auditable_extract --test /build/source/auditable-extract/src/lib.rs --target x86_64-unknown-linux-gnu -L dependency=/build/source/target/x86_64-unknown-linux-gnu/release/deps -L dependency=/build/source/target/release/deps --test-args --test-threads=96 --extern auditable_extract=/build/source/target/x86_64-unknown-linux-gnu/release/deps/libauditable_extract-dd1904617e4b78db.rlib --extern binfarce=/build/source/target/x86_64-unknown-linux-gnu/release/deps/libbinfarce-2ba09d21aed0de1a.rlib -C embed-bitcode=no --error-format human` (never executed)
cargo-auditable>
cargo-auditable> Caused by:
cargo-auditable>   No such file or directory (os error 2)
2023-08-10 01:55:21 +02:00
nikstur e7246c6bce
Merge pull request #212 from nix-community/update-flake-inputs
flake.lock: Update
2023-07-20 23:42:57 +02:00
nikstur ec210ff40d stub: fix typo 2023-07-20 22:49:45 +02:00
nikstur 2a109c0121 flake.lock: Update
Flake lock file updates:

• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/006c75898cf814ef9497252b022e91c946ba8e17' (2023-05-08)
  → 'github:hercules-ci/flake-parts/8e8d955c22df93dbe24f19ea04f47a74adbdc5ec' (2023-07-04)
• Updated input 'flake-utils':
    'github:numtide/flake-utils/cfacdce06f30d2b68473a46042957675eebb3401' (2023-04-11)
  → 'github:numtide/flake-utils/919d646de7be200f3bf08cb76ae1f09402b6f9b4' (2023-07-11)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/794a24afefde85c3e9b533443c4c73cd871f9e3a' (2023-05-26)
  → 'github:NixOS/nixpkgs/17dd4c92ee12de80a1fe86ea30be723e4e06cd00' (2023-07-20)
• Updated input 'pre-commit-hooks-nix':
    'github:cachix/pre-commit-hooks.nix/61e567d6497bc9556f391faebe5e410e6623217f' (2023-05-23)
  → 'github:cachix/pre-commit-hooks.nix/eb433bff05b285258be76513add6f6c57b441775' (2023-07-18)
• Updated input 'pre-commit-hooks-nix/nixpkgs-stable':
    'github:NixOS/nixpkgs/9b8e5abb18324c7fe9f07cb100c3cd4a29cda8b8' (2023-03-15)
  → 'github:NixOS/nixpkgs/c37ca420157f4abc31e26f436c1145f8951ff373' (2023-06-03)
2023-07-20 22:42:22 +02:00
nikstur bf82f823e1
Merge pull request #211 from nix-community/docs-flake
docs: suggest to use 0.3.0 tagged release of lanzaboote rather than master
2023-07-20 11:30:16 +02:00
Raito Bezarius aa2cb467da docs: suggest to use 0.3.0 tagged release of lanzaboote rather than master
This is to avoid people relying on dangerous development branches.

Retake of #207…
2023-07-20 10:48:02 +02:00
nikstur 85420159e7
Merge pull request #210 from nix-community/revert-207-update/docs
Revert "docs: suggest to track released versions rather than master "
2023-07-20 10:35:10 +02:00
nikstur 0dbcd0ec1a
Revert "docs: suggest to track released versions rather than master " 2023-07-20 10:34:20 +02:00
nikstur 78f00a288f
Merge pull request #209 from nix-community/update-all-but-goblin
Update all dependencies besides goblin
2023-07-20 01:41:52 +02:00
renovate[bot] 9cceec4008 fix(deps): update all dependencies 2023-07-20 01:27:43 +02:00
nikstur bfc8826663
Merge pull request #208 from nix-community/flake/cache
flake: offer nix-community cache as a suggested substituter
2023-07-19 21:49:42 +02:00
nikstur 4dc0c2464d
Merge pull request #207 from nix-community/update/docs
docs: suggest to track released versions rather than master
2023-07-19 21:47:50 +02:00
Raito Bezarius 434ee97ab3 flake: offer nix-community cache as a suggested substituter
As we use Hercules CI with nix-community builder, our CI sends the stuff there
all the time.

Now, let's make everyone benefit from it.
2023-07-19 21:42:27 +02:00
Raito Bezarius d4131e0c65 docs: suggest to track released versions rather than master for the flake setup
The flake setup previously suggested master implicitly,
we use the latest known release.
2023-07-19 21:39:50 +02:00
nikstur c758cdad46
Merge pull request #201 from Janik-Haag/master
Further updates to QUICK_START.md
2023-06-18 23:45:07 +02:00
Janik H d791fc5c35 remove QUICK_START.md sharp-edge 2023-06-18 15:50:33 +02:00
Julian Stecklina 9044916b9e
Merge pull request #200 from Janik-Haag/master
update QUICK_START.md bootspec
2023-06-18 15:36:11 +02:00
Janik H 19a7312462 remove QUICK_START.md bootspec section 2023-06-17 16:51:00 +02:00
nikstur 823ad6b70b
Merge pull request #198 from SuperSandro2000/fix-eval
Fix eval when aliases are disabled
2023-06-13 23:47:14 +02:00
Sandro Jäckel 7777777700
Fix eval when aliases are disabled 2023-06-13 19:31:50 +02:00
Ryan Lahfa 59e3ebb19f
Merge pull request #147 from nix-community/nixpkgs-infrastructure
project: move to nixpkgs Rust infrastructure
2023-06-12 10:40:16 +02:00
Ryan Lahfa 9f97a908e4
Merge pull request #195 from nix-community/mutually-exclusive-fat-thin-stubs
feat(stub): throw compile error in case of enabling fat and thin feat…
2023-06-10 18:45:56 +02:00
Raito Bezarius b77ef07cec project: perform clippy/rustfmt checking via a higher order derivation transformer
Instead of patching the derivation in-place via flags, we just have
a higher order function that takes the Rust package derivation and override it
into a Rustfmt / Clippy oriented derivation: it turns off checks and adds its
required dependencies.
2023-06-10 18:08:35 +02:00
Raito Bezarius 63bbfe35d8 feat(stub): throw compile error in case of enabling fat and thin features
This is more helpful than a weird compilation error on borrow checking rules!
2023-06-10 18:06:50 +02:00
Raito Bezarius 5b22893473 project: move to nixpkgs Rust infrastructure
This builds the stub and tool using `rustPlatform.buildRustPackage`
which features a stable Rust compiler, recent enough to support UEFI
targets.

In the future, it will rely on properly defined targets for UEFI in
nixpkgs.
2023-06-10 18:03:58 +02:00
Julian Stecklina 45d04a45d3
Merge pull request #193 from nix-community/renovate/all
fix(deps): update all dependencies
2023-06-05 10:31:02 +02:00
renovate[bot] 3cae2f1c63
fix(deps): update all dependencies 2023-06-05 02:00:30 +00:00
nikstur e422970c1b
Merge pull request #192 from nix-community/upgrade/uefi
stub: upgrade to uefi-rs 0.22.0
2023-06-02 14:33:17 +02:00
Raito Bezarius 88aeb61d85 stub: upgrade to uefi-rs 0.22.0
This upgrade is necessary to avoid borking boot on bad UEFI implementations.
2023-06-02 13:16:44 +02:00
nikstur da24357977
Merge pull request #182 from nix-community/fat-uki
stub: add fat variant
2023-06-01 22:43:53 +02:00
Julian Stecklina 2e62c11bab
Merge pull request #191 from nix-community/renovate/all
fix(deps): update rust crate log to 0.4.18
2023-05-29 10:45:26 +02:00
renovate[bot] f1d199d0b4
fix(deps): update rust crate log to 0.4.18 2023-05-29 01:38:08 +00:00
nikstur e9003f12e6
Merge pull request #189 from nix-community/update-state-of-upstreaming
docs: fixup stray ```
2023-05-28 00:52:36 +02:00
Raito Bezarius 72b66bfc69 docs: fixup stray ``` 2023-05-28 00:43:51 +02:00
Ryan Lahfa e5bced9852
Merge pull request #188 from nix-community/update-state-of-upstreaming
docs: update upstreaming state
2023-05-28 00:43:04 +02:00
Raito Bezarius de80330ec4 docs: update upstreaming state
We now have bootspec enabled by default for 23.05+.
2023-05-28 00:39:31 +02:00
Julian Stecklina f641dcfc8b
Merge pull request #186 from erdnaxe/docs_update
docs: add precision about dbx and OptionROMs
2023-05-27 12:14:02 +02:00
Alexandre Iooss b673e1b71f docs: add precision about dbx and OptionROMs 2023-05-25 08:57:33 +02:00
nikstur 7ecafb2947 stub: add fat variant
A compile time feature is introduced that allows to build "fat" stubs
that can be used to build "fat" UKIs. "fat" here means that the actual
kernel and initrd are embedded in the PE binary, not only the file path
and hash. This brings us one step closer to feature partiy with
systemd-stub and thus one step closer to replacing it fully. Such a
"fat" or "real" UKI is also interesting for image-based deployments of
NixOS.
2023-05-24 22:09:28 +02:00
nikstur dc52f0352d
Merge pull request #185 from nix-community/cleanup-flake
Cleanup flake
2023-05-24 10:32:41 +02:00
nikstur 740f7f9314 flake: checkInputs -> nativeCheckInputs
Use nativeCheckInputs instead of checkInputs because it is more
semantically correct even if checkInputs works with Crane.
2023-05-24 01:08:58 +02:00