Skip to content

Commit

Permalink
bootupd: Use --write-uuid
Browse files Browse the repository at this point in the history
This is an even newer behavior that takes over handling
of the "UUID stamp files", which we want in general instead of
using the static labels.

Note `--write-uuid` implies `--with-static-configs`.

This should fix this use case:

```
clearpart --all --initlabel --disklabel=gpt
reqpart --add-boot
part / --grow --fstype xfs
```

Whereas right now we require:

```
clearpart --all --initlabel --disklabel=gpt
reqpart
part /boot --size=1000  --fstype=ext4 --label=boot
part / --grow --fstype xfs
```

Specifically the `--label=boot`.
  • Loading branch information
cgwalters committed Dec 7, 2023
1 parent f921b0c commit 7b091de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ def _install_bootupd(self):
"backend",
"install",
"--auto",
"--with-static-configs",
"--write-uuid",
"--device",
dev_data.path,
"/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ def test_bootupd_run(self, devdata_mock, storage_mock, symlink_mock, rename_mock
exec_mock.assert_has_calls([
call(
"bootupctl",
["backend", "install", "--auto", "--with-static-configs", "--device",
["backend", "install", "--auto", "--write-uuid", "--device",
"/dev/btldr-drv", "/"],
root=sysroot
),
Expand Down

0 comments on commit 7b091de

Please sign in to comment.