(rootFd *os.File, config *configs.Config)
| 98 | } |
| 99 | |
| 100 | func doSetupDev(rootFd *os.File, config *configs.Config) error { |
| 101 | if err := createDevices(rootFd, config); err != nil { |
| 102 | return fmt.Errorf("error creating device nodes: %w", err) |
| 103 | } |
| 104 | if err := setupPtmx(rootFd); err != nil { |
| 105 | return fmt.Errorf("error setting up ptmx: %w", err) |
| 106 | } |
| 107 | if err := setupDevSymlinks(rootFd); err != nil { |
| 108 | return fmt.Errorf("error setting up /dev symlinks: %w", err) |
| 109 | } |
| 110 | return nil |
| 111 | } |
| 112 | |
| 113 | // setupAndMountToRootfs sets up the mount for a single mount point and mounts it to the rootfs. |
| 114 | func setupAndMountToRootfs(pipe *syncSocket, config *configs.Config, mountConfig *mountConfig, m *configs.Mount) error { |
no test coverage detected
searching dependent graphs…