mirror of
https://github.com/containers/youki
synced 2025-04-30 13:20:17 +02:00
add handling when devices is not present.
This commit is contained in:
parent
92ac22ae13
commit
974f20dace
@ -62,10 +62,9 @@ pub fn prepare_rootfs(spec: &Spec, rootfs: &Path, bind_devices: bool) -> Result<
|
||||
chdir(rootfs)?;
|
||||
|
||||
setup_default_symlinks(rootfs)?;
|
||||
create_devices(
|
||||
linux.devices.as_ref().context("no devices in spec")?,
|
||||
bind_devices,
|
||||
)?;
|
||||
if let Some(devices) = linux.devices.as_ref() {
|
||||
create_devices(devices, bind_devices)?;
|
||||
}
|
||||
setup_ptmx(rootfs)?;
|
||||
|
||||
chdir(&olddir)?;
|
||||
|
Loading…
Reference in New Issue
Block a user