Skip to content

Commit 3edeba8

Browse files
henrywangcgwalters
authored andcommitted
bootupd: Fix /sys read-only mount issue
efibootmgr needs write access to /sys/firmware/efi/efivars to modify EFI boot variables (like deleting boot entries with -B) Signed-off-by: Xiaofeng Wang <henrywangxf@me.com> Signed-off-by: Colin Walters <walters@verbum.org>
1 parent a9da46e commit 3edeba8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/utils/src/bwrap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ impl<'a> BwrapCmd<'a> {
8080
// See https://systemd.io/API_FILE_SYSTEMS/
8181
cmd.args(["--proc", "/proc"]);
8282
cmd.args(["--dev", "/dev"]);
83-
cmd.args(["--ro-bind", "/sys", "/sys"]);
83+
cmd.args(["--bind", "/sys", "/sys"]);
8484

8585
// Add bind mounts
8686
for (source, target) in &self.bind_mounts {

0 commit comments

Comments
 (0)