File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
tests/integration/playbooks Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ pub(crate) async fn status(opts: super::cli::StatusOpts) -> Result<()> {
305
305
let host = if !Utf8Path :: new ( "/run/ostree-booted" ) . try_exists ( ) ? {
306
306
Default :: default ( )
307
307
} else {
308
- crate :: cli:: require_root ( ) ?;
308
+ crate :: cli:: prepare_for_write ( ) . await ?;
309
309
let sysroot = super :: cli:: get_locked_sysroot ( ) . await ?;
310
310
let booted_deployment = sysroot. booted_deployment ( ) ;
311
311
let ( _deployments, host) = get_status ( & sysroot, booted_deployment. as_ref ( ) ) ?;
Original file line number Diff line number Diff line change 133
133
shell : findmnt -r -o OPTIONS -n /sysroot | awk -F "," '{print $1}'
134
134
register : result_sysroot_mount_status
135
135
136
- - name : /sysroot should be mount with rw permission
136
+ - name : /sysroot should be mount with ro permission
137
137
block :
138
138
- assert :
139
139
that :
140
- - result_sysroot_mount_status.stdout == "rw "
141
- fail_msg : " /sysroot is not mounted with rw permission"
142
- success_msg : " /sysroot is mounted with rw permission"
140
+ - result_sysroot_mount_status.stdout == "ro "
141
+ fail_msg : " /sysroot is not mounted with ro permission"
142
+ success_msg : " /sysroot is mounted with ro permission"
143
143
always :
144
144
- set_fact :
145
145
total_counter : " {{ total_counter | int + 1 }}"
You can’t perform that action at this time.
0 commit comments