1
0
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:
utam0k 2021-08-05 23:06:43 +09:00 committed by Sascha Grunert
parent 92ac22ae13
commit 974f20dace
No known key found for this signature in database
GPG Key ID: 09D97D153EF94D93

@ -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)?;