diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-12-15 18:40:24 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-12-15 18:40:24 +0000 |
commit | 97ad2e9492c703bac58ba8abfbb56894646d2e54 (patch) | |
tree | ccd212b6e84743cc8e8e3e4836399e7ab1a698de /tools | |
parent | d5cb89c3e9961c57ff19b020d6c1b874f9657673 (diff) | |
download | drakx-97ad2e9492c703bac58ba8abfbb56894646d2e54.tar drakx-97ad2e9492c703bac58ba8abfbb56894646d2e54.tar.gz drakx-97ad2e9492c703bac58ba8abfbb56894646d2e54.tar.bz2 drakx-97ad2e9492c703bac58ba8abfbb56894646d2e54.tar.xz drakx-97ad2e9492c703bac58ba8abfbb56894646d2e54.zip |
record live cdroms using cdrecord
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/draklive | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/draklive b/tools/draklive index f4b15329b..7c445294f 100755 --- a/tools/draklive +++ b/tools/draklive @@ -226,6 +226,7 @@ my %storage = ( read_only => 1, modules => 'disk/cdrom|hardware_raid|sata|scsi bus/usb disk/raw', create => \&create_cdrom_master, + record => \&record_cdrom_master, }, usb => { modules => 'bus/usb disk/raw|usb', @@ -502,6 +503,14 @@ sub create_master { } } +sub record_cdrom_master { + my ($live, $o_refresh_boot_only) = @_; + $o_refresh_boot_only and die "record boot isn't possible for cdrom master"; + $live->{media}{device} or die "no device defined in media configuration"; + my $src = $live->{images_dir} . '/live.iso'; + run_('cdrecord', '-v', 'dev=' . $live->{media}{device}, $src); +} + sub record_usb_master { my ($live, $o_refresh_boot_only) = @_; my $label = get_media_label($live); |