File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -953,6 +953,7 @@ async fn prepare_install(
953
953
let rootfs = cap_std:: fs:: Dir :: open_ambient_dir ( "/" , cap_std:: ambient_authority ( ) )
954
954
. context ( "Opening /" ) ?;
955
955
956
+ let external_source = source_opts. source_imgref . is_some ( ) ;
956
957
let source = match source_opts. source_imgref {
957
958
None => {
958
959
let container_info = crate :: containerenv:: get_container_execution_info ( & rootfs) ?;
@@ -1004,7 +1005,7 @@ async fn prepare_install(
1004
1005
1005
1006
// Even though we require running in a container, the mounts we create should be specific
1006
1007
// to this process, so let's enter a private mountns to avoid leaking them.
1007
- if std:: env:: var_os ( "BOOTC_SKIP_UNSHARE" ) . is_none ( ) {
1008
+ if !external_source && std:: env:: var_os ( "BOOTC_SKIP_UNSHARE" ) . is_none ( ) {
1008
1009
super :: cli:: ensure_self_unshared_mount_namespace ( ) . await ?;
1009
1010
}
1010
1011
You can’t perform that action at this time.
0 commit comments