diff options
-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); |