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`.

(cherry picked from commit 7b091de)

Related: RHEL-2250
  • Loading branch information
cgwalters committed Jan 25, 2024
1 parent 15d423a commit 2d30325
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 @@ -437,7 +437,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 @@ -694,7 +694,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 2d30325

Please sign in to comment.