diff options
author | Olivier Blin <oblin@mandriva.com> | 2010-08-30 16:44:54 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2010-08-30 16:44:54 +0000 |
commit | 334a0b23586970e78a11b03f557b431c1696cf70 (patch) | |
tree | 6301c06c626a02188b57bb8c489d1bf70498544c /draklive | |
parent | 1a85388037d45ec77bd873efd3245c413c131f94 (diff) | |
download | drakiso-334a0b23586970e78a11b03f557b431c1696cf70.tar drakiso-334a0b23586970e78a11b03f557b431c1696cf70.tar.gz drakiso-334a0b23586970e78a11b03f557b431c1696cf70.tar.bz2 drakiso-334a0b23586970e78a11b03f557b431c1696cf70.tar.xz drakiso-334a0b23586970e78a11b03f557b431c1696cf70.zip |
add --record-replicator option
Diffstat (limited to 'draklive')
-rwxr-xr-x | draklive | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -1132,6 +1132,19 @@ sub record_master { } } +#- $opts: +#- onthefly : if true, the record function must read from stdin +sub record_replicator { + my ($live, $opts) = @_; + + my $replicator_media = $live->{replicator}{media} or die "no replicator media"; + if (my $record_replicator = $replicator_media->get_boot_setting('record_replicator', $opts)) { + $record_replicator->($live, $opts); + } else { + warn "not implemented yet\n"; + } +} + sub pipe_subs { my ($writer, $reader) = @_; my ($r, $w) = POSIX::pipe; @@ -1573,6 +1586,7 @@ my @actions = ( { name => 'format', do => \&format_device }, { name => 'record', do => \&record_master }, { name => 'record-onthefly', do => \&record_onthefly }, + { name => 'record-replicator', do => \&record_replicator }, ); my @all = qw(install boot loop master image vm-image replicator); @@ -1649,6 +1663,8 @@ draklive [options] --record-onthefly record live by creating master from loopback files on the fly --keep-files keep existing files on media when recording + --record-replicator + record replicator on selected media --initrd build initrd only --post-install run post install only (rpms and patches installation) |