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 a commit 7b091de)

Related: RHEL-17205
  • Loading branch information
cgwalters authored and poncovka committed Jan 26, 2024
1 parent 350cf98 commit c9f21cc
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 @@ -436,7 +436,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 c9f21cc

Please sign in to comment.