The diskimage_builder.block_device.level3.mount Module

class diskimage_builder.block_device.level3.mount.Mount(config, defaults)

Bases: diskimage_builder.block_device.plugin.PluginBase

get_nodes()
class diskimage_builder.block_device.level3.mount.MountPointNode(mount_base, config)

Bases: diskimage_builder.block_device.plugin.NodeBase

create(result, rollback)
delete(state)
get_edges()

Insert all edges

After inserting all the nodes, the order of the mounting and umounting can be computed. There is the need to mount mount-points that contain other mount-points first. Example: ‘/var’ must be mounted before ‘/var/log’. If not the second is not used for files at all.

The dependency edge is created in all cases from the base element (typically a mkfs) and, if this is not the ‘first’ mount-point, also depend on the mount point before. This ensures that during mounting (and umounting) the correct order is used.

get_node()
umount(state)