Run mk-sysimage
Once the master image has been created, the mk-sysimage
script (section 6.1) must be run to prepare the
image for use. This script alters the filesystem of the master image
so that each node effectively sees a different `view'
of the image.
As described in the `Implementation' section, mk-sysimage
alters any files listed as a LINK* directive to enable the
image to serve as the root filesystem for as many nodes with
potentially many different functional roles. It will convert the
distribution to be used as a read-only root filesystem. As a
convenience, it will also remove (backup) any configuration files
that try to mount local disk devices or configure network
interfaces, or any other configuration files that would create
problems for client nodes.
Procedure 3 Run mk-sysimage on your image
- Define your distribution
-
Edit /etc/sysimage.conf in the image to reflect the linux
distribution being used.
Add the appropriate DISTRO directive.
- Run
mk-sysimage
-
This will prepare the image to be used as
a shared root filesystem for many nodes. It may be desirable to run
with the -dryrun option the first time to see if the
distribution patch will apply cleanly. The effects of
mk-sysimage can always be reverted with the -revert option.
# mk-sysimage /var/lib/oneSIS/image
root
2008-07-08