2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00
xcat-core/xCAT-client/pods/man1/liteimg.1.pod

81 lines
1.8 KiB
Plaintext

=head1 NAME
B<liteimg> - Modify statelite image by creating a series of links.
=head1 SYNOPSIS
B<liteimg [-h| --help]>
B<liteimg [-v| --version]>
B<liteimg> I<imagename>
=head1 DESCRIPTION
This command modifies the statelite image by creating a series of links.
It creates 2 levels of indirection so that files can be modified while in
their image state as well as during runtime. For example, a file like
<$imgroot>/etc/ntp.conf will have the following operations done to it:
I< mkdir -p $imgroot/.default/etc>
I< mkdir -p $imgroot/.statelite/tmpfs/etc>
I< mv $imgroot/etc/ntp.conf $imgroot/.default/etc>
I< cd $imgroot/.statelite/tmpfs/etc>
I< ln -sf ../../../.default/etc/ntp.conf .>
I< cd $imgroot/etc>
I< ln -sf ../.statelite/tmpfs/etc/ntp.conf .>
When finished, the original file will reside in
I<$imgroot/.default/etc/ntp.conf>. I<$imgroot/etc/ntp.conf> will link to
I<$imgroot/.statelite/tmpfs/etc/ntp.conf> which will in turn link to
I<$imgroot/.default/etc/ntp.conf>
Note: If you make any changes to your litefile table after running liteimg then you will need to rerun liteimg again.
=head1 PARAMETERS
I<imagename> specifies the name of a os image definition to be used. The specification for the image is stored in the I<osimage> table and I<linuximage> table.
=head1 OPTIONS
B<-h|--help> Display usage message.
B<-v|--version> Command Version.
=head1 RETURN VALUE
0 The command completed successfully.
1 An error has occurred.
=head1 EXAMPLES
1. To lite a RHEL 6.6 statelite image for a compute node architecture x86_64 enter:
liteimg rhels6.6-x86_64-statelite-compute
=head1 FILES
/opt/xcat/bin/liteimg
=head1 NOTES
This command is part of the xCAT software product.
=head1 SEE ALSO
L<genimage(1)|genimage.1>